Georeferencing API
    Preparing search index...

    Function toGeographicFeature

    • Convert an OpenLayers Point, LineString or Polygon into longitude/latitude GeoJSON, preserving ID and properties.

      Adaptive subdivision preserves straight map-space segments when projection curves them. It rejects antimeridian crossings and subdivision-budget exhaustion instead of silently distorting geometry.

      Parameters

      • feature: Feature

        Host-map geometry in mapCrs; not mutated.

      • mapCrs: string

        Explicit geometry CRS.

      • tolerance: number

        Positive allowed midpoint deviation in map units.

      • definitions: Definitions = {}

        Additional host projection definitions.

      Returns Feature<Point | LineString | Polygon, Record<string, unknown>>