-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from PDOK/feature-relations-fix
Feature relations fix
- Loading branch information
Showing
4 changed files
with
150 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
internal/ogc/features/testdata/expected_mapsheets_jsonfg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"timeStamp": "2000-01-01T00:00:00Z", | ||
"coordRefSys": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", | ||
"links": [ | ||
{ | ||
"rel": "self", | ||
"title": "This document as JSON-FG", | ||
"type": "application/vnd.ogc.fg+json", | ||
"href": "http://localhost:8080/collections/example_mapsheets/items?f=jsonfg&limit=2" | ||
}, | ||
{ | ||
"rel": "alternate", | ||
"title": "This document as GeoJSON", | ||
"type": "application/geo+json", | ||
"href": "http://localhost:8080/collections/example_mapsheets/items?f=json&limit=2" | ||
}, | ||
{ | ||
"rel": "alternate", | ||
"title": "This document as HTML", | ||
"type": "text/html", | ||
"href": "http://localhost:8080/collections/example_mapsheets/items?f=html&limit=2" | ||
}, | ||
{ | ||
"rel": "next", | ||
"title": "Next page", | ||
"type": "application/vnd.ogc.fg+json", | ||
"href": "http://localhost:8080/collections/example_mapsheets/items?cursor=Dv4%7CNwyr1Q&f=jsonfg&limit=2" | ||
} | ||
], | ||
"conformsTo": [ | ||
"http://www.opengis.net/spec/json-fg-1/0.2/conf/core" | ||
], | ||
"features": [ | ||
{ | ||
"id": "3542", | ||
"type": "Feature", | ||
"time": null, | ||
"place": null, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
120919.942, | ||
489320.199 | ||
] | ||
}, | ||
"properties": { | ||
"datum_doc": "1900-01-01", | ||
"datum_eind": null, | ||
"datum_strt": "1900-01-01", | ||
"document": "GV00000402", | ||
"huisletter": null, | ||
"huisnummer": 14, | ||
"nummer_id": "0363200000454013", | ||
"postcode": "1013CR", | ||
"rdf_seealso": "http://bag.basisregistraties.overheid.nl/bag/id/nummeraanduiding/0363200000454013", | ||
"status": "Naamgeving uitgegeven", | ||
"straatnaam": "Van Diemenkade", | ||
"toevoeging": null, | ||
"type": "Ligplaats", | ||
"woonplaats": "Amsterdam" | ||
}, | ||
"links": [ | ||
{ | ||
"rel": "enclosure", | ||
"title": "Download feature", | ||
"type": "application/octet-stream", | ||
"href": "http://bag.basisregistraties.overheid.nl/bag/id/nummeraanduiding/0363200000454013" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "3837", | ||
"type": "Feature", | ||
"time": null, | ||
"place": null, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
121108.424, | ||
488930.925 | ||
] | ||
}, | ||
"properties": { | ||
"datum_doc": "1900-01-01", | ||
"datum_eind": null, | ||
"datum_strt": "1900-01-01", | ||
"document": "GV00000402", | ||
"huisletter": null, | ||
"huisnummer": 9, | ||
"nummer_id": "0363200000398886", | ||
"postcode": "1013KW", | ||
"rdf_seealso": "http://bag.basisregistraties.overheid.nl/bag/id/nummeraanduiding/0363200000398886", | ||
"status": "Naamgeving uitgegeven", | ||
"straatnaam": "Realengracht", | ||
"toevoeging": null, | ||
"type": "Ligplaats", | ||
"woonplaats": "Amsterdam" | ||
}, | ||
"links": [ | ||
{ | ||
"rel": "enclosure", | ||
"title": "Download feature", | ||
"type": "application/octet-stream", | ||
"href": "http://bag.basisregistraties.overheid.nl/bag/id/nummeraanduiding/0363200000398886" | ||
} | ||
] | ||
} | ||
], | ||
"numberReturned": 2 | ||
} |