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

gdalmultitosingle

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdalmultitosingle

Transform multi part geometries to single part geometries.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gdalMultiToSingle

Transform multi-part geometries to single part geometries.

Dependencies

  • gdal
  • uuid

Setup

npm install gdalmultitosingle

Usage

const gdalMultiToSingle = require('gdalmultitosingle')

const outputPath = gdalMultiToSingle.processData(<inputFeatures>, <outputName>, <outputFormat>);
// Returns the output filepath.

Sample Usage

const gdalMultiToSingle = require('gdalmultitosingle');
const gdal = require('gdal');

const getFeatures = dataset => gdal.open(dataset).layers.get(0);

const inputLayer = getFeatures('path/to/inputData.geojson');

const singleParts = gdalMultiToSingle.processData(inputLayer, 'path/to/outputData.shp', 'ESRI Shapefile');

Allowed Outputs

Tested with the most common outputs that are listed on gdal. Message me on GitHub if you need some help or find some bug.

You can also use vsimem to save the data temporary on the memory. So the command would be something like:

const singleParts = gdalMultiToSingle.processData(inputLayer, '/vsimem/temp_output.shp', 'ESRI Shapefile')

=^]

Keywords

FAQs

Package last updated on 05 Mar 2018

Did you know?

Socket

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.

Install

Related posts

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