Re: [gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-18 Thread Even Rouault
On lundi 18 février 2019 12:51:30 CET Andrea Aime wrote: > say I'm doing pooling and at one point I want to open > a DataSource in write mode. Do I need to close the ones in read mode? I'd recommend that. The open connections would probably miss some of the updates done otherwise. -- Spatialys

Re: [gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-12 Thread Even Rouault
On mardi 12 février 2019 10:24:50 CET Nyall Dawson wrote: > On Mon, 11 Feb 2019 at 23:33, Andrea Aime wrote: > > I've tried to open a relatively small file, 20MB, 200k lines, works and > > displays fine, the in memory spatial index (from the docs, "By default, > > it will also build on the fly a

Re: [gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-11 Thread Nyall Dawson
On Mon, 11 Feb 2019 at 23:33, Andrea Aime wrote: > I've tried to open a relatively small file, 20MB, 200k lines, works and > displays fine, the > in memory spatial index (from the docs, "By default, it will also build on > the fly a in-memory spatial index during the first sequential read of a

Re: [gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-11 Thread Even Rouault
> So each thread needs to build its own DataSource and associated in memory > spatial index, > and keep them alive for as possible in order to reuse the index? > Sorry for all these questions, trying to figure out if there is a way to > keep the index alive > long enough to be useful in an applicat

Re: [gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-11 Thread Even Rouault
> Let's say I would like to "kickstart" the index, it seems like one would > have > to iterate over all the features. Surely OGR has to read them all, but the > client > application might not be interested in the result, only in the side effect > (index > creation indeed). > In that case, is there

Re: [gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-11 Thread Even Rouault
Andrea, > Am I right in assuming one has to pretty much build from sources in order > to try out the FileGBD driver? In osgeo4w, you can install the "gdal-filegdb" package > > I've tried to open a relatively small file, 20MB, 200k lines, works and > displays fine, the > in memory spatial index

[gdal-dev] FileGBD vs OpenFileGBD, a few of questions

2019-02-11 Thread Andrea Aime
Hi, I'm looking at ESRI gdb file support and options I have. I'm doing some tests using QGIS, but eventually would want to use the Java API to read the files. QGIS 3.4, as installed on my Linux distro, opens the files with the OpenFileGDB driver. The QGIS 3.4 Windows version of 3.4 does the same.