fromGeoRefOrNull

fun fromGeoRefOrNull(coordinates: String, spatialReference: SpatialReference?): Point?

Parses a coordinate in World Geographic Reference System (GEOREF) notation, and returns a Point representing that location. The spatial reference provided must have an ellipsoid and datum matching those used by the source of the GEOREF string. If no spatial reference is provided, it is assumed the GEOREF string is referenced to WGS 84. The GEOREF string may contain leading and trailing whitespace.

GEOREF notation examples
MKML5056
MKML50285665
Returns null on error, including when the given string is not valid GEOREF notation.

Return

A point with the location from the GEOREF string in the spatial reference provided.

Since

200.1.0