[gdal-dev] Schema support in OAPIF and GeoJSON
Even Rouault
even.rouault at spatialys.com
Wed Nov 13 08:38:28 PST 2019
On mercredi 13 novembre 2019 16:18:32 CET Rahkonen Jukka (MML) wrote:
> Hi,
>
> GeoJSON from OGC API Features service may contain schema or reference to
> schema and OAPIF driver resolves it. Does the plain GeoJSON driver have the
> same support? If not, how about to add the support, possibly with an open
> option to read the schema from a local file? Otherwise it can happen that
> reading GeoJSON from a server would give different schema than reading the
> same GeoJSON from a disk if data does not contain all the attributes from
> the schema.
Jukka,
The likelihood of issues araising with a GeoJSON file from disk is lesser than
in the OAPIF context, since the GeoJSON driver makes a full pass on the file
to build the layer schema, wheras the OAPIF driver only analyzes the first
page (when there's no schema). And GeoJSON files are very rarely accompanied
with schemas. So while I think an enhancement ticket about that makes sense,
this is not currently in the top of my own priority list.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list