Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@turf/polygon-to-linestring
Advanced tools
Converts a Polygon or MultiPolygon to a FeatureCollection of LineString or MultiLineString.
Parameters
polygon
Feature<(Polygon | MultiPolygon)> Feature to convertExamples
var poly = {
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'Polygon',
'coordinates': [[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]
}
}
var lines = turf.polygonToLineString(poly);
//addToMap
var addToMap = [lines]
Returns FeatureCollection<(LineString | MultiLinestring)> converted Feature to Lines
This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.
Install this module individually:
$ npm install @turf/polygon-to-linestring
Or install the Turf module that includes it as a function:
$ npm install @turf/turf
FAQs
turf polygon-to-linestring module
We found that @turf/polygon-to-linestring demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.