ToGeoJSON - spectrum_spatial - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2026-02-13
ft:lastPublication
2026-02-13T17:17:07.540000
L1_Product_Gateway
Locate
L2_Product_Segment
Location Intelligence
L3_Product_Brand
Precisely Spectrum Spatial
L4_Investment_Segment
LI Enterprise
L5_Product_Group
Enterprise LI
L6_Product_Name
Spectrum Spatial

Description

Converts a Spatial Geometry to its GeoJSON (geospatial data interchange format based on JavaScript Object Notation (JSON)) equivalent. This function converts feature geometry into the corresponding following GeoJSON geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. The GeoJSON specification follows the defined JSON from http://geojson.org/geojson-spec.html.

Syntax

ToGeoJSON (obj )

Arguments

obj is a Spatial Feature geometry

Example

Returns a GeoJSON string from a feature geometry.

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