문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top