• Parses a given WKT-string or a WKT resource identifier (uri) into a CoordinateReference object.

    Parameters

    • wktText: string

      A reference encoded as Well-Known Text (WKT).

    • Optional authorityName: string

      The name of the authority that specified the reference. For example, EPSG. By default, this information is parsed from the authority tags in the WKT string.

    • Optional authorityCode: string

      The identifier of the reference. For example, 4326. By default, this information is parsed from the authority tags in the WKT string.

    • Optional options: ReferenceOptions

      options for the WKT parsing or reference creation.

    Returns CoordinateReference

    The reference corresponding to the WKT-string. If the authority name and code were not present in the WKT string or given when calling this method, the identifier of this reference is undefined

    To be able to get this CoordinateReference when you call getReference, you need to add it to the reference provider with addReference first.