From 15b42f91606ba86a01478d6a53728138f1606468 Mon Sep 17 00:00:00 2001 From: lvdbrink Date: Mon, 26 Feb 2024 11:37:32 +0100 Subject: [PATCH] editorial fixes --- README.md | 4 ++-- index.html | 23 +++++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8d5ef8f..62101dd 100644 --- a/README.md +++ b/README.md @@ -47,5 +47,5 @@ Implemented filtering features by date based on this Openlayers example https://openlayers.org/en/latest/examples/filter-points-webgl.html Implemented a JSON-FG format. It is an override of the GeoJSON format. -It add functionality for the global coordRefSys attribute and the "time" and "place" feature attributes. -Implemented a small fix for undefined timestamps. It seems like GDAL generates these values as ".." which is not falsy. +It adds functionality for the global `coordRefSys` attribute and the "time" and "place" feature attributes. +Implemented a small fix for undefined timestamps. GDAL generates these values as ".." which is not falsy. In JSON-FG, the unbounded end of an interval is represented by a double-dot string (".."), see [JSON-FG spec 7.7.4 Intervals](https://docs.ogc.org/DRAFTS/21-045.html#_intervals). diff --git a/index.html b/index.html index f6acc2c..b013b13 100644 --- a/index.html +++ b/index.html @@ -70,12 +70,14 @@ >

- Notes:
- Openlayers has Geojson support but that is not enough for the time and - coordinate system additions of JSON-FG. To make this possible a custom - JSON-FG format is included that partially implements JSON-FG.
- The format only supports time.interval from JSON-FG. If it uses - time.date or time.timestamp the timeslider does nothing. + Notes:

+

GDAL docs on the JSON-FG standard:
@@ -86,8 +88,8 @@

Create JSON-FG

- Run the following gdal command to convert your gml to json-fg. This - requires gdal >3.8 + Run the following GDAL command to convert your GML to JSON-FG. This + requires GDAL >3.8

ogr2ogr -f "JSONFG" output.jsonfg input.gml

For me it looked like this:

@@ -96,11 +98,12 @@ ./bgt_kunstwerkdeel.jsonfg https://raw.githubusercontent.com/Geonovum-labs/test-ogc-json-fg/main/testdata/bgt/citygml/bgt_kunstwerkdeel.gml +

It is also possible to use another input format, for example GeoPackage.

JSON-FG editor

-

Edit your json-fg here, the layer is automatically updated.

+

Edit your JSON-FG here, the layer is automatically updated.

@@ -108,7 +111,7 @@

Transformation editor

- Add the transformation string for the coordinate system of your json. + Add the transformation string for the coordinate system of your JSON.