[gdal-dev] Does OGR support GeoPackage enums in write mode (or at all?)

Andrea Aime andrea.aime at geo-solutions.it
Wed Apr 15 02:56:58 PDT 2020


On Wed, Apr 15, 2020 at 11:36 AM Even Rouault <even.rouault at spatialys.com>
wrote:

> > http://www.geopackage.org/spec/
>
>
>
> My understanding of table 27 is that it is just to define constraints on
> the values of a column, but not a way to establish a integer<-->string
> mapping as you'd like. Unless I'm missing something. Of course you could
> create an auxiliary table with the mapping, but I'm not aware of a
> standardized way of registering it.
>

I had the idea because Table 27 lists enum values (in the "value" column)
as 1, 2, 3, and while not providing an example of it,
gpkg_data_column_constraints
also has a "description" column. so my current guess is that one could use
integer numbers in "value", and provide the name of the value in
"description".
I'm going to follow up with the OGC spec lead to see if that was an actual
option, or just a thing in my mind... and will let you know what comes out
of it :-D

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/20200415/16f5db61/attachment.html>


More information about the gdal-dev mailing list