parseGeometry

open fun parseGeometry(geoJsonGeometry: JSONObject): Geometry

Parses a single GeoJSON geometry object containing a coordinates array or a geometries array if it has type GeometryCollection. FeatureCollections, styles, bounding boxes, and properties are not processed by this method. If you want to parse GeoJSON including FeatureCollections, styles, bounding boxes, and properties into an array of GeoJsonFeatures then instantiate GeoJsonParser and call getFeatures.

Return

Geometry object

Parameters

geoJsonGeometry

geometry object to parse