Skip to content

Commit

Permalink
Fix coordinates specification
Browse files Browse the repository at this point in the history
The coordinates specification for the extras field spatial described an
array of arrays of numbers. According to the GeoJSON specification,
however, it has to be an array of arrays of arrays of numbers. This is
due to the fact, that the polygon needs to be a list of linear ring,
which is line string that closes itself in the end again.

Signed-off-by: Konrad Reiche <[email protected]>
  • Loading branch information
Konrad Reiche committed Dec 4, 2013
1 parent 7b16ec3 commit 85da812
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OGPD_JSON_Schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<tr><td rowspan="1">Original-Metadaten-HTML</td><td rowspan="1">metadata_original_html</td><td rowspan="1"></td><td rowspan="1"></td><td rowspan="1">String</td><td rowspan="1">URI</td><td rowspan="1">URL des Original-Metadateneintrags in der HTML-Represantationsform. Erscheint als Link in der Detailseite.</td></tr>
<tr><td rowspan="1">Abdeckung in Koordinaten</td><td rowspan="3">spatial</td><td rowspan="1"></td><td rowspan="1"></td><td rowspan="1">Object</td><td rowspan="1"></td><td rowspan="1">Die geographische Abdeckung des Datensatzes in WGS 84 Koordinaten nach GeoJSON http:https://geojson.org . Wird später für eine geographische Suche verwendet.</td></tr>
<tr><td rowspan="1">Art der Form</td><td rowspan="1">type</td><td rowspan="1"></td><td rowspan="1">String</td><td rowspan="1">Enum aus: polygon</td><td rowspan="1">Hier ist zunächst nur Polygon vorgesehen, andere waeren vorstellbar.</td></tr>
<tr><td rowspan="1">Koordinaten Liste der Koordinaten</td><td rowspan="1">coordinates</td><td rowspan="1"></td><td rowspan="1">Liste von Array</td><td rowspan="1"></td><td rowspan="1">Koordinaten Liste der Koordinaten</td></tr>
<tr><td rowspan="1">Liste der LinearRing Koordinaten-Liste</td><td rowspan="1">coordinates</td><td rowspan="1"></td><td rowspan="1">Liste von Array</td><td rowspan="1"></td><td rowspan="1">Liste der LinearRing Koordinaten-Liste</td></tr>
<tr><td rowspan="1">Abdeckung als Text</td><td rowspan="1">spatial-text</td><td rowspan="1"></td><td rowspan="1"></td><td rowspan="1">String</td><td rowspan="1"></td><td rowspan="1">Abgedecktes Gebiets, wenn möglich der Amtliche Gemeindeschlüssel. Wird später für eine geographische Suche verwendet.</td></tr>
<tr><td rowspan="1">Räumliche Auflösung</td><td rowspan="1">geographical_granularity</td><td rowspan="1"></td><td rowspan="1"></td><td rowspan="1">String</td><td rowspan="1">Enum aus: bund, land, kommune, stadt</td><td rowspan="1">Die geographische Granularität des Datensatzes, eines Dokuments, einer App. Wird später zum Filtern verwendet.</td></tr>
<tr><td rowspan="1">Start-Datum</td><td rowspan="1">temporal_coverage_from</td><td rowspan="1"></td><td rowspan="1"></td><td rowspan="1">String</td><td rowspan="1">date-time</td><td rowspan="1">Der Zeitpunkt, von dem an der Datensatz, das Dokument oder die App einschließlich Daten enthält. Wird insb. zum Filtern verwendet.</td></tr>
Expand Down
13 changes: 9 additions & 4 deletions OGPD_JSON_Schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,17 @@
},
"coordinates": {
"type": "array",
"description": "Koordinaten Liste der Koordinaten",
"description": "Liste der LinearRing Koordinaten-Liste",
"items": {
"type": "array",
"description": "Koordinaten in der Reihenfolge x, y",
"description": "Koordinatenliste die einen LinearRing bildet",
"items": {
"type": "number"
"type": "array",
"description": "Koordinatenliste bestehend aus x,y Koordinaten",
"items": {
"type": "number",
"description": "x bzw. y Koordinate"
}
}
}
}
Expand Down Expand Up @@ -319,4 +324,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions beispiele/beispiel1.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"metadata_original_html": "http:https://www.example.com/bundesamt/beispieldaten/01043a74-ca8c-783b-5541",
"spatial": {
"type": "polygon",
"coordinates": [
"coordinates": [[
[
15.02,
47.16
Expand All @@ -89,7 +89,7 @@
[
15.02,
47.16
]
]]
]
},
"spatial-text": "Märkisch-Oderland 12 0 64",
Expand Down

0 comments on commit 85da812

Please sign in to comment.