fgb-vt - v1.0.6
    Preparing search index...

    Interface Projection

    Conversion between a source's coordinate reference system and WGS 84 longitude/latitude, one coordinate at a time.

    Shaped to fit proj4js directly:

    const utm = proj4('EPSG:25832', 'WGS84');
    const projection: Projection = {
    toWgs84: (x, y) => utm.forward([x, y]),
    fromWgs84: (lon, lat) => utm.inverse([lon, lat]),
    };
    interface Projection {
        fromWgs84(lon: number, lat: number): ArrayLike<number>;
        toWgs84(x: number, y: number): ArrayLike<number>;
    }
    Index
    • Convert [longitude, latitude] to a coordinate in the source CRS.

      Parameters

      • lon: number
      • lat: number

      Returns ArrayLike<number>

    • Convert a coordinate in the source CRS to [longitude, latitude].

      Parameters

      • x: number
      • y: number

      Returns ArrayLike<number>