Function toKeplerGeoJsonGeometry

  • Experimental

    Convert a canonical Honua geometry (GeoJSON or Esri JSON) into GeoJSON. Returns null for absent or unrecognized geometry so the row still projects attribute-only.

    Geometry that already arrived as GeoJSON passes through untouched; Esri-JSON is delegated to esriGeometryToGeoJSON, so multi-exterior-ring polygons become a MultiPolygon (not one Polygon whose later exterior rings are misread as holes) and every ring is rewound to the RFC 7946 right-hand rule Kepler's GeoJSON layer expects.

    Parameters

    • geometry: unknown

    Returns KeplerGeoJsonGeometry | null