Convert a single Esri-JSON geometry into a GeoJSON geometry.
Supports Esri point ({ x, y }), multipoint ({ points }), polyline ({ paths }), polygon ({ rings }), and envelope ({ xmin, ymin, xmax, ymax }) shapes. Returns null for null/undefined input and for geometries that contain no finite coordinates (e.g. empty rings/paths).
{ x, y }
{ points }
{ paths }
{ rings }
{ xmin, ymin, xmax, ymax }
null
undefined
rings
paths
Esri geometry, the geometry field of a HonuaFeature, or null/undefined.
geometry
The equivalent GeoJSON geometry, or null when the input is empty or unrecognized.
Convert a single Esri-JSON geometry into a GeoJSON geometry.
Supports Esri point (
{ x, y }), multipoint ({ points }), polyline ({ paths }), polygon ({ rings }), and envelope ({ xmin, ymin, xmax, ymax }) shapes. Returnsnullfornull/undefinedinput and for geometries that contain no finite coordinates (e.g. emptyrings/paths).