Skip to main content

Summary

Cube for elections data from data.gouv.fr

Installation

Create an instance:

cubicweb create elections my_instance_elections

Create the database:

cubicweb db-create my_instance_elections

Do not launch the db-init

Insert postgis:

psql my_instance_elections -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
psql my_instance_elections -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql

Finish the db initialization:

cubicweb db-init my_instance_elections

Push the osm data (see README of osmfrance cube for more details):

  • Shapefiles are taken from http://osm13.openstreetmap.fr/~cquest/openfla/export/ (also shared on https://www.data.gouv.fr/fr/organization/openstreetmap)

  • Launch the command:

    cubicweb-ctl osmfrance_import_shp my_instance_elections --regions=/path/to/osm/dataosm/regions-20140306-100m-shp.zip --departements=/path/to/osm/dataosm/departements-20140306-100m-shp.zip --arrondissements=/path/to/osm/dataosm/arrondissements-20131220-100m-shp.zip  --epci=/path/to/osm/dataosm/epci-20140306-100m-shp.zip --communes=/path/to/osm/dataosm/communes-20140306-100m-shp.zip

Push the elections data:

cubicweb-ctl elections-import my_instance_elections

Rebuild the FTI index:

cubicweb-ctl db-rebuild-fti my_instance_elections

Release files for cubicweb-elections 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-elections 0.2.1
File Size Uploaded
cubicweb-elections-0.2.1.tar.gz 17.5 kB Details

Release files / cubicweb-elections-0.2.1.tar.gz

Download URL cubicweb-elections-0.2.1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
725d3a01adc8c2b92feecc20cb32b0958c1f3a30f9d1e4e4633ea0e168cff0f5
BLAKE2b-256 checksum
How to use checksums
e508e30e3c6d9b67d22f15b655e96cf8b0322c9c57a68ab9a851fdb2833d66d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page