[gdal-dev] ​Re: Raster origin coodinates in file header

2015-06-29 Thread Piero Campalani
Adrien, OGC in its GML standard document -- of course in line with ISO -- recommends that: * "When a grid point is used to represent a sample space (e.g. image pixel), the grid point represents the center of the sample space (see ISO 19123:2005, 8.2.2)"*. ​ ​GML encodes the locations of a raster

Re: [gdal-dev] Is there a gdalwarp command to turn 'internal nodata values' into nodata (and read as transparent by arcmap)?

2015-06-29 Thread Nicolas Cadieux
Hi, Not sure but the value of 'none' removes the nodata value while putting a number will make that value a nodata value. -dstnodata value [value...]:     Set nodata values for output bands (different values can be supplied for each band). If more than one value is supplied all values should be qu

[gdal-dev] Getting warning when opening NetCDF file using gdal?

2015-06-29 Thread oz
I am using windows 7(32-bit) and want to warp NetCDF (nc) files and save the output as GeoTIFF. First I run gdalinfo first to get the info of the subdataset I need and added NeTCDF in the beginning(e.g. gdalinfo NETCDF:"A2015069035500.L2_LAC_OC.nc") but was unfortunate because a warning appeared:

[gdal-dev] gdaldem hillshade returns an empty .tif (i.e. everything is 181 (?))

2015-06-29 Thread Ruth Simm
I ran this command on a completely NORMAL (but large) global .tiff with a few tiles missing - but nothing else suspicious - and after 40 minutes it returned a dud file with '181' being the only value. Has this ever happened to anyone before? gdaldem hillshade -of GTiff infile.tif hillshd.tif ___

Re: [gdal-dev] Is there a gdalwarp command to turn 'internal nodata values' into nodata (and read as transparent by arcmap)?

2015-06-29 Thread Ruth Simm
Interesting.I am using GDAL 1.9.1 - so it didn't seem to be an option in this older ver. do you know how it is different then '-srcnodata None'? On Sunday, June 28, 2015 7:30 AM, Nicolas Cadieux wrote: -dstnodata value [value...]:http://www.gdal.org/gdalwarp.htmlNicolas Cadieux M

Re: [gdal-dev] gdal translate

2015-06-29 Thread Even Rouault
Le lundi 29 juin 2015 16:15:32, marco casella a écrit : > Hello, > > I'm trying to convert a tiff file (dem) in a raw image. > I'm using this line: > > gdal_translate –ot UInt16 –scale –of ENVI –outsize 1025 1025 dsm.tif > final.raw > > it seems there is some kind of an error, I get this message

[gdal-dev] gdal translate

2015-06-29 Thread marco casella
Hello, I'm trying to convert a tiff file (dem) in a raw image. I'm using this line: gdal_translate –ot UInt16 –scale –of ENVI –outsize 1025 1025 dsm.tif final.raw it seems there is some kind of an error, I get this message: "Too many command options." Do you know if I am doing something wrong?

Re: [gdal-dev] Raster origin coodinates in file header

2015-06-29 Thread Even Rouault
Adrien, > opening 2 rasters with different resolutions i noticed a shift. > > Asking our imagery provider, i was told the origin coordinates they > store in image header (JP2 files) are those of the top left pixel center. > > GDAL reads origin coordinates as the top left pixel top left corner >

[gdal-dev] Raster origin coodinates in file header

2015-06-29 Thread Adrien ANDRÉ
Dear list, opening 2 rasters with different resolutions i noticed a shift. Asking our imagery provider, i was told the origin coordinates they store in image header (JP2 files) are those of the top left pixel center. GDAL reads origin coordinates as the top left pixel top left corner coordin