RunKit + npm: jsts

node v11.14.0
version: 1.0.0
endpointsharetweet
var jsts = require("jsts") const reader = new jsts.io.WKTReader(); const ls1 = reader.read('LINESTRING(0 0, 1 1)'); const ls2 = reader.read('LINESTRING(1 1, 2 2)'); const lineMerger = new jsts.operation.linemerge.LineMerger(); lineMerger.add(ls1); lineMerger.add(ls2); console.log(lineMerger.getMergedLineStrings().toArray());
Created from: https://npm.runkit.com/jsts
Loading…

no comments

    sign in to comment