Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
geojson-polygon-self-intersections
Advanced tools
A very simple script to compute all self-intersections in a GeoJSON polygon.
A very simple script to compute all self-intersections in a GeoJSON polygon.
According to the Simple Features standard, polygons may not self-intersect. GeoJSON, however, doesn't care about this. You can use this tool to check for self-intersections, list them or use them in some way.
Get Node.js, then
npm install geojson-polygon-self-intersections
and use it like so:
var gpsi = require('geojson-polygon-self-intersections');
// poly = ...
var isects = gpsi(poly);
// isects
Where poly
is a GeoJSON Polygon, and isects
is a GeoJSON MultiPoint.
Alternatively, you can use a filter function to specify the output. You have access to the following data per point:
isect
ring0
edge0
start0
end0
frac0
ring1
, edge1
, start1
, end1
, frac1
unique
FAQs
A very simple script to compute all self-intersections in a GeoJSON polygon.
The npm package geojson-polygon-self-intersections receives a total of 111,576 weekly downloads. As such, geojson-polygon-self-intersections popularity was classified as popular.
We found that geojson-polygon-self-intersections 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.