turf-multilinestring
v1.0.2
Published
turf multilinestring module
Downloads
223
Maintainers
Readme
turf-multilinestring
turf multilinestring module
turf.multilinestring(coordinates, properties)
Creates a Feature based on a coordinate array. Properties can be added optionally.
Parameters
| parameter | type | description |
| ------------- | ---------------------------- | ------------------------------------------------------------- |
| coordinates
| Array.<Array.<Number>> | an array of Positions |
| properties
| Object | optional: an Object of key-value pairs to add as properties |
Example
var multiLine = turf.multilinestring([[0,0],[10,10]]);
//=multiLine
Returns Feature.<MultiLineString>
, a MultiLineString feature
Installation
Requires nodejs.
$ npm install turf-multilinestring
Tests
$ npm test