Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Clip one featurecollection by another.
turf.clip(clipping_geojson, input_geojson)
Takes a clipping_geojson to clip the input_geojson.
parameter | type | description |
---|---|---|
clipping_geojson | FeatureCollection | Clip FeatureCollection |
input_geojson | FeatureCollection | FeatureCollection to be clipped |
var clipping_geojson={
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
110.85205078124999,
31.74685416292141
],
[
110.85205078124999,
35.04798673426734
],
[
117.44384765625,
35.04798673426734
],
[
117.44384765625,
31.74685416292141
],
[
110.85205078124999,
31.74685416292141
]
]
]
}
}]
};
var input_geojson={
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
113.367919921875,
35.36217605914681
],
[
111.97265625,
30.694611546632277
],
[
116.12548828124999,
30.93050081760779
],
[
114.93896484374999,
35.69299463209881
],
[
113.367919921875,
35.36217605914681
]
]
]
}
}
]
};
var result = turf.clip(clipping_geojson, input_geojson);
//=result
Returns FeatureCollection
,
Requires nodejs.
$ npm install turf-clip
$ npm run test
FAQs
Clip one featurecollection by another.
The npm package turf-clip receives a total of 138 weekly downloads. As such, turf-clip popularity was classified as not popular.
We found that turf-clip 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.