opengeospatial / ogcapi-discrete-global-grid-systems

https://ogcapi.ogc.org/dggs
Other
20 stars 8 forks source link

Relationship between DGGS, GeoJSON and JSON-FG. #46

Open pvretano opened 2 years ago

pvretano commented 2 years ago

The purpose of this issue is to capture the discussion about DGGS and GeoJSON in today's end-of-day briefing. The discussion was concerned with the relationship between GeoJSON and DGGS and JSON-FG and DGGS and more specifically how DGGS information can be encoded into a GeoJSON or JSON-FG document.

The key points of the discussion were:

  1. The DGGS SWG might consider taking the approach of JSON-FG to extend GeoJSON for DGGS information.
  2. Like JSON-FG that has introduced the where and when elements, DGGS can introduce new elements into GeoJSON to encode a list of relevant DGGS zone id's for example. Say something like dggsZoneIdList.
  3. The GeoJSON geometry element can be NULL or some summary representation of the DGGS information encoded in the dggsZoneIdList element. This is analogous to they way a 3-D building footprint geometry in JSON-FG can be projected to a 2-D representation and stored as the value of the geometry key.
  4. This approach allows an existing GeoJSON clients to read the file. They will, of course, ignore the additional DGGS elements.
  5. Clients aware of the DGGS extension elements, can read and make use of the DGGS information.

Any other participants in the discussion, please augment this issue with any points I may have missed.

jerstlouis commented 3 months ago

See these DGGS-(UB)JSON resources with GEBCO data packets for ISEA3H zone A6-0-E (level 1) at relative depth 11 (177,877 level 12 sub-zones):

In addition to a GeoJSON representation of list of zones that includes zone geometry, data values, sub-zone order (feature ID), it includes sample DGGS-JSON files which is an encoding specifically targeting DGGS data (not encoding zone geometry, for which DGGS libraries should already have a built-in understanding for efficient use of DGGS).

See also the GeoJSON and JSON-FG requirement classes of OGC API - DGGS.

jerstlouis commented 1 month ago

Now proposing to define an efficient DGGS-optimized encoding of vector data which is extending FG-JSON with the concepts of DGGRS, parent zoneId, relative depth and sub-zone order defined in DGGS-JSON, replacing coordinate pairs by a sub-zone order index. See https://github.com/opengeospatial/ogcapi-discrete-global-grid-systems/issues/72#issuecomment-2292568074 .

jerstlouis commented 1 month ago

@pvretano @cportele

If you have a chance to glance at:

https://github.com/opengeospatial/ogcapi-discrete-global-grid-systems/blob/master/core/sections/annex-c-examples.adoc#dggs-fg-json-examples

https://github.com/opengeospatial/ogcapi-discrete-global-grid-systems/blob/master/core/requirements/requirements_class_zone_data_dggs_fgjson.adoc

https://github.com/opengeospatial/ogcapi-discrete-global-grid-systems/blob/master/core/examples/3-osmOttawa-extract.dggsfgjson

https://github.com/opengeospatial/ogcapi-discrete-global-grid-systems/blob/master/core/examples/4-arcticBathymetry-extract.dggsfgjson

We'd like to extend FG-JSON with the ability to encode geometry coordinates as DGGRS sub-zone indices as a way to both:

Feedback would be welcome on the best approach to integrate this "DGGS-FG-JSON" with FG-JSON in terms of conformance classes etc. I'll join the meeting in a few minutes in case there's some time to discuss some of this.

Thanks.

jerstlouis commented 5 days ago

Based on the latest discussions in https://github.com/opengeospatial/ogc-feat-geo-json/issues/129 I think we should do the following:

cc. @geofizzydrink @cnreediii