Skip to content

Commit

Permalink
Building blocks postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed May 28, 2024
1 parent a7edbba commit 6a6868d
Show file tree
Hide file tree
Showing 170 changed files with 1,278 additions and 316 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"_github_workspace_annotated-schemas_geo_common_parameters_bbox_schema.json": {
"name": "bbox",
"in": "query",
"description": "Only features that have a geometry that intersects the bounding box are selected.\nThe bounding box is provided as four or six numbers, depending on whether the\ncoordinate reference system includes a vertical axis (height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)\n\nIf the value consists of four numbers, the coordinate reference system is\nWGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\nunless a different coordinate reference system is specified in the parameter `bbox-crs`.\n\nIf the value consists of six numbers, the coordinate reference system is WGS 84\nlongitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h)\nunless a different coordinate reference system is specified in the parameter `bbox-crs`.\n\nThe query parameter `bbox-crs` is specified in OGC API - Features - Part 2: Coordinate\nReference Systems by Reference.\n\nFor WGS 84 longitude/latitude the values are in most cases the sequence of\nminimum longitude, minimum latitude, maximum longitude and maximum latitude.\nHowever, in cases where the box spans the antimeridian the first value\n(west-most box edge) is larger than the third value (east-most box edge).\n\nIf the vertical axis is included, the third and the sixth number are the\nbottom and the top of the 3-dimensional bounding box.\n\nIf a feature has multiple spatial geometry properties, it is the decision of the\nserver whether only a single spatial geometry property is used to determine\nthe extent or all relevant geometries.",
"required": false,
"style": "form",
"explode": false,
"schema": {
"type": "array",
"oneOf": [
Expand All @@ -22,6 +21,8 @@
"type": "number"
}
},
"style": "form",
"explode": false,
"x-schema-source": "https://opengeospatial.github.io/bblocks/annotated-schemas/geo/common/parameters/bbox/schema-oas3.0.json"
}
},
Expand Down
68 changes: 66 additions & 2 deletions annotated-schemas/geo/common/parameters/bbox/schema-oas3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,71 @@ x-defs:
_github_workspace_annotated-schemas_geo_common_parameters_bbox_schema.yaml:
name: bbox
in: query
description: 'Only features that have a geometry that intersects the bounding
box are selected.
The bounding box is provided as four or six numbers, depending on whether the
coordinate reference system includes a vertical axis (height or depth):
* Lower left corner, coordinate axis 1
* Lower left corner, coordinate axis 2
* Minimum value, coordinate axis 3 (optional)
* Upper right corner, coordinate axis 1
* Upper right corner, coordinate axis 2
* Maximum value, coordinate axis 3 (optional)
If the value consists of four numbers, the coordinate reference system is
WGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84)
unless a different coordinate reference system is specified in the parameter
`bbox-crs`.
If the value consists of six numbers, the coordinate reference system is WGS
84
longitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h)
unless a different coordinate reference system is specified in the parameter
`bbox-crs`.
The query parameter `bbox-crs` is specified in OGC API - Features - Part 2:
Coordinate
Reference Systems by Reference.
For WGS 84 longitude/latitude the values are in most cases the sequence of
minimum longitude, minimum latitude, maximum longitude and maximum latitude.
However, in cases where the box spans the antimeridian the first value
(west-most box edge) is larger than the third value (east-most box edge).
If the vertical axis is included, the third and the sixth number are the
bottom and the top of the 3-dimensional bounding box.
If a feature has multiple spatial geometry properties, it is the decision of
the
server whether only a single spatial geometry property is used to determine
the extent or all relevant geometries.'
required: false
style: form
explode: false
schema:
type: array
oneOf:
Expand All @@ -14,6 +76,8 @@ x-defs:
maxItems: 6
items:
type: number
style: form
explode: false
x-schema-source: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/common/parameters/bbox/schema-oas3.0.yaml
allOf:
- $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/common/parameters/bbox/schema-oas3.0.yaml#/x-defs/_github_workspace_annotated-schemas_geo_common_parameters_bbox_schema.yaml
7 changes: 4 additions & 3 deletions annotated-schemas/geo/common/parameters/bbox/schema.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "bbox",
"in": "query",
"description": "Only features that have a geometry that intersects the bounding box are selected.\nThe bounding box is provided as four or six numbers, depending on whether the\ncoordinate reference system includes a vertical axis (height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)\n\nIf the value consists of four numbers, the coordinate reference system is\nWGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\nunless a different coordinate reference system is specified in the parameter `bbox-crs`.\n\nIf the value consists of six numbers, the coordinate reference system is WGS 84\nlongitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h)\nunless a different coordinate reference system is specified in the parameter `bbox-crs`.\n\nThe query parameter `bbox-crs` is specified in OGC API - Features - Part 2: Coordinate\nReference Systems by Reference.\n\nFor WGS 84 longitude/latitude the values are in most cases the sequence of\nminimum longitude, minimum latitude, maximum longitude and maximum latitude.\nHowever, in cases where the box spans the antimeridian the first value\n(west-most box edge) is larger than the third value (east-most box edge).\n\nIf the vertical axis is included, the third and the sixth number are the\nbottom and the top of the 3-dimensional bounding box.\n\nIf a feature has multiple spatial geometry properties, it is the decision of the\nserver whether only a single spatial geometry property is used to determine\nthe extent or all relevant geometries.",
"required": false,
"style": "form",
"explode": false,
"schema": {
"type": "array",
"oneOf": [
Expand All @@ -19,5 +18,7 @@
"items": {
"type": "number"
}
}
},
"style": "form",
"explode": false
}
63 changes: 61 additions & 2 deletions annotated-schemas/geo/common/parameters/bbox/schema.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,65 @@
name: bbox
in: query
description: 'Only features that have a geometry that intersects the bounding box
are selected.
The bounding box is provided as four or six numbers, depending on whether the
coordinate reference system includes a vertical axis (height or depth):
* Lower left corner, coordinate axis 1
* Lower left corner, coordinate axis 2
* Minimum value, coordinate axis 3 (optional)
* Upper right corner, coordinate axis 1
* Upper right corner, coordinate axis 2
* Maximum value, coordinate axis 3 (optional)
If the value consists of four numbers, the coordinate reference system is
WGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84)
unless a different coordinate reference system is specified in the parameter `bbox-crs`.
If the value consists of six numbers, the coordinate reference system is WGS 84
longitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h)
unless a different coordinate reference system is specified in the parameter `bbox-crs`.
The query parameter `bbox-crs` is specified in OGC API - Features - Part 2: Coordinate
Reference Systems by Reference.
For WGS 84 longitude/latitude the values are in most cases the sequence of
minimum longitude, minimum latitude, maximum longitude and maximum latitude.
However, in cases where the box spans the antimeridian the first value
(west-most box edge) is larger than the third value (east-most box edge).
If the vertical axis is included, the third and the sixth number are the
bottom and the top of the 3-dimensional bounding box.
If a feature has multiple spatial geometry properties, it is the decision of the
server whether only a single spatial geometry property is used to determine
the extent or all relevant geometries.'
required: false
style: form
explode: false
schema:
type: array
oneOf:
Expand All @@ -12,3 +69,5 @@ schema:
maxItems: 6
items:
type: number
style: form
explode: false
20 changes: 20 additions & 0 deletions annotated-schemas/geo/json-fg/feature-lenient/context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,30 @@
},
"coordRefSys": "http://www.opengis.net/def/glossary/term/CoordinateReferenceSystemCRS",
"place": "dct:spatial",
"Polyhedron": "geojson:Polyhedron",
"MultiPolyhedron": "geojson:MultiPolyhedron",
"Prism": {
"@id": "geojson:Prism",
"@context": {
"base": "geojson:prismBase",
"lower": "geojson:prismLower",
"upper": "geojson:prismUpper"
}
},
"MultiPrism": {
"@id": "geojson:MultiPrism",
"@context": {
"prisms": "geojson:prisms"
}
},
"coordinates": {
"@container": "@list",
"@id": "geojson:coordinates"
},
"geometries": {
"@id": "geojson:geometry",
"@container": "@list"
},
"geojson": "https://purl.org/geojson/vocab#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"oa": "http://www.w3.org/ns/oa#",
Expand Down
20 changes: 20 additions & 0 deletions annotated-schemas/geo/json-fg/feature-lenient/schema-oas3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@
"MultiPolygon": "https://purl.org/geojson/vocab#MultiPolygon",
"Point": "https://purl.org/geojson/vocab#Point",
"Polygon": "https://purl.org/geojson/vocab#Polygon",
"Polyhedron": "https://purl.org/geojson/vocab#Polyhedron",
"MultiPolyhedron": "https://purl.org/geojson/vocab#MultiPolyhedron",
"Prism": {
"x-jsonld-id": "https://purl.org/geojson/vocab#Prism",
"x-jsonld-context": {
"base": "https://purl.org/geojson/vocab#prismBase",
"lower": "https://purl.org/geojson/vocab#prismLower",
"upper": "https://purl.org/geojson/vocab#prismUpper"
}
},
"MultiPrism": {
"x-jsonld-id": "https://purl.org/geojson/vocab#MultiPrism",
"x-jsonld-context": {
"prisms": "https://purl.org/geojson/vocab#prisms"
}
},
"bbox": {
"x-jsonld-container": "@list",
"x-jsonld-id": "https://purl.org/geojson/vocab#bbox"
Expand All @@ -83,6 +99,10 @@
"features": {
"x-jsonld-container": "@set",
"x-jsonld-id": "https://purl.org/geojson/vocab#features"
},
"geometries": {
"x-jsonld-id": "https://purl.org/geojson/vocab#geometry",
"x-jsonld-container": "@list"
}
},
"x-jsonld-prefixes": {
Expand Down
15 changes: 15 additions & 0 deletions annotated-schemas/geo/json-fg/feature-lenient/schema-oas3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ x-defs:
MultiPolygon: https://purl.org/geojson/vocab#MultiPolygon
Point: https://purl.org/geojson/vocab#Point
Polygon: https://purl.org/geojson/vocab#Polygon
Polyhedron: https://purl.org/geojson/vocab#Polyhedron
MultiPolyhedron: https://purl.org/geojson/vocab#MultiPolyhedron
Prism:
x-jsonld-id: https://purl.org/geojson/vocab#Prism
x-jsonld-context:
base: https://purl.org/geojson/vocab#prismBase
lower: https://purl.org/geojson/vocab#prismLower
upper: https://purl.org/geojson/vocab#prismUpper
MultiPrism:
x-jsonld-id: https://purl.org/geojson/vocab#MultiPrism
x-jsonld-context:
prisms: https://purl.org/geojson/vocab#prisms
bbox:
x-jsonld-container: '@list'
x-jsonld-id: https://purl.org/geojson/vocab#bbox
Expand All @@ -54,6 +66,9 @@ x-defs:
features:
x-jsonld-container: '@set'
x-jsonld-id: https://purl.org/geojson/vocab#features
geometries:
x-jsonld-id: https://purl.org/geojson/vocab#geometry
x-jsonld-container: '@list'
x-jsonld-prefixes:
geojson: https://purl.org/geojson/vocab#
rdfs: http://www.w3.org/2000/01/rdf-schema#
Expand Down
20 changes: 20 additions & 0 deletions annotated-schemas/geo/json-fg/feature-lenient/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,22 @@
"MultiPolygon": "https://purl.org/geojson/vocab#MultiPolygon",
"Point": "https://purl.org/geojson/vocab#Point",
"Polygon": "https://purl.org/geojson/vocab#Polygon",
"Polyhedron": "https://purl.org/geojson/vocab#Polyhedron",
"MultiPolyhedron": "https://purl.org/geojson/vocab#MultiPolyhedron",
"Prism": {
"x-jsonld-id": "https://purl.org/geojson/vocab#Prism",
"x-jsonld-context": {
"base": "https://purl.org/geojson/vocab#prismBase",
"lower": "https://purl.org/geojson/vocab#prismLower",
"upper": "https://purl.org/geojson/vocab#prismUpper"
}
},
"MultiPrism": {
"x-jsonld-id": "https://purl.org/geojson/vocab#MultiPrism",
"x-jsonld-context": {
"prisms": "https://purl.org/geojson/vocab#prisms"
}
},
"bbox": {
"x-jsonld-container": "@list",
"x-jsonld-id": "https://purl.org/geojson/vocab#bbox"
Expand All @@ -98,6 +114,10 @@
"features": {
"x-jsonld-container": "@set",
"x-jsonld-id": "https://purl.org/geojson/vocab#features"
},
"geometries": {
"x-jsonld-id": "https://purl.org/geojson/vocab#geometry",
"x-jsonld-container": "@list"
}
},
"x-jsonld-prefixes": {
Expand Down
15 changes: 15 additions & 0 deletions annotated-schemas/geo/json-fg/feature-lenient/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ x-jsonld-extra-terms:
MultiPolygon: https://purl.org/geojson/vocab#MultiPolygon
Point: https://purl.org/geojson/vocab#Point
Polygon: https://purl.org/geojson/vocab#Polygon
Polyhedron: https://purl.org/geojson/vocab#Polyhedron
MultiPolyhedron: https://purl.org/geojson/vocab#MultiPolyhedron
Prism:
x-jsonld-id: https://purl.org/geojson/vocab#Prism
x-jsonld-context:
base: https://purl.org/geojson/vocab#prismBase
lower: https://purl.org/geojson/vocab#prismLower
upper: https://purl.org/geojson/vocab#prismUpper
MultiPrism:
x-jsonld-id: https://purl.org/geojson/vocab#MultiPrism
x-jsonld-context:
prisms: https://purl.org/geojson/vocab#prisms
bbox:
x-jsonld-container: '@list'
x-jsonld-id: https://purl.org/geojson/vocab#bbox
Expand All @@ -62,6 +74,9 @@ x-jsonld-extra-terms:
features:
x-jsonld-container: '@set'
x-jsonld-id: https://purl.org/geojson/vocab#features
geometries:
x-jsonld-id: https://purl.org/geojson/vocab#geometry
x-jsonld-container: '@list'
x-jsonld-prefixes:
geojson: https://purl.org/geojson/vocab#
rdfs: http://www.w3.org/2000/01/rdf-schema#
Expand Down
20 changes: 20 additions & 0 deletions annotated-schemas/geo/json-fg/feature/context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,30 @@
},
"coordRefSys": "http://www.opengis.net/def/glossary/term/CoordinateReferenceSystemCRS",
"place": "dct:spatial",
"Polyhedron": "geojson:Polyhedron",
"MultiPolyhedron": "geojson:MultiPolyhedron",
"Prism": {
"@id": "geojson:Prism",
"@context": {
"base": "geojson:prismBase",
"lower": "geojson:prismLower",
"upper": "geojson:prismUpper"
}
},
"MultiPrism": {
"@id": "geojson:MultiPrism",
"@context": {
"prisms": "geojson:prisms"
}
},
"coordinates": {
"@container": "@list",
"@id": "geojson:coordinates"
},
"geometries": {
"@id": "geojson:geometry",
"@container": "@list"
},
"geojson": "https://purl.org/geojson/vocab#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"oa": "http://www.w3.org/ns/oa#",
Expand Down
Loading

0 comments on commit 6a6868d

Please sign in to comment.