[gdal-dev] OGR Spatialite driver and spatial index

2011-08-29 Thread Jukka Rahkonen
Hi, Does the OGR SQLite/Spatialite driver really utilise the spatial index if such exists in the Spatialite database? The documentation suggests so http://gdal.org/ogr/drv_sqlite.html. However, I haven't been able to see any difference in my speed tests with ogr yet. I made a set of tests with

Re: [gdal-dev] OGR Spatialite driver and spatial index

2011-08-29 Thread Even Rouault
Selon Jukka Rahkonen jukka.rahko...@mmmtike.fi: Hi, ogrinfo OSM_Finland.sqlite -sql select geometry, osm_id ,highway,ref, name, tunnel from osm_line where highway is not null AND MBRIntersects(geometry, BuildMBR(389116,6677305,389579,6677661)) The MBRIntersects() stuff is exactly what the

Re: [gdal-dev] reading postgis raster in mode 2 error

2011-08-29 Thread Ricardo Filipe Soares Garcia da
2011/8/26 Jorge Arévalo jorge.arev...@deimos-space.com: -- Forwarded message -- From: Ricardo Filipe Soares Garcia da ricardo.garcia.si...@gmail.com Date: Wed, Aug 24, 2011 at 6:07 PM Subject: reading postgis raster in mode 2 error To: gdal-dev@lists.osgeo.org Hi list I

[gdal-dev] Re: OGR Spatialite driver and spatial index

2011-08-29 Thread Jukka Rahkonen
Even Rouault even.rouault at mines-paris.org writes: Hum, the OGR driver was indeed written a bit too naively, assuming that MBRIntersects() would be similar to the operator in PostGIS. Apparently not. Strange that this hasn't been reported before, but I assume you can only see the

Re: [gdal-dev] reading postgis raster in mode 2 error

2011-08-29 Thread Jorge Arévalo
On Mon, Aug 29, 2011 at 12:15 PM, Ricardo Filipe Soares Garcia da ricardo.garcia.si...@gmail.com wrote: 2011/8/26 Jorge Arévalo jorge.arev...@deimos-space.com: -- Forwarded message -- From: Ricardo Filipe Soares Garcia da ricardo.garcia.si...@gmail.com Date: Wed, Aug 24, 2011

[gdal-dev] Projection definition issue with Mapinfo files

2011-08-29 Thread Yves Jacolin
Hello, One of QGIS user report an issue with mapInfo file (TAB file). If you understand french you can see the thread here: http://georezo.net/forum/viewtopic.php?pid=197022 I try to sum up the issue in english in this email. The process is basicly as follow: 1. check projection information

Re: [gdal-dev] Re: OGR Spatialite driver and spatial index

2011-08-29 Thread Even Rouault
Le lundi 29 août 2011 12:19:26, Jukka Rahkonen a écrit : Even Rouault even.rouault at mines-paris.org writes: Hum, the OGR driver was indeed written a bit too naively, assuming that MBRIntersects() would be similar to the operator in PostGIS. Apparently not. Strange that this hasn't been

[gdal-dev] Re: OGR Spatialite driver and spatial index

2011-08-29 Thread Jukka Rahkonen
Even Rouault even.rouault at mines-paris.org writes: Improvement commited in r23008. Before : $ time ogrinfo berlin.sqlite osm_polygon -spat 1489000 6899000 149 690 -al -so real 0m0.619s user 0m0.580s sys 0m0.040s After : $ time ogrinfo berlin.sqlite osm_polygon -spat

Re: [gdal-dev] Re: gdal_rasterize output off by one pixel/cell

2011-08-29 Thread Burton-Kelly, Matthew
Thanks Even for making the fix! Is there documentation anywhere for how to apply changes like this? I apologize but I am just getting into this type of development. I thought I was able to install the latest nightly build today, but I'm not sure. Running Mac OS X. If anyone has any

Re: [gdal-dev] Re: gdal_rasterize output off by one pixel/cell

2011-08-29 Thread Joaquim Luis
On 29-08-2011 22:10, Burton-Kelly, Matthew wrote: Thanks Even for making the fix! Is there documentation anywhere for how to apply changes like this? I apologize but I am just getting into this type of development. I thought I was able to install the latest nightly build today, but I'm not

[gdal-dev] Set color table in NITF

2011-08-29 Thread Cole, Derek
Hello, I am trying to create a NITF that uses a color lookup table. I found the option to add an RGB/LUT to the image, which didnt complain, however, when I had my LUT data to the image, it all seems to be kind of black and white. I know when I was displaying the images in my viewer (which I

Re: [gdal-dev] Set color table in NITF

2011-08-29 Thread Even Rouault
Le mardi 30 août 2011 00:14:12, Cole, Derek a écrit : Hello, I am trying to create a NITF that uses a color lookup table. I found the option to add an RGB/LUT to the image, which didnt complain, however, when I had my LUT data to the image, it all seems to be kind of black and white. I

Re: [gdal-dev] Projection definition issue with Mapinfo files

2011-08-29 Thread Even Rouault
Le lundi 29 août 2011 13:34:22, Yves Jacolin a écrit : Hello, One of QGIS user report an issue with mapInfo file (TAB file). If you understand french you can see the thread here: http://georezo.net/forum/viewtopic.php?pid=197022 This looks really similar to the issue raised in ticket

[gdal-dev] Exporting functions under Windows

2011-08-29 Thread Mikhail Tchernychev
Hi, I came across this problem before, and I don't remember id I solved. The problem is then gdal18.dll is not exporting many functions. I use default build using VC 2010 express edition. For instance instead of function GDALAllRegister library exports _GDALAllRegister@0 GetProcAddress()

Re: [gdal-dev] Exporting functions under Windows

2011-08-29 Thread Mikhail Tchernychev
I think I figured it out. I added -DCPL_DISABLE_STDCALL to the OPTFLAGS and commented out STDCALL=YES After this it all worked. Thank you Mikhail On 8/29/2011 5:29 PM, Mikhail Tchernychev wrote: Hi, I came across this problem before, and I don't remember id I solved. The problem is then