DoFabien / proj-geojson

Reproject a geojson with proj4js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proj-geojson

Reproject a geojson with proj4js

NPM

    npm install proj-geojson

Example

    const projgeojson = require('proj-geojson');
    const fs = require('fs');

    let geojson = JSON.parse(fs.readFileSync('my-file.geojson'));
    const geojson2154 = projgeojson(geojson, 'EPSG:4326', 'EPSG:2154');
    console.log(geojson2154);

About

Reproject a geojson with proj4js

License:MIT License


Languages

Language:JavaScript 100.0%