ToGeoJSON

Beschreibung

Wandelt eine räumliche Geometrie in ihre GeoJSON-Äquivalente (Format zum Austausch geografischer Daten basierend auf der JavaScript Object Notation (JSON)) um. Anhand dieser Funktion wird eine Feature-Geometrie in die entsprechenden folgenden GeoJSON-Geometrietypen umgewandelt: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon und GeometryCollection. Die GeoJSON-Spezifikation folgt der definierten JSON aus http://geojson.org/geojson-spec.html.

Syntax

ToGeoJSON (obj)

Argumente

obj ist eine Spatial Feature-Geometrie.

Beispiel

Gibt eine GeoJSON-Zeichenfolge aus einer Feature-Geometrie zurück.

select ToGeoJSON(obj) from "/Samples/NamedTables/WorldTable" where country='Madagascar'