Something went wrong. Try again.
馃獮 mirror of [github:electricduck/OpenCarin](https://github.com/electricduck/OpenCarin) github.com/electricduck/OpenCarin
Something went wrong. Try again.
opencarin examples
2 folders 路 1 file
README.md
OpenCarin Examples #
This directory contains practical examples and scripts that demonstrate how to use the reverse-engineered carin-compiler components to extract and process data from the CARINdb ISO.
Available Examples #
01_extract_country_network #
Demonstrates how to extract the full road network (graph) for a single country. Since the CARINdb does not partition the topological graph by country ID, this example uses a spatial extraction method:
- Uses a standard WGS84 GeoJSON of the target country.
- Projects the boundaries into CARIN's internal coordinate system.
- Filters the spatial index of all 74,247
0x0Eroad parcels to find exact geometric intersections. - Outputs the specific list of
0x0Evirtual sectors containing the country's roads.
Setup #
Before running the examples, ensure your environment is fully set up:
# Sync dependencies (including shapely for geospatial operations)
uv sync
# Ensure the spatial parcel index has been built (requires the ISO)
python scripts/routing/find_parcel.py