Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

RunKit + npm: jsts

node v11.15.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