@node-gis/proj4geojson
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1-beta.6 • Public • Published

    @node-gis/proj4geojson

    Easily convert coordinate system for GIS vector data in GeoJSON format by Proj.4 JS

    Install

    //npm
    npm install @node-gis/proj4geojson
    
    //yarn
    yarn add @node-gis/proj4geojson

    Quick Start.

    Edit hungry-elion-hpios

        // WGS84 to EPSG:3857
        const conv_geojson = fromWGS84(objGeoJson, "EPSG:3857");
    
        // EPSG:3857 to  WGS84
        const conv_geojson = toWGS84(objGeoJson, "EPSG:3857");

    Custom Coordinates Reference System.

    you can easily to use custom CRS with params from epsg.io same like proj4

    const epsg_5179 = '+ proj=tmerc +lat_0=38 + lon_0=127.5 + k=0.9996 + x_0=1000000 + y_0=2000000 + ellps=GRS80 + towgs84=0, 0, 0, 0, 0, 0, 0 + units=m + no_defs'
    const geojson4326 = toWGS84(testGeojson, epsg_5179);

    LICENSE

    Licensed MIT

    Install

    npm i @node-gis/proj4geojson

    DownloadsWeekly Downloads

    13

    Version

    0.0.1-beta.6

    License

    MIT

    Unpacked Size

    21.2 kB

    Total Files

    11

    Last publish

    Collaborators

    • chisquare88