Send your local geodata to the Swiss federal geoportal.
This is a proof-of-concept web application which takes your local geodata files and shows it in the geoportal of the Swiss federal government. It is far from complete and should only make one point: You don't need a desktop GIS to view your geodata on your harddrive/SSD.
The implementation takes advantage of Azure's cloud services.
A running version is live at http://send2geoadmin.azurewebsites.net. Please use responsibly.
Currently:
- KMZ
- GeoJSON
Steps to run this app locally:
-
Create or re-use one of your blob storage container on Azure
-
Create a file
blobstorage_access_key.txt
with the access key for your blob storage container. -
Run
make local
or explicitly:export APPSETTING_storage_access_key=`cat blobstorage_access_key.txt`; export PYTHONPATH=env/Scripts/; python myapp.py
This application is running on an Azure website. Here are some rough steps to recreate it on your own:
- Go to your management portal at https://manage.windowsazure.com/ and create a new website (or use the Node.js command line tools) and possibly a blob storage.
- Define an app setting called
storage_access_key
for the BlobStorage where you want to temporarily store the uploaded files, see also this blog post on application strings. - Copy the code into your repository.
- Put the Python SDK for Azure in the directory, https://github.com/WindowsAzure/azure-sdk-for-python
- Push the code to Azure.
- More geodata file formats. For example, one could easily integrate some FME services.
- Take care of projections. Currently, we hope your local files are in WGS84.
- Adopt to other cloud services.
- The drag'n'drop code is adapted from @remy's http://html5demos.com/dnd-upload. a
- The conversion to KML is done on a separate Node.JS instance using https://github.com/mapbox/tokml.
- The Python web framework Bottle.
Stephan Heuel, stephan.heuel@ebp.ch