source: issm/oecreview/Archive/14312-15392/ISSM-15177-15178.diff@ 15393

Last change on this file since 15393 was 15393, checked in by Mathieu Morlighem, 12 years ago

NEW: adding Archive/14312-15392 for oecreview

File size: 1.0 KB
  • ../trunk-jpl/src/m/plot/googlemaps.m

     
    144144
    145145%reproject from mercator (EPSG:3785) to UPS Ant (EPSG:3031)
    146146[status,result] = system(['gdalwarp  -s_srs ' EPSGgoogle ' -t_srs ' EPSGlocal ' temp.tiff temp2.tiff']);
    147 result(1:5); %required otherwise strncmp does not work...
    148147delete('temp.tiff','temp.tfw');
    149148
    150149%If previous command failed, exit
    151 if strncmp(result,'ERROR',5),
     150if ~isempty(strfind(result,'ERROR')),
     151        disp(' ');disp('googlemaps info: gdal not working properly (missing proj.4 library?), Google image will not be transformed');
    152152        disp(result);
    153         disp('googlemaps info: gdal not working properly (missing proj.4 library?), the Google image will not be transformed');
    154153        [gX gY]=meshgrid(ulx:ulx+size(final,2)-1,uly:-1:uly-size(final,1)+1);
    155154        [LAT LON]=pixelstolatlon(gX,gY, zoom);
    156155        if strcmpi(md.mesh.hemisphere,'n'),
Note: See TracBrowser for help on using the repository browser.