8000 GitHub - turf-junkyard/turf-combine: Combines a FeatureCollection of point, linestring, or polygon Features into multipoint, multilinestring, or multipolygon Features.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Combines a FeatureCollection of point, linestring, or polygon Features into multipoint, multilinestring, or multipolygon Features.

License

Notifications You must be signed in to change notification settings

turf-junkyard/turf-combine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turf-combine

build status

turf combine module

turf.combine(fc)

Combines a FeatureCollection of Point, LineString, or Polygon features into MultiPoint, MultiLineString, or MultiPolygon features.

Parameters

parameter type description
fc FeatureCollection.<Point LineString

Example

var fc = {
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Point",
        "coordinates": [19.026432, 47.49134]
      }
    }, {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Point",
        "coordinates": [19.074497, 47.509548]
      }
    }
  ]
};

var combined = turf.combine(fc);

//=combined

Returns FeatureCollection.<MultiPoint|MultiLineString|MultiPolygon>, a FeatureCollection of corresponding type to input

Installation

Requires nodejs.

$ npm install turf-combine

Tests

$ npm test

About

Combines a FeatureCollection of point, linestring, or polygon Features into multipoint, multilinestring, or multipolygon Features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0