Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gdalclip

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdalclip - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

package.json
{
"name": "gdalclip",
"version": "1.0.0",
"version": "1.0.1",
"description": "Clip geometries between two datasets while maintain the attributes from both",

@@ -13,8 +13,3 @@ "main": "src/index.js",

},
"keywords": [
"GIS",
"GDAL",
"geo",
"clip"
],
"keywords": ["GIS", "GDAL", "geo", "clip"],
"author": "Eduardo G. S. Pereira",

@@ -21,0 +16,0 @@ "license": "ISC",

@@ -48,11 +48,13 @@ const gdal = require('gdal');

const feature = new gdal.Feature(newLayer);
feature.setGeometry(clipFeature);
for (const column of layersColumns.datasetCut) {
feature.fields.set(column, cutFeature.fields.get(column));
if (!clipFeature.isEmpty()) {
const feature = new gdal.Feature(newLayer);
feature.setGeometry(clipFeature);
for (const column of layersColumns.datasetCut) {
feature.fields.set(column, cutFeature.fields.get(column));
}
for (const column of layersColumns.datasetBase) {
feature.fields.set(column, baseFeature.fields.get(column));
}
newLayer.features.add(feature);
}
for (const column of layersColumns.datasetBase) {
feature.fields.set(column, baseFeature.fields.get(column));
}
newLayer.features.add(feature);
});

@@ -59,0 +61,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc