Files
pygeoapi/docker/examples/geosparql/data/items.geojson
T
Kyle Onda 37b1e9553b add geometry representations for json-ld output format (#689)
* Update linked_data.py

* Update linked_data.py

Added schema:geoShape to geojsonld = false

* Update linked_data.py

* Update linked_data.py for rebasing

* Update linked_data.py

* Update configuration.rst

* Update linked_data.py for geosparql geometry

* Add files via upload

* Update test_api.py

* Update test_api.py

* Update linked_data.py logic

* Add pytest for more geometry types

* Update test_util.py

* rename geojson2geojsonld, separated geom2schemageo

* Add pytest for polygon and linestring

* Update expanation of uri_field

Co-authored-by: Benjamin Webb <40066515+webb-ben@users.noreply.github.com>
Co-authored-by: Benjamin Webb <bmwebb20@colby.edu>
2021-06-17 19:00:35 -04:00

160 lines
4.2 KiB
JSON

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[30.0, 10.0], [10.0, 30.0], [40.0, 40.0]
]
},
"properties": {
"fid": 1,
"uri": "http://localhost:5000/collections/objects/items/LineString",
"id": "LineString"
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [
[10.0, 40.0], [40.0, 30.0], [20.0, 20.0], [30.0, 10.0]
]
},
"properties": {
"fid": 2,
"uri": "http://localhost:5000/collections/objects/items/MultiPoint",
"id": "MultiPoint"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-85.2491113,
33.12234349999999
]
},
"properties": {
"fid": 3,
"uri": "http://localhost:5000/collections/objects/items/Point",
"id": "Point"
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiLineString",
"coordinates": [
[[10.0, 10.0], [20.0, 20.0], [10.0, 40.0]],
[[40.0, 40.0], [30.0, 30.0], [40.0, 20.0], [30.0, 10.0]]
]
},
"properties": {
"fid": 4,
"uri": "http://localhost:5000/collections/objects/items/MultiLineString",
"id": "MultiLineString"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[[30.0, 10.0], [40.0, 40.0], [20.0, 40.0], [10.0, 20.0], [30.0, 10.0]]
]
},
"properties": {
"fid": 5,
"uri": "http://localhost:5000/collections/objects/items/Polygon",
"id": "Polygon"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[[35.0, 10.0], [45.0, 45.0], [15.0, 40.0], [10.0, 20.0], [35.0, 10.0]],
[[20.0, 30.0], [35.0, 35.0], [30.0, 20.0], [20.0, 30.0]]
]
},
"properties": {
"fid": 6,
"uri": "http://localhost:5000/collections/objects/items/PolygonHole",
"id": "PolygonHole"
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[[30.0, 20.0], [45.0, 40.0], [10.0, 40.0], [30.0, 20.0]]
],
[
[[15.0, 5.0], [40.0, 10.0], [10.0, 20.0], [5.0, 10.0], [15.0, 5.0]]
]
]
},
"properties": {
"fid": 7,
"uri": "http://localhost:5000/collections/objects/items/MultiPolygon",
"id": "MultiPolygon"
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[[40.0, 40.0], [20.0, 45.0], [45.0, 30.0], [40.0, 40.0]]
],
[
[[20.0, 35.0], [10.0, 30.0], [10.0, 10.0], [30.0, 5.0], [45.0, 20.0], [20.0, 35.0]],
[[30.0, 20.0], [20.0, 15.0], [20.0, 25.0], [30.0, 20.0]]
]
]
},
"properties": {
"fid": 8,
"uri": "http://localhost:5000/collections/objects/items/MultiPolygonWithHole",
"id": "MultiPolygonWithHole"
}
},
{
"type": "Feature",
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [40.0, 10.0]
},
{
"type": "LineString",
"coordinates": [
[10.0, 10.0], [20.0, 20.0], [10.0, 40.0]
]
},
{
"type": "Polygon",
"coordinates": [
[[40.0, 40.0], [20.0, 45.0], [45.0, 30.0], [40.0, 40.0]]
]
}
]
},
"properties": {
"fid": 9,
"uri": "http://localhost:5000/collections/objects/items/GeometryCollection",
"id": "GeometryCollection"
}
}
]
}