In the 1-day Workshop you will build the VM to run a simplified version of a 2D Map Viewer webapplication to explore.
In the 10-day Course you will build the full GeoStack VM to run 3 webapplications: a Dataset Dashboard, a 2D Map Viewer with the OpenLayers geospatial web application framework and a 3D Map Viewer with the Cesium framework.
The datasets used in the course are GPS track logs that are publicly available as Open Content. Two kinds of file formats are used: CSV files with GPS track logs from GPS trackers on the legs of ringed common cranes (Grus grus) from the animal tracking website Movebank.org and GPX files with track logs from a GPS navigation device from travelling routes in The Netherlands donated by a GitHub user as Open Content.
So, now Go, Enjoy and… Learn things!
The repositories with software and content will be published here somewhere between July 25 and August 1, 2020.
Tip: visit our YouTube channel for lots of additional tutorial videos and use the playlists to view them.
Read this project’s home page first!
Follow the advice in the section ‘Skill Levels’ below to check and get the required skill levels for this course.
Follow the steps in the section ‘Getting Started’ below to get the course on your pc or laptop.
Do the 1-day GeoStack Workshop to explore the world of Open Source Geospatial Programming by building the Workshop Virtual Machine using the installation scripts and then by working through the programming assignments to build the simplified 2D Map Viewer webapplication.
Explore the overview videos and tutorial clips on the YouTube channel for the different parts of the full course.
Do the full 10-day GeoStack Course by first building the Course VM the easy way with installation scripts to explore and then building the Course VM the manual way and get the 3 webapplications up and running.
Finally experiment with loading your own datasets and extra digital topographical maps from OpenStreetMap and of course by modifying and extending the webapplications to learn how to build your own dataset visualizations.
The learning goals of this course are to create and run a free and light-weight Open Source Geospatial Software Stack, the GeoStack for short, in a Virtual Machine (VM) with Ubuntu Linux on a stand-alone pc or laptop and to program webapplications to visualize geospatial datasets on locally hosted topographical digital maps from OpenStreetMap and OpenSeaMap.
So this course is about downloading some manuals, software and data sets from the internet, adjust it so it can run on the pc in ‘airplaine mode’ without an internet connection and then learn how to install and configure the GeoStack and program Geospatial Web Applications by using 100% Open Source Software, Open Standards and Open Content!
There are 3 learning goals:
End goal: Programming Webapplications in TypeScript
Intermediate goal: Programming Middleware in Python
a Dataset Dashboard to visualize datasets of GPS track logs that are stored as JSON documents in MongoDB;
a 2D Map Viewer with OpenLayers to visualize the datasets on 2D digital topographical maps from OpenStreetMap (OSM);
a 3D Map Viewer with Cesium to visualize the datasets on 3D maps with Digital Elevation Models (DEM height files).
The intermediate goal is to learn how to build three web services with an API for the web applications to use.
Two web services are required to get access to the 2D and 3D digital topographical maps through the API’s of their respective map tile servers as the geospatial web map servers (WMS) to serve tiled web maps to the web browser.
The third web service is provided by programming a micro web service application with the Python Flask framework to get access to the datasets in the MongoDB datastore.
It is in this Python ‘back end’ web application where the magic happens to program the ‘payload’ or ‘business logic’ for data selection and processing that needs to match the functionality in the TypeScript ‘front end’ web application to visualize the required geospatial data.
Isolating the data processing in a (Flask) web application behind a web service API from that Flask web application uncouples the data processing from the visualization in the front end web applications, making it easy to replace or update either application seperately.
The starting goal is to learn about the approximately 50 software components required in the Client / Server software architecture you will need to download, install, configure, program and run to be able to use the end-user web applications in your web browser.
You will learn about virtualisation to run the course software and data on Ubuntu Linux in a Virtual Machine (VM) completely isolated from your host operating system. In the full course you will also learn how to isolate software components in the VM by using Docker and its Containers and Volumes.
So yes, the GeoStack Installation and Web Application Programming is done on Linux as the guest operating system in the VM. A great opportunity for Linux newbies to explore Ubuntu Linux step-by-step from the Gnome Desktop and the Linux Command Line.
Learn along the way about the architecture and how virtualization helps to update components independently and in sharing your VMs, containers and volumes with other data scientists and software developers.
In order to achieve these learning goals the activities are of course in the reverse order of the learning goals:
Building an Ubuntu Linux Virtual Machine: first you will learn to download all the required datasets and software packages to be stored and installed on your pc or laptop in a Virtual Machine running Ubuntu Linux in VirtualBox.
Data Storage: then you will learn to store the digital topographical maps in the relational spatial database PostgreSQL + spatial PostGIS extension and convert the GPS track log datasets from CSV and GPX files to the JSON dataformat to store the data as JSON documents in the MongoDB datastore.
Programming: finally you will learn how to program in Python and TypeScript in the Atom programming editor and run the web services and web applications locally in your web browser, without the further need for an internet connection (running in ‘airplane mode’).
Depending on your level of expertise you may need to double or triple these time estimates or you might need even more time because there is also a lot of documentation to read, so your mileage may vary!
Don’t worry if it takes you a little longer because you will get there with the user friendly installation and programming manuals with lot’s of screenshots and the Python source code files in Jupyter Notebooks and example scripts in Python and TypeScript with lot’s of inline comments!
If you are on the other hand a real beginner in programming, you might want to invest some extra well spent study time first as a newbie to get to the required skill levels to follow this course as per the advice below in the section ‘Skill levels’!
1 - Basic skills in Python programming are a must!
Advice: take 5 to 10 days to study the great beginner course ‘Python for Everybody’ by Charles Severance (dr. Chuck).
It’s all Open Content and free to re-use and… also aimed at data scientists with it’s focus on data processing!
Advice: take 5 days to study some beginner tutorials to get a feel for the source code examples used in this course.
3 - Some knowledge of Virtual Box, Ubuntu Linux, MongoDB, Docker, OpenLayers and Cesium comes in handy of course!
Advice: take 1 or 2 days to read up on these topics on their wikipages on Wikipedia and on their project websites.
The course manuals en example source code files will guide you to get the software up and running!
To get fast situational awareness there is a 1-day GeoStack Workshop to build the Workshop VM with installation scripts which is documented in both a manual and in a series of presentation files to carefully read to get step-by-step to a working GeoStack and basic end-user webapplication.
The 1-day Workshop focusses on building a Client / Server infrastructure in a VM to get familiar with the server side software architecture of the entire software stack.
To learn all the details after the workshop there is the 10-day GeoStack Course which will take you through all the details to build the Course VM with the full GeoStack and the fully functional end-user webapplications.
About the 1-day GeoStack Workshop
To learn most of the components of the Development Environment, which is described below, to install the required server software for the GeoStack and to program a webapplication this workshop will take you through the whole process to get
familiar with the server and client software architecture for geospatial programming.
The steps will include installing a spatial database, importing topographic maps from OpenStreetMap, install MongoDB as a datastore for JSON documents with geospatial data, prepare and import geospatial datasets in MongoDB, install a Python webserver with a middleware Flask webapplication for data handling, install a NGINX webserver and finally program an end-user webapplication to visualize the dataset on a digital topographical map.
If you are not yet familiar with the components of the Development Environment then just take a day extra to read a little more.
If you’re in a hurry (not recommended!) or just curious then simply run the installation scripts to get to a working GeoStack and webapplication more quickly.
Building the Workshop VM is documented in the cookbook ‘Creating the GeoStack Workshop VM’.
The cookbook ‘Workshop Assignments’ introduces the programming assignments with lots of background information for beginners!
The programming assignments themselves are of course in the Jupyter Notebooks, source code files and configuration files.
About the 10-day GeoStack Course
In the GeoStack Course there are many manuals, cookbooks, installation scripts and programming examples in Python to learn the details of installing, configuring, using and programming all components in the entire GeoStack.
This will take a serious time investment of 10 - 20 or even 30 days of study time to read and experiment with the software and datasets but after that you will have build a GeoStack VM from scratch and you know how geospatial web applications work!
You will also learn to use Docker Containers to run applications and Docker Volumes to host data.
For topographical sea maps you will learn how to add the OpenSeaMap data of nautical objects to your spatial database PostgreSQL/PostGIS and visualise these objects with OpenLayers in a data layer overlay to create a digital nautical map.
At the end of the course you will have 3 working end-user web applications that run in your web browser to visualize geospatial datasets as basic programming examples for future programming projects and knowledge building:
a Dataset Dashboard with graphs plotted with ChartJS to visualize information on the datasets stored in MongoDB;
a 2D map viewer web application with OpenLayers to plot geospatial data on OpenStreetMap and OpenSeaMap maps;
a 3D map viewer web application with Cesium to plot data in a 3D map projection with the map showing a terrain elevation model to get a nice visualization when plotting datapoints with a height coordinate. So it’s all about plotting (x,y,z) coordinates instead of just (x,y) location positions.
Building the Course VM is documented in the cookbook ‘Creating the GeoStack Course VM’.
The full GeoStack Course is documented in the following set of detailed Cookbooks and Programming manuals:
The Development Environment in this course will learn you about the following subjects:
1) Virtual Machine hosting: Virtualbox (Installation and Use).
2) The Linux Operating System: Ubuntu LTS (Long-Term Support version).
installation scripts are programmed as bash shell scripts;
there is also a small script written in Java used to create the links for the topographical map tiles between the nautical objects on them from OpenSeaMap and the nautical map icons to generate the map tiles for all the map zoom levels to store in the cache folders of the tile server.
deleting data(sets) with the database managment tool MongoDB Compass to clean up the MongoDB JSON document datastore.
11) Storing datasets in a SQL datastore: learn to use the RDBMS PostgreSQL in combination with the spatial PostGIS extensions for storing RAW OpenStreetMap data and storing geospatial data from ShapeFiles:
loading RAW OSM data in a database using OSM2PGSQL;
13) Creating a middleware web service with an API using the Python micro web services framework Flask and a Gunicorn webserver:
programming the middleware web application app.py in Flask to run the ‘business logic’ of data handling as a (micro) web service that is necessary to fetch data and pre-process it so the end-user web application can get the data to visualize from the API and plot it on topographical maps. This is where the magic happens!
connecting to the MongoDB datastores using PyMongo;
connecting to the PostgreSQL datastores using PsycoPG2;
executing queries on the datastores using among other things geospatial queries in combination with PyMongo and PsycoPG2;
transforming and serving the queried data, obtained from the datastores, to the front end (= end-user) web application.
This is provided to learn how to install the mod_security module and the basic OWASP security ruleset to secure all the GeoStack components running behind the NGINX web server by letting the mod_security module run the security checks.
SECURITY WARNING: do NOT run this configuration for production or other purposes when connected to the internet or any other untrusted network because this course shows just an educational setup with the basic OWASP ruleset!
It has not been checked if the configuration or ruleset is fit-for-use!!!
It’s just a basic installation guide and adding your own security rules is not explained!
YOU HAVE BEEN WARNED!!!
a 2D Map Viewer using the geospatial framework OpenLayers in which you can select multiple routes, animate routes, change map layer styles and much more;
a 3D Map Viewer using the geospatial framework Cesium in which you can visualize the datasets on 3D maps.
Go to the top of the web page and click the blue button ‘Download Manuals’.
Save the ZIP file that contains the repository GeoStack-Manuals.
Unzip the ZIP file which will give you the folder GeoStack-Manuals.
In the folder you will find 2 PDF files: Creating-the-Workshop-VM.pdf and Creating-the-Course-VM.pdf.
Start with the 1-day GeoStack Workshop by following the document Creating-the-GeoStack-Workshop-VM.pdf.
Here you will learn if you need to build some extra skills first.
After building the VM start the file manager Nautilus by clicking the file cabinet icon on the left in the Favorites menu.
Then in the Home folder of the GeoStack account on the VM, go to the folder GeoStack-Workshop.
Follow the programming assignments in the file Cookbook-Workshop-Assignments.pdf.
Work through the full 10-day GeoStack Course by following the document Creating-the-GeoStack-Course-VM.pdf.
There are two ways of building the Course VM:
1 - Automatic installation by using the supplied set of installation scripts.
2 - Manual installation by working your way through the large set of 8 detailed course cookbooks and manuals.
Advice: first build the Course VM the easy way with the installation scripts to explore and then do it the hard way by really learning some serious Systems & Network Management in building the GeoStack and programming the web applications!
Note: in the manuals on how to create the VM’s you will find detailed instructions about:
cloning the git repositories GeoStack-Workshop and GeoStack-Course;
the download instructions for the GPS track log datasets;
the instructions to export, download and import the map and terrain elevation datasets required for visualizing digital topographical maps in OpenLayers and Cesium.
Lowering the Learning Curve
1) First of all: read the weblinks on this web page! They paint the picture! Then read the cookbooks, manuals etc.
There is a lot of documentation to explain what, why and how things work. Don’t be smart, read it first!
It will be reading time well spent! There is no ‘black magic’ left, once explained!
2) Second: study the installation scripts and example scripts!
There are also many installation-, import-, export- and conversion scripts to work fast and install and run without errors but also to help in learning how things actually work!
3) Third: remember in programming ‘a point is not a comma’!
Typos are easy to make, but finding them to correct can be really hard!
So first read carefully until you understand and only then grab your keyboard!
When coding: type slow and read your code back!
4) Finally: make copies of files before you change them!!!
If you want to experiment with building the VMs for the Workshop or the Course
then make a copy of the configuration files and the installation scripts and
document your changes with in-line comments to keep track of what you did!
Save new file versions in your Programming Editor before running them!
Keep the original files alongside to look at as the working examples!
So do not use the original files as you might end up with a broken VM.
Also do not make command line changes because they are by their nature
undocumented changes or you might end up with a broken VM.
The same goes for changes you want to make to code in Jupyter Notebooks or in
–> Make it a habit to use a file copy and you’ll be safe and save yourself a lot of time!
1) Educational goal: the software and content of this project are only intended to learn about programming geospatial dataset processing in Python and programming webapplications in TypeScript for the visualization of this geospatial data on digital topographical maps.
2) Software selection: this course focuses on creating an Open Source geospatial software stack, the GeoStack, to
develop and run webapplications for visualization of geospatial datasets. There are more Open Source Software products that can provide the same functionality as the products chosen in this course.
3) Complexity reduction: some well known software products are left out of scope in order not to complicate things more than necessary for an already fairly complex beginner course, like:
QGIS: a great Open Source geospatial desktop application! Recommended for geospatial enthousiasts after taking this course! Also very useful in exploring geospatial datasets. Left out because it takes a course in itself to learn QGIS.
Leaflet + Python Folium: Leaflet is a comparable geospatial webapplication framework to OpenLayers for generating 2D topographical map views and Folium is the Python wrapper module for it. Once you have learned OpenLayers in this course you have a good reference to explore Leaflet/Folium in order to find out what works best for your use cases.
cesiumpy: a Python wrapper module for Cesium, comparable to Folium for Leaflet. Left out because it is fairly new and still a concept version (currently 0.3). Therefore the 3D Map Viewer webapplication is programmed in TypeScript with the Cesium API.
Marble: as an Open Source Virtual Globe or World Atlas application for desktop and mobile very interesting to get some programming experience with because it also uses OpenStreetMap. Build some knowledge first with Cesium for 3D maps and then it’s time for Marble or programming with another virtual globe application like Google Earth.
Git: for version management of source code. Highly recommended for larger sofware projects and when working in development teams! The Open Source webapplication GitLab can be used to run your own Version Control System webserver locally.
This programming course was originally created by computer science student Pieter Lems of the Rotterdam University of Applied Science (Hogeschool Rotterdam) as the result of his 3rd year Bachelor internship assignment (201909-202001) in practical programming for data scientists.
The internship was offered by the ICT innovation department of the Netherlands Ministry of Defense (MoD-NL/DMO/JIVC/KIXS).
Read the interview in Dutch about Pieter’s internship project here.
After his internship Pieter continued to contribute to this project as a volunteer software developer.
The motivation to create this course is to collect and combine all the very much fragmented information from many manuals, (video)tutorials, applications, programming languages and frameworks, file formats etc. into one documentation set for beginners in data science, programming and systems managment to learn to download, install, program and use all the software components and datasets in one logical workflow to get:
-----> 'Working Software at the End of the Day!' <-----
Licenses and Copyrights
This project is published by the MoD-NL as an Open Source Software educational project with Open Content for easy re-use.
You are responsible for your use of the software and content of The GeoStack Project and any datasets, software and online services from third parties used in The GeoStack Project.
If you harm someone else or get into a dispute with someone else, both we and the contributors of this project will not be involved.
You understand and agree that you will indemnify, defend and hold both us and the contributers of this project harmless from and against any and all claims, liabilities, and expenses, including attorneys’ fees, arising out of your use of the software and content.
Some legal points of special interest, in short terms:
1) The software and content of The GeoStack Project is provided ”as is,” and ”as available”.
Both we and the contributors of this project make no promises or guaranties that the software and content will be available, useable, error-free, meet your requirements, that any defects will be corrected and that the software and content will be maintained.
2) You agree that your use of The GeoStack Project software and content is your own responsibility and any use is at your own risk.
You decide if the software and content is suitable for your use, but be aware that nor we nor the contributers of this project are in no way responsible or liable for damages or losses arising from your use or inability to use the software or content of The GeoStack Project.
3) Any other application or use of the software and content other than for educational purposes is not intended and not advised!
Please take special notice of the GitHub Terms of Service for contributions under the repository licenses, including contributions made to The GeoStack Project software and content in any of its repositories.
In short terms: when you make a contribution to a repository of The GeoStack Project, you agree that the software and content licenses of The GeoStack Project (EUPL Version 1.2 and CC BY Version 4.0) will be applicable to your contributions as well.
If you contribute software or content to The GeoStack Project in other ways than by means of GitHub, you also agree that the same software and content licenses (EUPL Version 1.2 and CC BY Version 4.0) will be applicable to your contributions as well.
For the project we use two resources: this GitHub account and a Google account.
GitHub account - the home of the project
Click the blue buttons at the top of this webpage to view the project’s public repositories and check the Issue Tracker, the Wiki pages or the latest News.
Overview GitHub Repositories - The project has 5 repositories and for two repositories there is a convenient blue download button at the top of this webpage.
1) GeoStack-Manuals: the blue download button offers a ZIP file download of the GeoStack-Manuals repository with the two manuals to start building the Virtual Machines for the Workshop and the Course.
2) GeoStack-Project-Files: the blue download button offers a ZIP file download of the GeoStack-Project-Files repository with the text editor source documents, document images, document cover design and project logo for all the PDF files of the workshop and course. Just to save you a lot of time in case you want to re-use content!
Use the Issue Tracker to post a Ticket if you have a question for the project team, to report a bug or make a Project Enhancement Proposal (PEP).
Please use the proper labels to tag the ticket for your issue accordingly!
Currently we are only accepting tickets in the Issue Tracker but with no promises to response times or realisation.
Support is very limited, because this project is currently not an active open source project.
Expect at least several days of delay or more for a ticket response! Handling tickets is not a priority! Maybe we look once a week! ;)
Currently we are not accepting pull requests from GitHub users other than the current team members.
New Team Members
The project is currently published as-is with a project team of only a few volunteers for very, very low maintenance without making any promises.
New team members are needed to make this project an active Open Source project because, with around 50 software and content components that will be updated over time, the project is expected to have a limited shelf life of around 12 months and without maintenance the project will need to be archived then.
If volunteers are willing to participate in project maintenance and creating new course materials this project could become an active Open Source project.
Currently the project has not yet a way to welcome new volunteers but the information for that will be published here.