Socket
Book a DemoInstallSign in
Socket

polyline-gp

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

polyline-gp

This module allows one to extract geojson & kml from a csv file grouped with polyline data.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

polyline-group-parser

This module allows one to extract geojson & kml from a csv file grouped with polyline data.

Installation

Requires node.js v6.2.1

npm install polyline-gp -g

Usage:

$ polyline-gp --input /file/to.csv --output /file/to/output/folder --group "Group column" --polyline "Polyline column"

Lets say you have a CSV like this located at ./my.csv:

GroupPolylineData
Yonge-Dundas-Square_omiG``ocNw@gFw@Jc@~BRlCMain
City-Hallw_miGbdocN~DmAx@lG}DhAOld City Hall
City-HallicmiGpzocN{@wGtF_BEjHToronto City Hall

You can run the command:

$ polyline-gp -i ./my.csv -o ./some/path

This would create an output folder in ./some/path with the formed geojson/kml files inside. Any extra columns would be added as properties to the GIS file.

output
  |
  L - City-Hall
  |      |
  |      L - City-Hall.geojson
  |      L - City-Hall.kml
  |
  L - Yonge-Dundas-Square
         |
         L - Yonge-Dundas-Square.geojson
         L - Yonge-Dundas-Square.kml

You can change the column names that polyline-gp looks for with the --group and --polyline arguments

Arguments

ArgumentShorthandDescription
--input-i[Required] The file location of the csv to parse
--output-oThe folder that you want your output to go (Default: "./")
--group-gThe column to group the csv file by (Default: "Group")
--polyline-pThe column that the polyline exists in (Default: "Polyline")

Keywords

polyline

FAQs

Package last updated on 08 Aug 2016

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