Georeferencing API
    Preparing search index...

    Function createConverter

    • Create a validated, reusable coordinate converter between explicit CRSs. Definitions and mandatory datum grids are checked once; the returned function only transforms. Converters are cached by resolved definition, so repeated calls are cheap.

      Parameters

      • from: string

        Source CRS identifier or inline definition.

      • to: string

        Destination CRS identifier or inline definition.

      • definitions: Definitions = {}

        Additional host projection definitions.

      Returns (p: XY) => XY

      Converter; its output may be nonfinite outside the projection domain.

      GeoreferenceError For missing definitions or required datum grids.