Re: [gdal-dev] writing XYZ file

2013-11-09 Thread denis cohen
Morning, Sorry about this. You are right. It works. My mistake. Thanks a lot for your help. Denis On Sat, Nov 9, 2013 at 11:01 PM, Even Rouault wrote: > Le samedi 09 novembre 2013 21:17:07, denis cohen a écrit : > > Hi, > > > > May be I wasn't clear. The x,y coordinates start from the lower lef

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread Even Rouault
Le samedi 09 novembre 2013 21:17:07, denis cohen a écrit : > Hi, > > May be I wasn't clear. The x,y coordinates start from the lower left but > not the elevation (z coord). Well, it seems to work as expected with my test dataset. Are you sure about that ? Perhaps there's something particular wit

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread denis cohen
Hi, May be I wasn't clear. The x,y coordinates start from the lower left but not the elevation (z coord). Denis On Sat, Nov 9, 2013 at 9:12 PM, Even Rouault wrote: > Le samedi 09 novembre 2013 20:59:11, denis cohen a écrit : > > Salut, > > > > Almost there, it looks like the data is not inver

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread Even Rouault
Le samedi 09 novembre 2013 20:59:11, denis cohen a écrit : > Salut, > > Almost there, it looks like the data is not inverted, it still starts from > the upper left corner instead of lower left. Really ? Not in my testing. $ gdalinfo ../autotest/gdrivers/data/small_world.tif Driver: GTiff/GeoTIF

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread denis cohen
Salut, Almost there, it looks like the data is not inverted, it still starts from the upper left corner instead of lower left. Thanks Denis On Sat, Nov 9, 2013 at 8:46 PM, Even Rouault wrote: > Le samedi 09 novembre 2013 20:39:50, denis cohen a écrit : > > Hi, > > > > Thanks for the script.

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread Even Rouault
Le samedi 09 novembre 2013 20:39:50, denis cohen a écrit : > Hi, > > Thanks for the script. It works fine except for the actual data (elevation > in my case, this is a DEM). > It does not write the correct values. Ah right, this version only worked for Byte data type. The below version should wo

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread denis cohen
Hi, Thanks for the script. It works fine except for the actual data (elevation in my case, this is a DEM). It does not write the correct values. Merci Denis On Sat, Nov 9, 2013 at 8:02 PM, Even Rouault wrote: > Le samedi 09 novembre 2013 10:46:20, denis cohen a écrit : > > Hello, > > > > I a

Re: [gdal-dev] writing XYZ file

2013-11-09 Thread Even Rouault
Le samedi 09 novembre 2013 10:46:20, denis cohen a écrit : > Hello, > > I am a new user of gdal. > I used gdal_translate to convert a netcdf file to xyz: > gdal_translate -of XYZ file.nc file.xyz > > However, the xyz file starts with the upperleft coordinate. > Is it possible to have it write the

[gdal-dev] writing XYZ file

2013-11-09 Thread denis cohen
Hello, I am a new user of gdal. I used gdal_translate to convert a netcdf file to xyz: gdal_translate -of XYZ file.nc file.xyz However, the xyz file starts with the upperleft coordinate. Is it possible to have it write the xyz file starting with the lower left coordinate? Thank you for your help