跳转到主要内容

来自数据.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 (17.5 kB 查看哈希值)

上传时间:

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面