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

Andrea Aime andrea.aime at geo-solutions.it
Mon Feb 11 09:04:35 PST 2019


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

> What you can do (until OGR becomes smarter at a later point...) is:
> SetAttributeFilter("0 = 1")
> GetNextFeature()
>
> This will iterate over all the features and build the index.
>

Excellent


> >
> > Also, are DataSource objects thread safe, can one perform multiple reads
> in
> > parallel over them?
>
> No, an object should never be used by more than one thread at a time.
>

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 application like GeoServer, where each
thread serves one request
in a stateless manner. I'm guessing maybe one would have to setup some sort
of DataSource
pooling, not unlike a connection pool for databases.
Are there other file formats that would benefit from such a thing?

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/a6949b3d/attachment.html>


More information about the gdal-dev mailing list