{ "info": { "author": "LOGILAB S.A. (Paris, FRANCE)", "author_email": "contact@logilab.fr", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: CubicWeb", "Programming Language :: JavaScript", "Programming Language :: Python" ], "description": "Summary\n-------\n\nManipulating french regions, d\u00e9partements, communes, etc. polygons from\nOpenStreetMap or IGN, for display on maps using leaflet.\n\n\nData import from OSM\n--------------------\n\nShapefiles are taken from http://osm13.openstreetmap.fr/~cquest/openfla/export/\n(also shared on https://www.data.gouv.fr/fr/organization/openstreetmap)\n\nDifferent resolution (from 5 meters to 100 meters can be used depending\non the scale of maps to display).\n\n\nThe following example imports shapes for regions, departements,\narrondissements, epci and communes:\n\n.. code:: console\n\n $ cubicweb/bin/cubicweb-ctl osmfrance_import_shp \\\n > --regions=path/to/regions-20140306-100m-shp.zip \\\n > --departements=path/to/departements-20140306-100m-shp.zip \\\n > --arrondissements=path/to/arrondissements-20140306-100m-shp.zip \\\n > --epci=path/to/epci-20140306-100m-shp.zip \\\n > --communes=path/to/communes-20140306-100m-shp.zip\n\n\nData import from IGN\n--------------------\n\nShapefiles are taken from GEOFLA version 1.1:\n\nhttp://www.data.gouv.fr/en/dataset/geofla-communes\nhttp://www.data.gouv.fr/fr/dataset/geoflar-arrondissements\nhttp://www.data.gouv.fr/en/dataset/geofla-departements-30383060\n\n.. code:: console\n\n $ cubicweb/bin/cubicweb-ctl ign_import_shp \n > --departements=path/to/DEPARTEMENT.SHP \\\n > --arrondissements=path/to/ARRONDISSEMENT.SHP \\\n > --communes=path/to/COMMUNE.SHP\n\n\nQueries on data\n---------------\n\nThe following query returns the polygon corners (as latitude, longitude\ncoordinates) for Communes (cities) only::\n\n Any DISPLAY(G, 4326) LIMIT 10 WHERE X geometry G, X is Commune\n\nThe following returns all types::\n\n Any DISPLAY(G, 4326) LIMIT 10 WHERE X geometry G\n\n\nDisplaying data\n---------------\n\nThe leaflet cube can be used for displaying these polygons on a map; the\nCW view used for that is *leaflet-geojson*\n\nFor example, the query::\n\n Any DISPLAY(G, 4326),X LIMIT 20 WHERE X geometry G, X is Departement\n\nshould display 20 departements, using X (the Departement eid) as Z\nvalue (color value) using a yellow-red colormap.\n\nThe corresponding URL using the leaflet view is::\n\n http:///view?rql=Any+DISPLAY%28G%2C+4326%29%2CX+LIMIT+20+WHERE+X+geometry+G%2C+X+is+Departement&vid=leaflet-geojson", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.cubicweb.org/project/cubicweb-osmfrance", "keywords": null, "license": "LGPL", "maintainer": null, "maintainer_email": null, "name": "cubicweb-osmfrance", "package_url": "https://pypi.org/project/cubicweb-osmfrance/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cubicweb-osmfrance/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.cubicweb.org/project/cubicweb-osmfrance" }, "release_url": "https://pypi.org/project/cubicweb-osmfrance/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Shapefiles (french regions, departements, cantons, communes) from OpenStreetMap", "version": "0.2.2" }, "last_serial": 1293088, "releases": { "0.2.2": [ { "comment_text": "", "digests": { "md5": "e173222c7b52facfe4450e30d46e5450", "sha256": "2e8f0d0aba8584ef9b5eaebff895b749af5a9ed5fae551ee0a45bbad309e1abe" }, "downloads": -1, "filename": "cubicweb-osmfrance-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e173222c7b52facfe4450e30d46e5450", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11296, "upload_time": "2014-11-03T18:19:00", "url": "https://files.pythonhosted.org/packages/99/67/58e020879b6e2e86021c2c12ae08a4311475130c563a964236015cb6183b/cubicweb-osmfrance-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e173222c7b52facfe4450e30d46e5450", "sha256": "2e8f0d0aba8584ef9b5eaebff895b749af5a9ed5fae551ee0a45bbad309e1abe" }, "downloads": -1, "filename": "cubicweb-osmfrance-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e173222c7b52facfe4450e30d46e5450", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11296, "upload_time": "2014-11-03T18:19:00", "url": "https://files.pythonhosted.org/packages/99/67/58e020879b6e2e86021c2c12ae08a4311475130c563a964236015cb6183b/cubicweb-osmfrance-0.2.2.tar.gz" } ] }