来自数据.gouv.fr的选举数据Cube
项目描述
摘要
来自数据.gouv.fr的选举数据Cube
安装
创建实例
cubicweb create elections my_instance_elections
创建数据库
cubicweb db-create my_instance_elections
不要启动db-init
插入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
完成数据库初始化
cubicweb db-init my_instance_elections
推送osm数据(有关osmfrance Cube的更多详细信息,请参阅README文件)
Shapefiles来自 http://osm13.openstreetmap.fr/~cquest/openfla/export/(也发布在 https://www.data.gouv.fr/fr/organization/openstreetmap)
运行命令
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
推送选举数据
cubicweb-ctl elections-import my_instance_elections
重建FTI索引
cubicweb-ctl db-rebuild-fti my_instance_elections
项目详情
关闭
cubicweb-elections-0.2.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 725d3a01adc8c2b92feecc20cb32b0958c1f3a30f9d1e4e4633ea0e168cff0f5 |
|
MD5 | fb054dcc936bcaeb5d3c1c793d844b05 |
|
BLAKE2b-256 | e508e30e3c6d9b67d22f15b655e96cf8b0322c9c57a68ab9a851fdb2833d66d9 |