
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Find a projection for easy cartesian calculations, given a GeoJSON in WGS84.
Problem: you have geographic data in WGS84 of limited extent, but arbitrary location, and you need to work with the data in a cartesian system (use euclidean distance, etc.)
Solution: feed your data to local-proj, and it will hand you a suitable projection
independent of geographic location
npm install --save local-proj
var localProj = require('local-proj');
var geojson = [...]
var projection = localProj.find(geojson);
var cartesian = projection.forward(geojsoncoord);
To reproject your GeoJSON to the projection, you might want to look at reproject.
Finds a local projection that is suitable for projecting the geojson to cartesian
coordinates.
The returned projection is a proj4 projection object (proj4.Proj), which
you can use to create transforms to and from other projections.
Note that the local coordinate system will only work as expected for datasets up to a couple of hundred kilometers in size.
Currently, the returned projection will always be a transverse mercator projection.
FAQs
Find a local projection from GeoJSON data
The npm package local-proj receives a total of 6 weekly downloads. As such, local-proj popularity was classified as not popular.
We found that local-proj demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.