Reproject GeoJSON. Works Offline.

Overview

reproject-geojson

Reproject GeoJSON

features

  • Works Offline
  • Pure JavaScript
  • Cross-Platform (NodeJS or Browser)

install

npm install reproject-geojson

usage

import reprojectGeoJSON from "reproject-geojson";

const geojson = {
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
};

// reproject using EPSG Code
reprojectGeoJSON(geojson, { to: 3857 });
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [13981728.04363516, 1130195.3976388907]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
};

// reproject using Proj4 String
reprojectGeoJSON(geojson, { to: "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 ..." });

// reproject using Well-Known Text
reprojectGeoJSON(geojson, { to: 'PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984", ...' });

// reproject using ESRI Well-Known Text
reprojectGeoJSON(geojson, { to: 'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984", ...' });
You might also like...

Write or parse GeoJSON as YAML

geoyaml Write or parse GeoJSON as YAML. Like this: type: FeatureCollection features: - geometry: type: Point coordinates: - 37.9

Dec 1, 2021

Dashboards-maps is a frontend plugin that helps you in uploading custom GeoJSON to OpenSearch and communicates with the geospatial backend plugin for the same.

Welcome! Project Resources Code of Conduct License Copyright Dashboards-Maps Dashboards-maps is a frontend plugin that helps you in uploading custom G

Dec 28, 2022

A memory-efficient GeoJSON representation.

memory-geojson (experimental ๐Ÿงช ) A memory-efficient GeoJSON representation. This is not a new format. It's not meant to be serialized, and it doesn't

Nov 29, 2022

modern parser & stringifier for WKT, EWKT, and GeoJSON

betterknown betterknown development is supported by ๐ŸŒŽ placemark.io I wrote wellknown, a WKT parser and stringifier, eons ago. It's still sort of popu

Sep 3, 2022

Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works. You all can share your ides/works here.

Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works. You all can share your ides/works here.

Hacktoberfest Submit your Work Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works.

Oct 5, 2022

:fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

:fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

Start your next react project in seconds A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices Cr

Jan 6, 2023

:fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

:fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.

Start your next react project in seconds A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices Cr

Jan 7, 2023

๐Ÿ’พ Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.

localForage localForage is a fast and simple storage library for JavaScript. localForage improves the offline experience of your web app by using asyn

Jan 4, 2023

๐Ÿ’พ Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.

localForage localForage is a fast and simple storage library for JavaScript. localForage improves the offline experience of your web app by using asyn

Jan 1, 2023

:notebook: Our cool, secure, and offline-first Markdown editor.

:notebook: Our cool, secure, and offline-first Markdown editor.

Monod Hi! I'm Monod, the Markdown Editor! Monod is a (relatively) secure and offline-first Markdown editor we have built at TailorDev in order to lear

Dec 4, 2022

๐ŸŽ‰ Next Generation API-first CMS for developers. Generate an API-first CMS from a GraphQL schema with offline prototyping and an inline editor

๐ŸŽ‰ Next Generation API-first CMS for developers. Generate an API-first CMS from a GraphQL schema with offline prototyping and an inline editor

Tipe Next Generation API-first CMS Design your content Shape and design content for any project you and your team are working on. Create your content

Oct 22, 2021

PS4 Offline Account Activator reimplemented as a web payload

ps4-web-activator PS4 offline activator, reimplemented as a web payload. Tested and proven to be working on 7.5X firmwares. Untested 6.72 and 7.02 pag

Nov 8, 2022

Add to your GitHub readme a badge that shows your Discord username and presence (online/idle/do not disturb/offline)!

