geopackage-ts
    Preparing search index...

    Type Alias TransformFn

    TransformFn: (x: number, y: number) => [number, number]

    A function that transforms a single coordinate pair from one CRS to another.

    Type Declaration

      • (x: number, y: number): [number, number]
      • Parameters

        • x: number

          The x-coordinate (e.g., longitude or easting) in the source CRS.

        • y: number

          The y-coordinate (e.g., latitude or northing) in the source CRS.

        Returns [number, number]

        A tuple [x, y] in the target CRS.