ToGeoJSON
Description
Convertit un objet Spatial Geometry en son équivalent GeoJSON (format d'échange des données géospatiales basé sur JavaScript Object Notation (JSON)). Cette fonction convertit un objet Feature Geometry en les types de géométries GeoJSON correspondants suivants : Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon et GeometryCollection. La spécification GeoJSON suit la notation JSON définie, disponible à l'adresse suivante : http://geojson.org/geojson-spec.html.
Syntaxe
ToGeoJSON (obj)
Arguments
obj est une gémoétrie Spatial Feature
Exemple
Renvoie une chaîne GeoJSON à partir d'un objet Feature Geometry.
select ToGeoJSON(obj) from "/Samples/NamedTables/WorldTable" where country='Madagascar'