Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function toCoordinate (c) {
return new Coordinate(c[0], c[1])
}
function toPoint (c) {
return factory.createPoint(new Coordinate(c[0], c[1]))
}
return factory.createLineString(coordinates.map(c => new Coordinate(c[0], c[1])))
}