CAD-like Feature Construction with the OpenLayers Editor

On many occasions one needs to align new features to existing features in cadastral mapping applications. One example would be that the user is tracing a building from an orthophoto and wants to align the building with existing geometries. This is an error prone task in web GIS because they don't offer snapping features that are known from CAD software.

We did now extend OpenLayers Editor's capabilities by supporting guide lines including snapping on a recent hack day. Therefore a visual guide line is presented to the user running parallel to existing features on the map. By moving the mouse nearby, the user can trigger snapping and draw adjacent features precisely in parallel to others. The guide follows the user's sketch as vertices are added and provides assistance right where it is needed without cluttering the editor too much.

Adding vertices in parallel in an OpenLayers based web GIS

Following the angles of an existing feature

In addition it is often required to draw right angles. The guide based system does also offer support here by drawing guide lines orthogonal to the last drawn line segment. Thus the user can easily snap new vertices in the right angle to the last segment or choose to draw in another angle. Drawing in arbitrary angles triggers new guide lines to continue drawing in right angles whenever desired.

Drawing right angled features in an OpenLayers based web GIS to get orthogonal features

Placing a vertex using guides to archive perfect right angles

Technically, the system which drives the guide lines and guide points is flexible enough to use parallel drawing and orthogonal drawing at the same time. Therefore orthogonal features can be drawn that align with existing features. There are two demos available that allwo to test the new functionality, one which uses local storage for all features drawn and another one with MapFish and PostGIS backend.

The guided drawing can be extended on request to support individual needs such as snapping to WFS services or drawing line segments with pre-defined lengths. We are always looking for a challenge to push the limits for web GIS and business process integration even further.

6/6/2012
More on this topic
3 min reading time › | Blog

performance.now()

Zwei Frontend-Entwickler von geOps machten sich nach Amsterdam auf, um an der performance.now() teilzunehmen, einer zweitägigen Konferenz mit vierzehn erstklassigen Sessions, die die wichtigsten Erkenntnisse zur Web-Performance von heute behandeln.

read more
6 min reading time › | Blog

Export and print web maps as PDF

For some time now, some of our apps have offered the export of our maps in PDF format. This article presents our solutions for some updates of this feature.

read more
9 min reading time › | Blog

Snapping stops to vehicle trajectories

How to snap points to a line string in a given order and what it has to do with quality assurance when importing public transport schedules.

read more
7 min reading time › | Blog

Using Redis Subscriptions efficiently in Python

Inspired by the websockets broadcast feature we built a subscription multiplexer for redis subscriptions to subscribe to Redis channels and patterns once for all relevant clients.

read more
2 min reading time › | Solution

Transit Network Plans

Transit network plans give an easily grasped overview of the public transport offer. Our transit network plans are generated automatically from timetable data or similar source.

read more
2 min reading time › | Blog

From backend to frontend: we are looking for reinforcement

We have two vacancies for Fullstack or Backend Developers for our offices in Freiburg and Olten. If you want to bring your passion to a strong team, then you should apply.

read more

Contact

geOps AG
Solothurnerstrasse 235
CH-4600 Olten

fon: +41 61 588 05 05
mail: info@geops.ch
geOps GmbH
Bismarckallee 10
D-79098 Freiburg im Breisgau

fon: +49 761 458 925 0
mail: info@geops.de
Imprint | Privacy | Terms of service