Re: [gdal-dev] SQLite driver hit and miss with spatial index

2017-04-06 Thread Jan Heckman
Hi, Out of interest, I tried the tack of converting to shapefile with a .dbf only containing the primary index OGC_FID. This might provide an alternative for indexed access to the geometry. I see it isn't needed anymore, but anyway, for info and comparison: What worked: - shapefile record count 252

Re: [gdal-dev] SQLite driver hit and miss with spatial index

2017-04-06 Thread jratike80
Frederik Ramm wrote > Hi, > >while what I wrote in the previous post is still interesting and a > bit strange, I have meanwhile upgraded to GDAL 2 packages from the > ubuntugis-unstable repository for Xenial, and now the behaviour is as I > would expect it: The ogr2ogr -spat command *with* ind

Re: [gdal-dev] Reading KMZ in Ogr Csharp

2017-04-06 Thread Even Rouault
On jeudi 6 avril 2017 04:25:37 CEST ke...@speerit.nl wrote: > Hello, > > We’re using the gdal ogr csharp library to read kmz files (such as the > attached file), using the libkml driver. The code used to open the file: > > OSGeo.OGR.Ogr.RegisterAll(); > OSGeo.OGR.Ogr.Open(/*path to file*/, 0); >

Re: [gdal-dev] SQLite driver hit and miss with spatial index

2017-04-06 Thread Frederik Ramm
Hi, while what I wrote in the previous post is still interesting and a bit strange, I have meanwhile upgraded to GDAL 2 packages from the ubuntugis-unstable repository for Xenial, and now the behaviour is as I would expect it: The ogr2ogr -spat command *with* indexes takes practically no time (

[gdal-dev] Reading KMZ in Ogr Csharp

2017-04-06 Thread ke...@speerit.nl
Hello, We’re using the gdal ogr csharp library to read kmz files (such as the attached file), using the libkml driver. The code used to open the file: OSGeo.OGR.Ogr.RegisterAll(); OSGeo.OGR.Ogr.Open(/*path to file*/, 0); When trying to open the file, I get an error: Error parsing kml Style: No i

[gdal-dev] configure: error: HDF4 support requested with arg "/usr/lib/hdf4", but neither hdf4 nor mfhdf lib found

2017-04-06 Thread Charles Dosantos
Hello, I am trying to build gdal 2.1.3 on centos , but running into this error. Many people have reported similar errors. Is there any solution for it ? hdf4 drivers build were configured using and the build seemed okay. ./configure --with-jpeg=/usr/lib/jpeglib --disable-netcdf --disable-fortran

[gdal-dev] SQLite driver hit and miss with spatial index

2017-04-06 Thread Frederik Ramm
Dear gdal folks, TL;DR: ogrinfo uses an SQLite spatial index but ogr2ogr doesn't? I'm debugging a performance issue with my "OSM Inspector" web site, where I use a large number of SQLite files in Mapserver, and Mapserver takes very long to pick the data it wants to display. I have managed to boi