[15393] | 1 | Index: ../trunk-jpl/src/m/plot/googlemaps.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/plot/googlemaps.m (revision 15177)
|
---|
| 4 | +++ ../trunk-jpl/src/m/plot/googlemaps.m (revision 15178)
|
---|
| 5 | @@ -144,13 +144,12 @@
|
---|
| 6 |
|
---|
| 7 | %reproject from mercator (EPSG:3785) to UPS Ant (EPSG:3031)
|
---|
| 8 | [status,result] = system(['gdalwarp -s_srs ' EPSGgoogle ' -t_srs ' EPSGlocal ' temp.tiff temp2.tiff']);
|
---|
| 9 | -result(1:5); %required otherwise strncmp does not work...
|
---|
| 10 | delete('temp.tiff','temp.tfw');
|
---|
| 11 |
|
---|
| 12 | %If previous command failed, exit
|
---|
| 13 | -if strncmp(result,'ERROR',5),
|
---|
| 14 | +if ~isempty(strfind(result,'ERROR')),
|
---|
| 15 | + disp(' ');disp('googlemaps info: gdal not working properly (missing proj.4 library?), Google image will not be transformed');
|
---|
| 16 | disp(result);
|
---|
| 17 | - disp('googlemaps info: gdal not working properly (missing proj.4 library?), the Google image will not be transformed');
|
---|
| 18 | [gX gY]=meshgrid(ulx:ulx+size(final,2)-1,uly:-1:uly-size(final,1)+1);
|
---|
| 19 | [LAT LON]=pixelstolatlon(gX,gY, zoom);
|
---|
| 20 | if strcmpi(md.mesh.hemisphere,'n'),
|
---|