[Gdal-dev] shift coordinates with gdal

Christopher Condit condit at sdsc.edu
Wed Jul 25 15:52:00 EDT 2007


Hi Christian-
There was a discussion about this June last year. (see http://lists.maptools.org/pipermail/gdal-dev/2006-June/) and search for "Tool to convert shapefile".

To recap my response you could:
%gdaltx% -srcwin 0 0 360 330 -a_ullr 0 89.250 180 -75.25 source.tif right.tif
%gdaltx% -srcwin 360 0 360 330 -a_ullr -180 89.250 0 -75.25 source.tif left.tif
%gdalmg% -o correct.tif left.tif right.tif
%gdalinfo% -mm correct.tif

In my case the raster does not cover the entire globe, but you can put the correct values for your raster in the first two lines. Basically but the image into two files and then merge them.

-Chris

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org [mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Christian.Strobl at dlr.de
Sent: Wednesday, July 25, 2007 07:55
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] shift coordinates with gdal


hi list,
i have only a short user question concerning gdal: 
is it possible to shift a image with a certain amount, for example: i have satellite data with geographic coordinates from 0° to 360° longitude and i want them to shift to -180° to +180°. is there a chance to solve this problem with gdal or exists a workaround?
thanks and greetings from munich
christian

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list