Topolis example #6173

merged 1 commit into from Dec 6, 2016


None yet

2 participants

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:

The example is published here:

And finally the GitHub project page for topolis:

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

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
coverage/coveralls Coverage remained the same at 86.588%
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.


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