Discord Profile Markdown badge Add to your GitHub readme a badge that shows your Discord username and presence! Set up Join the Discord server (requir

Dec 30, 2022

Making service workers easy so that your app is fast and reliable, even offline.

tulo.js Making service workers easy to use so that your app can be fast and reliable, even offline. Welcome to tulo.js, a service worker library that

Nov 16, 2022

Offline modification of Doodle Champion Island Games by Google

Doodle Champion Island Games This is an offline backup copy of the Doodle Champion Island Games by Google and Studio 4ยฐC. The game has been modified t

Dec 24, 2022

A daily print-and-play roguelike adventure you can play offline.

A daily print-and-play roguelike adventure you can play offline.

Chronicles of Stampadia A print-and-play roguelike with a new adventure every day! Play today's adventure | Read the manual | Learn how to play | Disc

Oct 15, 2022

Unsupervised machine learning with multivariate Gaussian mixture model which supports both offline data and real-time data stream.

Gaussian Mixture Model Unsupervised machine learning with multivariate Gaussian mixture model which supports both offline data and real-time data stre

Oct 7, 2022

F-Curator is an offline application that comes at you all day long and curates your own web favorites

F-Curator is an offline application that comes at you all day long and curates your own web favorites

F-Curator F-Curator is an offline application that comes at you all day long and curates your own web favorites. Based on Electron and React technolog

Dec 25, 2022
Releases(v0.3.0)
  • v0.3.0(Nov 6, 2022)

  • v0.2.0(Apr 18, 2022)

    • removed unecessary code 0395d55
    • rebuilt 058ce50
    • added support for geometries 9a8b208

    https://github.com/DanielJDufour/reproject-geojson/compare/v0.1.2...v0.2.0

    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Apr 16, 2022)

  • v0.1.1(Apr 16, 2022)

    • fixed main 1a9eed4
    • fixed bug passing too many args to reproject e460ce2
    • Update README.md dcdc6a0

    https://github.com/DanielJDufour/reproject-geojson/compare/v0.1.0...v0.1.1

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Feb 9, 2022)

    • added pluggable.js to published files ccc7c1d
    • added pluggable reproject-geojson d4ad723

    https://github.com/DanielJDufour/reproject-geojson/compare/v0.0.2...v0.1.0

    Source code(tar.gz)
    Source code(zip)
  • v0.0.2(Jan 31, 2022)

    • Update README.md 9fc5ed9
    • Update README.md 3f8cc5f
    • Update README.md 64aac7b

    https://github.com/DanielJDufour/reproject-geojson/compare/v0.0.1...v0.0.2

    Source code(tar.gz)
    Source code(zip)
  • v0.0.1(Jan 31, 2022)

    • Merge branch 'main' of github.com:DanielJDufour/reproject-geojson into main f97aca9
    • mvp 0273188
    • Update README.md d9e2ad9
    • Update README.md 698f451
    • Update README.md 3bde57e
    • Update README.md 06ae105
    • alpha a2276ed

    https://github.com/DanielJDufour/reproject-geojson/compare/7b246144cc607c45f614e6a8490d87a19ec14e10...v0.0.1

    Source code(tar.gz)
    Source code(zip)
Owner
Daniel J. Dufour
builds geotiff.io, geoblaze.io, georaster, georaster-layer-for-leaflet, date-extractor, geotiff-stats, and xml-utils; built code.gov, and maintains proj4js/mgrs
Daniel J. Dufour
Geokit - is a command-line interface (CLI) tool written in javascript, that contains all the basic functionalities for measurements, conversions and operations of geojson files.

Geokit Geokit is a command-line interface (CLI) tool written in javascript, that contains all the basic functionalities for measurements, conversions

Development Seed 31 Nov 17, 2022
Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files

Mapshaper Introduction Mapshaper is software for editing Shapefile, GeoJSON, TopoJSON, CSV and several other data formats, written in JavaScript. Maps

Matthew Bloch 3.2k Jan 2, 2023
Write or parse GeoJSON as YAML

geoyaml Write or parse GeoJSON as YAML. Like this: type: FeatureCollection features: - geometry: type: Point coordinates: - 37.9

Lou Huang 19 Dec 1, 2021
Dashboards-maps is a frontend plugin that helps you in uploading custom GeoJSON to OpenSearch and communicates with the geospatial backend plugin for the same.

Welcome! Project Resources Code of Conduct License Copyright Dashboards-Maps Dashboards-maps is a frontend plugin that helps you in uploading custom G

null 9 Dec 28, 2022
A memory-efficient GeoJSON representation.

memory-geojson (experimental ?? ) A memory-efficient GeoJSON representation. This is not a new format. It's not meant to be serialized, and it doesn't

Tom MacWright 19 Nov 29, 2022
modern parser & stringifier for WKT, EWKT, and GeoJSON

betterknown betterknown development is supported by ?? placemark.io I wrote wellknown, a WKT parser and stringifier, eons ago. It's still sort of popu

Placemark 32 Sep 3, 2022
Like codepen and jsbin but works offline.

Like codepen and jsbin but works offline.

EGOIST 1.1k Jan 2, 2023
Converts geojson to svg string given svg viewport size and maps extent.

geojson2svg Converts geojson to svg string given svg viewport size and maps extent. Check world map, SVG scaled map and color coded map examples to de

Gagan Bansal 163 Dec 17, 2022
Geokit - is a command-line interface (CLI) tool written in javascript, that contains all the basic functionalities for measurements, conversions and operations of geojson files.

Geokit Geokit is a command-line interface (CLI) tool written in javascript, that contains all the basic functionalities for measurements, conversions

Development Seed 31 Nov 17, 2022
Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files

Mapshaper Introduction Mapshaper is software for editing Shapefile, GeoJSON, TopoJSON, CSV and several other data formats, written in JavaScript. Maps

Matthew Bloch 3.2k Jan 2, 2023