Re: [gdal-dev] Differences in behavior between pgsql query and use of GDAL API

2011-06-13 Thread Alexandre Gacon
Hi Luca, I follow your advice and now I have all my features. I had to do some union/collect to have the awaited result. It's just sad that I can't take more advantage of GDAL to do this : do we know why my first method can't work ? Because of a limitation in ST_GeomFromText ? Because of a limita

Re: [gdal-dev] OpenJPEG2000 issues when reading blocks at a time

2011-06-13 Thread Chaitanya kumar CH
Derek, Can you provide a screenshot of the displayed image. Especially the scrambled blocks. On Tue, Jun 14, 2011 at 4:22 AM, Cole, Derek wrote: > Hello, > > I have the following code: > > qDebug("tilePosX: %i ", this->tilePosX); > qDebug("tilePosY: %i ", this->tilePosY); > > > floa

[gdal-dev] OpenJPEG2000 issues when reading blocks at a time

2011-06-13 Thread Cole, Derek
Hello, I have the following code: qDebug("tilePosX: %i ", this->tilePosX); qDebug("tilePosY: %i ", this->tilePosY); float * floatData = (float *) CPLMalloc(sizeof(float)*nXSize*nYSize); poBand->RasterIO( GF_Read, this->tilePosX*nXSize, this->tilePosY*nYSize, nXSize, nYSize, flo

Re: [gdal-dev] HDF5 metadata format problems

2011-06-13 Thread Frank Warmerdam
On 11-06-13 04:53 PM, Alex Mantaut wrote: Hi all: I've ran into some troubles while trying to interpret an HDF5's metadata... Every field on HDF5 has it's own type(string, uchar, double) But GetMetadataItem("field_name") converts the data from the dataset into a C-style zero terminated

[gdal-dev] HDF5 metadata format problems

2011-06-13 Thread Alex Mantaut
Hi all: I've ran into some troubles while trying to interpret an HDF5's metadata... Every field on HDF5 has it's own type(string, uchar, double) But GetMetadataItem("field_name") converts the data from the dataset into a C-style zero terminated string. This gives me a few problems: a-T

[gdal-dev] Re: gisinternals GDAL builds

2011-06-13 Thread Tamas Szekeres
Hi Elijah, With regards to the CRT dependency I would always recommend to use that version which corresponds to the CRT dep. of the application. You might use the Dependency Walker tool to identify which CRT dll the application depends on. For example the official python (python.org) windows build

RE: [gdal-dev] SDE driver: connecting to rasters never returns

2011-06-13 Thread Duarte Carreira
Howard, This is the output: GDAL: Auto register C:\OSGeo4W\bin\gdalplugins\1.8\gdal_MG4Lidar.dll using GDALR egister_MG4Lidar. GDAL: Auto register C:\OSGeo4W\bin\gdalplugins\1.8\gdal_MrSID.dll using GDALRegi ster_MrSID. GDAL: Auto register C:\OSGeo4W\bin\gdalplugins\1.8\gdal_SDE.dll using GDALReg

Re: [gdal-dev] SDE driver: connecting to rasters never returns

2011-06-13 Thread Howard Butler
On Jun 13, 2011, at 9:38 AM, Duarte Carreira wrote: > Hello listers. > > So now that OGR connecting is solved by specifying the version name (or maybe > by making a readonly connection), I’m stumbling on the same effect when > connecting to a raster with gdalinfo or gdal_translate. But there

[gdal-dev] gisinternals GDAL builds

2011-06-13 Thread Elijah Robison
Hi Tamas and GDAL devs, I recently used Tamas' Win binaries (http://www.gisinternals.com/sdk/) to install Gdal 1.8 for Python 2.7, and everything is working fine---Tamas, thanks so much for providing those. However, I do have a question about selecting the correct release, and want to confirm

[gdal-dev] SDE driver: connecting to rasters never returns

2011-06-13 Thread Duarte Carreira
Hello listers. So now that OGR connecting is solved by specifying the version name (or maybe by making a readonly connection), I'm stumbling on the same effect when connecting to a raster with gdalinfo or gdal_translate. But there is no option to specify version or readonly... My gdalinfo/tra

Re: [gdal-dev] Differences in behavior between pgsql query and use of GDAL API

2011-06-13 Thread Luca Sigfrido Percich
Hi Alexandre, if I well understood your problem, you're already doing half of the job (the queries)in PostGIS, so why not doing everything using PostGIS queries? Moreover, I think you don't need union. Assuming towns is a polygon layer, try: select distinct t.* from towns as t, (select dist

[gdal-dev] Differences in behavior between pgsql query and use of GDAL API

2011-06-13 Thread Alexandre Gacon
Hi, I need to do the following request to find some data: - I have a bunch of towns (let's call them group A) - I retrieve the towns touching the group A (let's call them group B) - I make the union of group A and group B - I ask the towns covered by the resulting union For the moment, I use GDA