[gdal-dev] gdal_grid inverts y axis

Even Rouault even.rouault at mines-paris.org
Sun Apr 17 16:52:15 EDT 2011


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.



More information about the gdal-dev mailing list