Changeset 15178
- Timestamp:
- 05/30/13 12:05:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/plot/googlemaps.m ΒΆ
r15176 r15178 145 145 %reproject from mercator (EPSG:3785) to UPS Ant (EPSG:3031) 146 146 [status,result] = system(['gdalwarp -s_srs ' EPSGgoogle ' -t_srs ' EPSGlocal ' temp.tiff temp2.tiff']); 147 result(1:5); %required otherwise strncmp does not work...148 147 delete('temp.tiff','temp.tfw'); 149 148 150 149 %If previous command failed, exit 151 if strncmp(result,'ERROR',5), 150 if ~isempty(strfind(result,'ERROR')), 151 disp(' ');disp('googlemaps info: gdal not working properly (missing proj.4 library?), Google image will not be transformed'); 152 152 disp(result); 153 disp('googlemaps info: gdal not working properly (missing proj.4 library?), the Google image will not be transformed');154 153 [gX gY]=meshgrid(ulx:ulx+size(final,2)-1,uly:-1:uly-size(final,1)+1); 155 154 [LAT LON]=pixelstolatlon(gX,gY, zoom);
Note:
See TracChangeset
for help on using the changeset viewer.