opengeospatial / ogc-feat-geo-json

Apache License 2.0
32 stars 14 forks source link

Geometry objects in non-feature(collection) documents #109

Open joostfarla opened 1 year ago

joostfarla commented 1 year ago

The current spec only allows embedding Geometry objects as part of a Feature or FeatureCollection document. I'm wondering if the standard should explicitly allow (or at least mention) using the Geometry object schema within another context.

Usage examples could be:

The GeoJSON spec only standardizes the structure of a GeoJSON Object. It does not provide a definition for a GeoJSON Document or what objects may or may not be used on the root level of a document.

cportele commented 1 year ago

This is a good point. The focus of the document is in features and feature collections, but it was also the intent to allow using JSON-FG geometry objects in other contexts. However, currently a JSON document with a Polyhedron or Prism geometry is not a JSON-FG document and cannot have, for example, the JSON-FG media type.

I see two options:

I prefer the second approach.

cportele commented 1 year ago

Meeting 2023-11-13: For now, we add a statement about this topic in the current document and reference this issue. The idea is to implement the "proper approach" after the Public Comment period and before the approval process.

joostfarla commented 1 year ago

@cportele Great, I would also prefer the second approach!