Open-source map-based AHN elevation visualization sample app

VIKTOR

by VIKTOR

geotechnics sample app ground level profile
Get open-source Python code to automatically generate ground level profiles to perform geotechnical calculations and create 3D models with your own apps. With this sample application, you can easily retrieve ground level data from the AHN as input information for their projects. Additionally, you can also integrate the open-source data from the sample app in your own application.
How to create successful application that ensure adoption
Build successful applications

Learn the process to build apps that provide real value to your work and that other people will definitely want to use as well.

Using the code

There are two ways in which this functionality can be used:

  1. With VIKTOR, out-of-the-box, using our free version.
  2. Without VIKTOR, in that case you create the following yourself: Parametrization of geo-location, map view interface, and output visualization.

Here, you see a snippet of the application code. With the following seven lines of Python code you can create map views (return MapResult(features)) and enable users to put lines on the map (params.geo_polyline). Get the full application code from our GitHub repository.

1@MapView('Map', duration_guess=1) 2def get_map_view(self, params: Munch, **kwargs: dict) -> MapResult: 3 """Set the map view on which the line can be drawn for which the AHN values are wished to be known""" 4 features = [] 5 if params.geo_polyline: 6 features.append(MapPolyline.from_geo_polyline(params.geo_polyline)) 7return MapResult(features)

The video shows the functionality being used in a VIKTOR application.


Apply for a demo account to get access to this and all other VIKTOR sample applications.


More information about the demo environment and an overview of all sample applications be found here.


Ground level profiles in 3 steps

As you can see in the video, the process of creating ground level profiles with the sample application consists of three easy steps:

  1. Drawing a polyline on a map (using a GeoPolylineField)
  2. Filling in the required resolution of the resulting profile
  3. Showing the elevation profile based on AHN3 in a Matplotlib plot

Use the free version or go to the demo environment to try it yourself!

illustration of free trial

Start building apps now

Try for free
Share

Related Blog Posts

Hackathon stimulates knowledge development

Read more
automate chemical engineering web application

Molecule visualization and initial value problems sample apps

Read more
Automatic machine learning sample app

Sample app automatic machine learning

Read more