{"id":18804675,"url":"https://github.com/loleg/baumkataster-data","last_synced_at":"2025-08-18T11:50:16.824Z","repository":{"id":66866410,"uuid":"195789529","full_name":"loleg/baumkataster-data","owner":"loleg","description":"Every tree in the City of Zürich, as instant API","archived":false,"fork":false,"pushed_at":"2021-07-12T14:33:29.000Z","size":21,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T02:21:12.926Z","etag":null,"topics":["datapackage","opendata","trees","zurich"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loleg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-08T10:26:18.000Z","updated_at":"2023-06-07T08:19:55.000Z","dependencies_parsed_at":"2023-12-23T17:16:51.236Z","dependency_job_id":"7014cb33-6cd3-44b0-bb21-84fbac7d8688","html_url":"https://github.com/loleg/baumkataster-data","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.6,"last_synced_commit":"81de452cb669b6dafc8f284c5ee6b11e35e682a0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loleg/baumkataster-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fbaumkataster-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fbaumkataster-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fbaumkataster-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fbaumkataster-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loleg","download_url":"https://codeload.github.com/loleg/baumkataster-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loleg%2Fbaumkataster-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270988495,"owners_count":24680675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datapackage","opendata","trees","zurich"],"created_at":"2024-11-07T22:39:53.723Z","updated_at":"2025-08-18T11:50:16.794Z","avatar_url":"https://github.com/loleg.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tree Cadastre (Baumkataster) Data\n\nThis is a list of trees in the City of Zürich provided as a [Simple Data Format](http://dataprotocols.readthedocs.io/en/latest/simple-data-format.html), compiled by [dat.alets.ch](https://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.\n\n**To add new datasets or make modifications, please visit our [GitHub repository](https://github.com/schoolofdata-ch/baumkataster-data) and contact us via Issues or Pull Request.**\n\n## Preparation\n\nA CSV file was created based on the [GeoPackage](https://www.stadt-zuerich.ch/portal/de/index/ogd/werkstatt/gpkg.html) obtained from [opendata.swiss](https://opendata.swiss/de/dataset/baumkataster-der-stadt-zurich), and filtered to exclude binary blobs and extract data using an SQL query.\n\n\u003e **Note**: it is no longer possible to directly fetch this data with this script. You have to [visit this webpage](https://www.stadt-zuerich.ch/geodaten/download/Baumkataster?format=10008), under the map select `Ausschnitt \u003e Stadt Zürich` then click Download. Then select `Zu Meine Bestellungen`, wait for the process to complete (2-5 minutes), and then click `Herunterladen`. Extract this ZIP in the root of this project, and you should see some CSV files in the **data** folder.\n\nRun `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)\n\nIn case **ogr2ogr** is not available, you can run `make nogeom`. For this **sqlite3** needs to be installed.\n\n## Service\n\nThis repository contains a minimalist backend service API based on the [Falcon](http://falconframework.org/) framework and [Pandas DataPackage Reader](https://github.com/rgieseke/pandas-datapackage-reader). To run:\n\n```\ncd api\nvirtualenv env\n. env/bin/activate\npip install -Ur requirements.txt\npython server.py\n```\n\nAt this point you should see the message \"Serving on port...\" Test the API using a REST client such as [RESTer](https://github.com/frigus02/RESTer) with queries such as:\n\nhttp://localhost:8000/tree?quartier=Oerlikon\n\nWhich gives you all the trees in 'Oerlikon'. You can adjust the amount of output with a `page` and `per_page` parameter in your query.\n\n## License\n\nThis package is licensed by its maintainers under the Public Domain Dedication\nand License.\n\nIf you intended to use these data in a public or commercial product, please\ncheck the data sources themselves for any specific restrictions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floleg%2Fbaumkataster-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floleg%2Fbaumkataster-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floleg%2Fbaumkataster-data/lists"}