Some wine region data I've found on the web
In order to create a new geojson for a specific appellation, do the following.
- Search OpenStreetMaps.org for the appropriate map data
- Once the appropriate boundary looking shape is shown, tap the export button
- This will likely produce an error as the map size is too large:
You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm
- This will likely produce an error as the map size is too large:
- Below the export call to action are more exporting options. Tap
Overpass API
. This will download the map data with all information that OpenStreetMaps contains - Convert the osm file with the following command:
ogr2ogr -f GeoJSON map.geojson map-3 multipolygons
- For additional reading: OGR Instructions
- Filter out the generated geojson file so that we only show administrative boundaries with the following command:
cat map.geojson | jq '. | {type: .type, name: .name, crs: .crs, features: [.features[] | select(.properties.type == "boundary")]}' > filteredMap.geojson
- Test the output on: GeoJson.io
- Commit to the appropriate Region and Subregion directory in this repo