[gdal-dev] Gdal_translate + Google + Wgs84

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri Dec 2 09:22:01 EST 2011


Roger,

Use gdalwarp instead. Set the -t_srs option to EPSG:4326
Extents can be set using -te
Since the projection is changing, specifying the size in percentage of the
original is not possible. You can use -tr or -ts for this.
Also, note the order of the arguments for filenames.

On Fri, Dec 2, 2011 at 4:08 PM, Roger Phillips <heidegg at hotmail.com> wrote:

>  Hello folks,
>
> I'm a beginner with Gdal and I have a question:
>
> Say, I have a rectangular tile defined in WGS84 coordinates using
> longitude and latitude. I want to receive this file from google for the
> respective rect. However, as far as I know, google uses mercator
> coordinates in its maps so the image will be distorted. Currently, I'm
> experimenting with this call:
>
> gdal_translate frmt_wms_googlemaps_tms.xml out.tif -projwin -12712685  66
> 56748 -12679290 6621294 -outsize 1% 1%
>
> What do I have to change on this call so it will give me an undistorted
> image in WGS84?
>
> Thanks a lot!
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111202/c5b3f4bb/attachment.html


More information about the gdal-dev mailing list