{ "info": { "author": "OSM Canada Team", "author_email": "carriere.denis@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP", "Topic :: Scientific/Engineering :: GIS", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ETL2OSM\n=======\n\nExtract, Transform and Load to OpenStreetMap\n\n[![Build Status](https://travis-ci.org/osmottawa/etl2osm.svg?branch=master)](https://travis-ci.org/osmottawa/etl2osm)\n[![Coverage Status](https://coveralls.io/repos/osmottawa/etl2osm/badge.svg?branch=master&service=github)](https://coveralls.io/github/osmottawa/etl2osm?branch=master)\n\nFeatures\n--------\n\n- Extracts & Loads data from multiple formats:\n\n - Shapefile\n - GeoJSON\n - OSM\n - KML (Coming Soon)\n\n- Replace direction fields (NE > Northeast, SW > Southwest)\n- Replace street suffix fields (AVE > Avenue, ST > Street)\n- Change & remove attribute names\n- Convert text fields into proper titlecase (ottawa ONTARIO > Ottawa Ontario)\n- Transform data into WGS84 (EPSG:4326)\n\n\nAPI Overview\n------------\n\nStep by Step doing a typical `Extract Transform Load` processing.\n\n```python\n>>> import etl2osm\n>>> data = etl2osm.extract(\"infile.shp\")\n>>> data.transform(\"config.json\")\n>>> data.save(\"outfile.osm\")\n```\n\nDoing the entire process in a single line\n\n```python\n>>> import etl2osm\n>>> etl2osm.process(\"infile.shp\", \"config.json\", \"outfile.osm\")\n```\n\nCommand Line Interface\n----------------------\n\nReading the a file, the standard output will be in a GeoJSON format.\n\n```bash\n$ etl2osm \"infile.shp\" --config \"config.json\" --outfile \"outfile.osm\"\n```\n\nSee [Examples](https://github.com/osmottawa/etl2osm/tree/master/examples) for more information.\n\nMaking a Config.json\n--------------------\n\nWhenever you want to perform a transformation, include a config file in a JSON format.\n\n### Road Data\n\n```json\n{\n \"conform\": {\n \"addr:street\": [\n {\"function\": \"direction\", \"field\":\"DIRECTION\"},\n {\"function\": \"title\", \"field\": \"ST_NAME\"},\n {\"function\": \"suffix\", \"field\": \"ST_EXT\"}\n ],\n \"maxspeed\": {\"function\": \"mph\", \"field\": \"Speed_Limi\"}\n }\n}\n```\n\n### Address Data\n\n```json\n{\n \"conform\": {\n \"addr:number\": {\"int\": \"True\", \"field\": \"NUMBER_\"},\n \"addr:street\": [\n {\"function\": \"direction\", \"field\": \"PREDIR\"},\n {\"function\": \"title\", \"field\": \"ST_NAME\"},\n {\"function\": \"suffix\", \"field\": \"STSUFFIX\"}\n ],\n \"addr:postcode\": {\"int\": \"True\", \"field\": \"ZIP_CODES\"},\n \"addr:unit\": \"UNIT\"\n }\n}\n```\n\nInstallation\n------------\n\n### GDAL & Fiona\n\nETL2OSM depends on GDAL, Fiona & LXML; to install those packages using Windows.\nDownload the appropriate library from [Unofficial Windows Binaries for Python Extension Packages](http://www.lfd.uci.edu/~gohlke/pythonlibs/) matching your Python version (Python27/34) & 64/32bit.\n\n```bash\n$ cd packages\n$ pip install lxml\u20113.4.4\u2011cp27\u2011none\u2011win32.whl\n$ pip install Fiona-1.6.2-cp27-none-win32.whl\n$ pip install GDAL-1.11.3-cp27-none-win32.whl\n```\n\n### PyPi Install\n\nInstall ETL2OSM from PyPi's online packages.\n\n```bash\n$ pip install etl2osm\n```\n\n### GitHub Install\n\nInstall the latest version directly from Github.\n\n```bash\n$ git clone https://github.com/osmottawa/etl2osm/\n$ cd etl2osm\n$ pip install .\n```", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/osmottawa/etl2osm/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/osmottawa/etl2osm/", "keywords": "etl extract transform load shapefile geojson osm", "license": "The MIT License", "maintainer": null, "maintainer_email": null, "name": "etl2osm", "package_url": "https://pypi.org/project/etl2osm/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/etl2osm/", "project_urls": { "Download": "https://github.com/osmottawa/etl2osm/", "Homepage": "https://github.com/osmottawa/etl2osm/" }, "release_url": "https://pypi.org/project/etl2osm/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Extract, Transform and Load to OpenStreetMap.", "version": "0.2.0" }, "last_serial": 2333552, "releases": { "0.0.2": [], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ae96626002c7153bc6a2393f5bf48fef", "sha256": "4e8575c8085b169bdd696385bae503b3eb311e31fbf33601e0e0175010e0faf0" }, "downloads": -1, "filename": "etl2osm-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae96626002c7153bc6a2393f5bf48fef", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 13369, "upload_time": "2015-11-25T19:51:09", "url": "https://files.pythonhosted.org/packages/f3/fd/b40ae673ec19b8fe4f5886c34f42a6c09d7a80ace321e44d4dd3272dab9b/etl2osm-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7306afaa59ac2f59919e01c81247bbd", "sha256": "b8d5e9d37f875773e6633d03cc098261be77534642bc64473773ea147f517256" }, "downloads": -1, "filename": "etl2osm-0.0.3.zip", "has_sig": false, "md5_digest": "b7306afaa59ac2f59919e01c81247bbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21704, "upload_time": "2015-11-25T19:50:53", "url": "https://files.pythonhosted.org/packages/50/ed/84fc36215de55308e77f90948d294abf837ec7e6217cad5fb8e7ba8bccd7/etl2osm-0.0.3.zip" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "456b1685c662eb2c9721c7106648e2dc", "sha256": "2df620301eb639699a4824047ddab17228c9067e43cb75e916ad7cb7748d23d6" }, "downloads": -1, "filename": "etl2osm-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "456b1685c662eb2c9721c7106648e2dc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14037, "upload_time": "2016-09-07T21:10:26", "url": "https://files.pythonhosted.org/packages/e4/c1/fdb183404b9698272ea8417be24da95aa00f412f354676692ca351167419/etl2osm-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f56d06220a85cd84a2ad0006821056cb", "sha256": "9de31b9a4c06f6406e6cd5ea3f4af0ec129e7491043c326807b9425a08d27a33" }, "downloads": -1, "filename": "etl2osm-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f56d06220a85cd84a2ad0006821056cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13358, "upload_time": "2016-09-07T21:10:23", "url": "https://files.pythonhosted.org/packages/41/2c/dd21a8ace4a40df8aa27ce65bf195b5c3f8fd2a2cb7e30b9d29a57b58ea6/etl2osm-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9e58f532101e0c6f7019d8467f33719b", "sha256": "6392640725b202653a3ddcb5efd9eb3a35779a5066732b1ea51e17e8c3109906" }, "downloads": -1, "filename": "etl2osm-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e58f532101e0c6f7019d8467f33719b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14096, "upload_time": "2016-09-09T13:25:34", "url": "https://files.pythonhosted.org/packages/0e/35/0fef40889c84c3277d220c404e0c690bf7f1dadcd2d8461421f19ad2966a/etl2osm-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63cd94fdf6b0ae0a3a3330c6e04fb5bd", "sha256": "7c69965873fceae815a44c76c37573242c5c3e5d35a1647d8240b54871a1c818" }, "downloads": -1, "filename": "etl2osm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "63cd94fdf6b0ae0a3a3330c6e04fb5bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13481, "upload_time": "2016-09-09T13:25:31", "url": "https://files.pythonhosted.org/packages/1f/7e/cc80d880a045c44236879c8b4692c2c96878678f5c4baa8ee985e3fafe42/etl2osm-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e58f532101e0c6f7019d8467f33719b", "sha256": "6392640725b202653a3ddcb5efd9eb3a35779a5066732b1ea51e17e8c3109906" }, "downloads": -1, "filename": "etl2osm-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e58f532101e0c6f7019d8467f33719b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14096, "upload_time": "2016-09-09T13:25:34", "url": "https://files.pythonhosted.org/packages/0e/35/0fef40889c84c3277d220c404e0c690bf7f1dadcd2d8461421f19ad2966a/etl2osm-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63cd94fdf6b0ae0a3a3330c6e04fb5bd", "sha256": "7c69965873fceae815a44c76c37573242c5c3e5d35a1647d8240b54871a1c818" }, "downloads": -1, "filename": "etl2osm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "63cd94fdf6b0ae0a3a3330c6e04fb5bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13481, "upload_time": "2016-09-09T13:25:31", "url": "https://files.pythonhosted.org/packages/1f/7e/cc80d880a045c44236879c8b4692c2c96878678f5c4baa8ee985e3fafe42/etl2osm-0.2.0.tar.gz" } ] }