[gdal-dev] [suggestions] easing the search for information in the GDAL documentation

2012-10-19 Thread Pascal Boulerie
Hello, On the following page http://www.gdal.org/ogr/ogr_formats.html OGR Vector Formats you should add a mention : The following page only describes OGR vector formats. For GDAL Raster Formats, see : http://www.gdal.org/formats_list.html You should add a version number and last date of the

[gdal-dev] dotspatial map control navigation

2012-10-19 Thread Nikhil Sai Parupalli
Hi I am developing an application which has dotspatial map control do display S57 dataset. Here it is displaying fine but I have to write a code where user should be navigated to particular coordinates when clicking and RCID(it has coordinate information). If you have worked on similar type of

Re: [gdal-dev] dotspatial map control navigation

2012-10-19 Thread Chaitanya kumar CH
Nikhil, You should ask the dotspatial community on how to perform the pan/zoom operations. To select a feature with a particular RCID, you can set an attribute filter on that particular layer and request the next feature. Since the RCID value is unique, you will get the only feature. You have to

[gdal-dev] convert ENVI format dsm into Mesh

2012-10-19 Thread Janki Dodiya
Hi all, I have a raw DSM in ENVI format and i was wondering if there is a way to select a patch or region out of it and convert it into a polygon mesh. Does GDAL support this? Regards, ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

[gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Hello! I have a problem reading an ECW image. I want to read the image using only the first band. So I use: int bmap[3] = {1,1,1}; GDALImage-RasterIO( GF_Read, x, // int nXOff, y,

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread Even Rouault
Selon jcurru jcu...@yahoo.es: Hello! I have a problem reading an ECW image. I want to read the image using only the first band. So I use: int bmap[3] = {1,1,1}; GDALImage-RasterIO( GF_Read, x, // int nXOff,

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Ouch! Thank you very much, Even. I should have asked sooner, instead of going to bed at 5 in the morning... :-) Yes, I have to read into a RGB buffer, but your solution would increase a lot the loading time for other images that are working well. I have read this:

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Ouch! Thank you very much, Even. I should have asked sooner, instead of going to bed at 5 in the morning... :-) Yes, I have to read into a RGB buffer, but your solution would increase a lot the loading time for other images that are working well. I have read this: 

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread Even Rouault
Le vendredi 19 octobre 2012 16:41:14, jcurru a écrit : Hello! I have an old problem with TOWGS84 and OGRSpatialReference. Most likely it's because I'm no expert in GDAL. It is important for my project, and limits many of its capabilities. The fact is that, for unknown reasons (to me), proj4

[gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, I have a curious problem with 'gdalinfo' (gdal version 1.9.0 ). I have an input ENVI file with the following .HDR entry: data ignore value = -9.9900e+002 gdalinfo for the IMG file provides stats that exclude all values -999.0 as expected. I then create a masked output file

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Even Rouault
Le vendredi 19 octobre 2012 20:41:16, Peter Willis a écrit : Hello, I have a curious problem with 'gdalinfo' (gdal version 1.9.0 ). I have an input ENVI file with the following .HDR entry: data ignore value = -9.9900e+002 gdalinfo for the IMG file provides stats that exclude

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread jcurru
Thank you again, Even. Well, I've taken a look at the documentation you mention, but no answers there, just an explanation about wgsto84 parameters and a proposal for extending the geotiff standard in order to embed the famous parameter. I guess that if you don't say oh man, didn' you know this

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread Frank Warmerdam
On Fri, Oct 19, 2012 at 7:41 AM, jcurru jcu...@yahoo.es wrote: Hello! I have an old problem with TOWGS84 and OGRSpatialReference. Most likely it's because I'm no expert in GDAL. It is important for my project, and limits many of its capabilities. The fact is that, for unknown reasons (to

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, I am providing the failed example followed by a working example. Let me know if there is any additional information you need. Thanks, Peter --The Failed Header Sample-- ENVI description = { /web2-disk1/PR762/landsat/cubes/96_98/LSatThermalCube_96-98_float_cmsk_landm

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Even Rouault
Le vendredi 19 octobre 2012 22:23:49, Peter Willis a écrit : Hello, I am providing the failed example followed by a working example. Let me know if there is any additional information you need. With both headers, gdalinfo correctly reports the nodata value... But you didn't send the .hdr

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, The one listed as 'failed' actually fails for me as it is sent . I was experimenting by moving the value near the top of the file. It continues to fail whether the entry is at the bottom of the file Or where it appears in the sample that I sent to you. Could it be a line feeds issue? I

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread jcurru
Frank, First of all let me tell you thanks for your work. Thanks is not enough but my poor english would put me in troubles if I tried to say something more complicated. And thank you very much for your answer. Getting help from you from the other side of the ocean (I live in Madrid, Spain) is a

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Even Rouault
Le vendredi 19 octobre 2012 22:57:13, Peter Willis a écrit : Hello, The one listed as 'failed' actually fails for me as it is sent . Just to be sure we are talking about the same thing, what do you call fail exactly ? Is it that gdalinfo doesn't report NoData Value=-999 for the bands ?

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, When I run : Gdalinfo -stats FILENAME One file (success) provides statistics calculated by excluding the no data values. Ie: min=0.25 max=1234.0 mean=12.0 The other file (failed) provides statistics with -999 calculated into the stats. Ie: min = -999.0 max=1234.0 mean=-993.0 I have

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, I am seeing that you are correct that the 'no data value' is being read in each case. Perhaps my interpretation of the problem appears incorrect. Look, however at the 'Metadata:' statistics. Both files have assigned -999 to 'No Data Value' but'STATISTICS_MINIMUM' for one file

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Even Rouault
Le vendredi 19 octobre 2012 23:57:01, Peter Willis a écrit : Hello, At step #6, gdalinfo -stats reports data stats with the -999 values calculated into the min/max/mean/stdev. Band 2 Block=2178x1 Type=Float32, ColorInterp=Undefined Description = Band 2 Min=-999.000 Max=12.250

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, Good news. Removing the '.aux.xml ' file and again running gdalinfo -statsindeed fixes the problem. I now get the expected statistics values. Thank you for your help. Best Regards, Peter Le vendredi 19 octobre 2012 23:57:01, Peter Willis a écrit : Hello, At step #6,

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread Frank Warmerdam
On Fri, Oct 19, 2012 at 2:00 PM, jcurru jcu...@yahoo.es wrote: I often use other programs to display geospatial information, for example Global Mapper. It realizes coordinate systems from (for example) shapefiles without EPSG, and applies transformations correctly. What am I missing? Jose,