Question

I need to do some geographic topology teting (intersection, contains, etc.) for a project I'm working on. I would like to use a Node.js server and keep the data in a JSON-esque format as much as possible, meaning I would like to use a topology library that is written in JavaScript. I've found one, JSTS, but it relies on OpenLayers and I only has one project using it at the moment. Does anyone have any experience with this library or any other topology libraries? Also, if this is a terrible idea please let me know and I'll move to a Java server with the JTS topology suite.

Was it helpful?

Solution

Have you tried the open source javascript library GeoScript - it has basic geometric functions like intersection and union - see link below.

http://geoscript.org/examples/geom/index.html#examples-geom

NOTE : does not seem to include a contains function, and also seems to operate on the WellKnownText data representation, not JSON.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top