Topolis example #6173

Merged
merged 1 commit into from Dec 6, 2016

Projects

None yet

2 participants

@bjornharrtell
Contributor
bjornharrtell commented Nov 26, 2016 edited

I've made a library for topology management, which is a dear old subject of mine. The library is called topolis and implements the same API as in PostGIS aka. ISO/IEC 13249-3 (SQL/MM). It's an early version and some work remains but the basic operations are in place.

This PR demonstrates the use of topolis integrated with OpenLayers to allow drawing and removal of edges, splitting existing edges and faces as required. Automatically created nodes and faces are visualized with sequential ids.

Screencast of the example in action:
topolis

The example is published here:
http://bjornharrtell.github.io/ol3/build/hosted/topolis-example/examples/topolis.html

And finally the GitHub project page for topolis:
https://github.com/bjornharrtell/topolis

@bjornharrtell bjornharrtell Topolis example
7ad519f
@tschaub tschaub merged commit f898a3b into openlayers:master Dec 6, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 86.588%
Details
@tschaub
Member
tschaub commented Dec 6, 2016

This is awesome @bjornharrtell. I hope to find an excuse to dig into topolis at some point soon.

Minor issue, but I notice that if you end up with an error (a self-intersecting curve), you are left with orphaned nodes.

@bjornharrtell
Contributor

Thanks @tschaub. As you noticed there are some issues, both in the example and in topolis, so I also hope I will find an opportunity to put more time into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment