[gdal-dev] gdal_grid inverts y axis

Christopher Dedels cdedels at gmail.com
Sun Apr 17 18:22:27 EDT 2011


Thanks.  That worked for me.

Chris


On Sun, Apr 17, 2011 at 4:52 PM, Even Rouault
<even.rouault at mines-paris.org>wrote:

> Le dimanche 17 avril 2011 22:10:57, Christopher Dedels a écrit :
> > I am using gdal_grid to create a grid from a point shapefile.  gdalinfo
> > reports inverted y-axis coordinates for the output raster.  The command I
> > am running is:
> >
> > gdal_grid -ot Float32 -outsize 800 600 -l sites -zfield elev sites.shp
> > /tmp/sites.tif
>
> > Is there any way to invert the y-axis back?  Thanks for the help.
>
> Yes, 2 possibilities:
>
> 1) After gdal_grid, just run "gdalwarp sites.tif sites_inverted.tif" and
> this
> will correct the y-axis order to the usual order.
>
> 2) Or run gdal_grid by specifying the -tye option in the "-tye ymax ymin"
> order.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110417/adba95a1/attachment.html


More information about the gdal-dev mailing list