Coder Social home page Coder Social logo

baumkataster-data's Introduction

Tree Cadastre (Baumkataster) Data

This is a list of trees in the City of Zürich provided as a Simple Data Format, compiled by dat.alets.ch. The metadata was collected by us through web searches and public contributions, and is provided as "best effort", without any guarantee of correctness.

To add new datasets or make modifications, please visit our GitHub repository and contact us via Issues or Pull Request.

Preparation

A CSV file was created based on the GeoPackage obtained from opendata.swiss, and filtered to exclude binary blobs and extract data using an SQL query.

Run make in the root folder to fetch and convert the data. You need to have ogr2ogr, awk and curl commands available on your system. (Note on Windwows: make sure to have both ogr2ogr, e.g. if you have QGIS installed C:\Program Files\QGIS 3.8\bin, in your system path and the GDAL_DATA variable, e.g. to C:\Program Files\QGIS 3.8\share\gdal, set)

In case ogr2ogr is not available, you can run make nogeom. For this sqlite3 needs to be installed.

Preview Data Package

Service

This repository contains a minimalist backend service API based on the Falcon framework and Pandas DataPackage Reader. To run:

cd api
virtualenv env
. env/bin/activate
pip install -Ur requirements.txt
python server.py

At this point you should see the message "Serving on port..." Test the API using a REST client such as RESTer with queries such as:

http://localhost:8000/tree?quartier=Oerlikon

Which gives you all the trees in 'Oerlikon'. You can adjust the amount of output with a page and per_page parameter in your query.

License

This package is licensed by its maintainers under the Public Domain Dedication and License.

If you intended to use these data in a public or commercial product, please check the data sources themselves for any specific restrictions.

baumkataster-data's People

Contributors

loleg avatar n0rdlicht avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.