This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


Manipulating french regions, départements, communes, etc. polygons from OpenStreetMap or IGN, for display on maps using leaflet.

Data import from OSM

Shapefiles are taken from (also shared on

Different resolution (from 5 meters to 100 meters can be used depending on the scale of maps to display).

The following example imports shapes for regions, departements, arrondissements, epci and communes:

$ cubicweb/bin/cubicweb-ctl osmfrance_import_shp <myinstance> \
> --regions=path/to/ \
> --departements=path/to/ \
> --arrondissements=path/to/ \
> --epci=path/to/ \
> --communes=path/to/

Data import from IGN

Shapefiles are taken from GEOFLA version 1.1:

$ cubicweb/bin/cubicweb-ctl ign_import_shp <myinstance>
> --departements=path/to/DEPARTEMENT.SHP \
> --arrondissements=path/to/ARRONDISSEMENT.SHP \
> --communes=path/to/COMMUNE.SHP

Queries on data

The following query returns the polygon corners (as latitude, longitude coordinates) for Communes (cities) only:

Any DISPLAY(G, 4326) LIMIT 10 WHERE X geometry G, X is Commune

The following returns all types:

Any DISPLAY(G, 4326) LIMIT 10 WHERE X geometry G

Displaying data

The leaflet cube can be used for displaying these polygons on a map; the CW view used for that is leaflet-geojson

For example, the query:

Any DISPLAY(G, 4326),X LIMIT 20 WHERE X geometry G, X is Departement

should display 20 departements, using X (the Departement eid) as Z value (color value) using a yellow-red colormap.

The corresponding URL using the leaflet view is:

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cubicweb-osmfrance-0.2.2.tar.gz (11.3 kB) Copy SHA256 Checksum SHA256 Source Nov 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting