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

Andrea Aime andrea.aime at geo-solutions.it
Mon Feb 11 07:07:49 PST 2019


Hi Even,
thanks for the fast and insightful response!
Comments inline.

On Mon, Feb 11, 2019 at 3:05 PM Even Rouault <even.rouault at spatialys.com>
wrote:

> Looking at the code, the driver requires really particular call sequences
> to
> complete the building of the index, basically iterate over the whole
> dataset,
> and will invalidate it as soon as you do something else: for example, if
> you
> reset the iteration on features after having read at least one.
>

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 any faster way to get the index built, other than
just
iterating over every single feature?

Also, are DataSource objects thread safe, can one perform multiple reads in
parallel over them?

> Also, has the FileGDB driver been tested in a heavily multithreaded
> > environment, does it work fine there?
>
> The FileGDB SDK has (at least early versions which were used to develop
> it)
> multithreading issues, so the FileGDB driver has a big lock over all
> calls.
> That won't scale very well of course...
>

Ouch this hurts, but very good to know!

Cheers
Andrea

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190211/15b83f62/attachment-0001.html>


More information about the gdal-dev mailing list