Skip to content

fab-geocommuns/RNB-OSM-hackathon

Repository files navigation

RNB to OSM

A web application for matching French National Building Registry (RNB) data with OpenStreetMap buildings and generating OSM files with RNB tags.

What it does

This tool helps update OpenStreetMap data with official French building data by:

  • Matching RNB buildings with existing OSM buildings
  • Generating OSM XML files with RNB tags for reliable matches
  • Providing a web interface to select cities and export data

Quick Start

Using Docker (Recommended)

  1. Create a .env file with database credentials:
POSTGRES_USER=your_user
POSTGRES_PASSWORD=your_password
POSTGRES_DB=rnb_osm
  1. Launch the application:
docker-compose up
  1. Access the web interface at http://localhost:5000

Manual Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Set up PostgreSQL with PostGIS extension

  2. Configure environment variables and run:

python run.py run

Usage

Web Interface

  • Visit http://localhost:5000
  • Select a department and city
  • Click "Exporter" to download the OSM file with RNB tags

Requirements

  • Python 3.13+
  • PostgreSQL with PostGIS
  • Docker (optional)

About

Hackathon pour rapprocher les ID-RNBs de OSM

Resources

Stars

Watchers

Forks

Packages

No packages published