diff options
| author | gdamms <damguillotin@gmail.com> | 2026-07-24 13:25:21 +0200 |
|---|---|---|
| committer | gdamms <damguillotin@gmail.com> | 2026-07-24 13:25:21 +0200 |
| commit | 9daf8e0fa5db84988679606c9b4c8f26ef463db1 (patch) | |
| tree | 0e2a0df8912f65c0b22f9efab017312df9218c76 /README.md | |
| parent | 77aed43a99a295f3202063edefcb7ce01e011958 (diff) | |
| download | dog-friendly-data-9daf8e0fa5db84988679606c9b4c8f26ef463db1.tar.gz dog-friendly-data-9daf8e0fa5db84988679606c9b4c8f26ef463db1.zip | |
clean the repo
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1,13 +1,13 @@ # Dog Friendly Data -This repository contains scripts I used to scrape and process data related to dog-friendly locations. +This repository contains scripts I used to scrape and process data related to potential dog-unfriendly locations. ## Data -I collected the data to create a map of dog-unfriendly locations. The collected data are acutally meant to identify possible dog-prohibited areas. Only areas that are known to me to be dog-restricted are then moved to the concerned category. I always add a justification for each area, and I try to provide a link to the official source of information. If you find any errors or have additional information, please feel free contact me. +I collected this data to create a map of dog-unfriendly locations. The collected data is actually meant to identify possible dog-prohibited areas; only areas that I've confirmed to be dog-restricted are then moved to the concerned category. I always add a justification for each area, and I try to provide a link to the official source of information. If you find any errors or have additional information, please feel free to contact me. <iframe src="https://www.google.com/maps/d/u/0/embed?mid=1CxFX_yBhNfWjP3vAlOlEF-kZTWBncik&ehbc=2E312F&noprof=1" width="640" height="480"></iframe> -Yellow : Leached only<br/> +Yellow : Leashed only<br/> Red : Prohibited / Not allowed<br/> Blue : Protected area (check rules)<br/> Unmarked : No specific regional restrictions found (or data is incomplete)<br/> @@ -20,10 +20,14 @@ https://www.google.com/maps/d/edit?mid=1CxFX_yBhNfWjP3vAlOlEF-kZTWBncik&usp=shar ## Setup ```sh -uv init -uv install +uv sync ``` ## Scripts -`test_export.py`: Tests the export of data to KML format for Google Maps. I used this to make sure I didn't make any mistakes while importing multiple data sources. Example: `uv run src/test_export.py exported_google_layer.kml 'source_files_*.kml'` +- `kml_utils.py`: Shared helpers used by the scripts below to build KML documents (placemarks, polygons, writing the file). Not meant to be run directly. +- `geojson2kml.py`: Converts a GeoJSON file (MultiPolygon features only) into a KML file. Example: `uv run src/geojson2kml.py input.geojson -o output.kml` +- `n2000.py`: Scrapes [natura2000.fr](https://www.natura2000.fr/carte-natura2000) for every listed site and exports their boundaries to a KML file. Example: `uv run src/n2000.py -o natura_2000.kml` +- `rn.py`: Scrapes [reserves-naturelles.org](https://reserves-naturelles.org/reserves-naturelles/) for every listed nature reserve and exports their boundaries to a KML file. Example: `uv run src/rn.py -o reserves_naturelles.kml` +- `split_kml.py`: Splits a large KML file into several smaller files under a given size, so they stay under Google My Maps' per-layer size limit. +- `test_export.py`: Tests the export of data to KML format for Google Maps. I used this to make sure I didn't make any mistakes while importing multiple data sources. Example: `uv run src/test_export.py exported_google_layer.kml 'source_files_*.kml'` |
