GeoJsonGeometryParser

mostly based on https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.2

Constructors

Link copied to clipboard
constructor()

Types

Functions

Link copied to clipboard
open fun parseAsLineString(input: JsonArray): ArrayList<ArrayList<Double>>
For type "LineString", the "coordinates" member is an array of two or more positions.
Link copied to clipboard
For type "MultiLineString", the "coordinates" member is an array of LineString coordinate arrays.
Link copied to clipboard
open fun parseAsMultiPoint(input: JsonArray): ArrayList<ArrayList<Double>>
For type "MultiPoint", the "coordinates" member is an array of positions.
Link copied to clipboard
array of polygons
Link copied to clipboard
open fun parseAsPoint(coordinates: JsonArray): ArrayList<Double>
For type "Point", the "coordinates" member is a single position.
Link copied to clipboard
open fun parseAsPolygon(input: JsonArray): ArrayList<ArrayList<ArrayList<Double>>>
For type "Polygon", the "coordinates" member MUST be an array of linear ring coordinate arrays.