{ "info": { "author": "Gramener", "author_email": "s.anand@gramener.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: Other/Proprietary License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "# Reshaper\r\n\r\nSplits and recombines shapefiles based on lat-long data.\r\n\r\n## Installation\r\n\r\n conda install -c conda-forge gdal\r\n pip install reshaper\r\n\r\n## Usage\r\n\r\nTo split a state map based on a branch list, use:\r\n\r\n reshaper state.shp branch.csv output.shp --id branchname --lat lat_col --lng lng_col\r\n\r\nThis takes 3 arguments:\r\n\r\n- `state.shp`: path to the original shapefile\r\n- `branch.csv`: path to the CSV file with points data. The output shapefile will\r\n have one shape per row of this file\r\n- `output.shp`: path to the output shapefile\r\n\r\n`branch.csv` should have at least these 3 indicators:\r\n\r\n- `--id branchname`: indicates that the `branchname` column holds the branch\r\n identifier. The values in this column must be unique\r\n- `--lat lat_col`: the `lat_col` column holds the latitude in degrees\r\n- `--lng lng_col`: the `lng_col` column holds the longitude in degrees\r\n\r\nThe program splits and re-combines shapes based the following logic:\r\n\r\n- If a state does not have a branch, assign it fully to the nearest branch\r\n- If a state has only one branch, assign it fully to that branch\r\n- If a state has multiple branches, split it between the branches and assign each broken state to the respective branch\r\n\r\nThe output shapefile has an `id` column holding the `--id` value.\r\n\r\n\r\n## Release\r\n\r\nChange the `\"version\"` in `setup.py` to `\"x.x.x\"`, commit and tag:\r\n\r\n git commit . -m\"Describe features / bug fixes\"\r\n git tag -a vx.x.x -m\"one-line summary of release\"\r\n\r\nTo [distribute](https://packaging.python.org/en/latest/distributing.html), run:\r\n\r\n rm -rf build dist\r\n flake8 .\r\n python setup.py test\r\n python setup.py sdist bdist_wheel --universal\r\n twine upload dist/*\r\n\r\n\r\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gramener/reshaper", "keywords": "reshaper", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "reshaper", "package_url": "https://pypi.org/project/reshaper/", "platform": "", "project_url": "https://pypi.org/project/reshaper/", "project_urls": { "Homepage": "https://github.com/gramener/reshaper" }, "release_url": "https://pypi.org/project/reshaper/1.1.0/", "requires_dist": [ "GDAL", "pandas", "scipy", "tqdm" ], "requires_python": "", "summary": "# Reshaper", "version": "1.1.0" }, "last_serial": 3129460, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ddbb2259a8bfe296a347356ec4bb2349", "sha256": "73249b7045ae389b662f3a331e9909f00e9671ab481af4d3fb2c3d8a7a84e5d9" }, "downloads": -1, "filename": "reshaper-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ddbb2259a8bfe296a347356ec4bb2349", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4926, "upload_time": "2016-10-12T06:56:16", "url": "https://files.pythonhosted.org/packages/0a/9a/4b9011f98057233dce39427959c7e35cfa5276a78b61346a6e96b57e8725/reshaper-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4f9c72375d6f6dfea308bb5f1576da6", "sha256": "34f183c53f0f0a726dac0e85a5e3887749a1c1c2c33c37771278dfbf942e2d72" }, "downloads": -1, "filename": "reshaper-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b4f9c72375d6f6dfea308bb5f1576da6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3350, "upload_time": "2016-10-12T06:56:18", "url": "https://files.pythonhosted.org/packages/d8/ec/69a7744646292c8843a8fd37bf85b236c457cd71c416bd4bc2d22f1d25c7/reshaper-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1f17cfcfb75325d86588f31da66fd391", "sha256": "97604bc7337d4ea2fae86451173efbd4e12899d08670ff5d223c7c0de1dd908b" }, "downloads": -1, "filename": "reshaper-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1f17cfcfb75325d86588f31da66fd391", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4927, "upload_time": "2016-10-12T06:59:10", "url": "https://files.pythonhosted.org/packages/05/f9/bb4f86d4d6793be240287dc814b6e771710ae0c4c88ea9f8718ffaf13a56/reshaper-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "197bdd731ac7c236409704acf2a73253", "sha256": "44f1e1dabe0199ec53d20e8d9636b786fb3e53193306edd7b3608c18c72575de" }, "downloads": -1, "filename": "reshaper-1.0.1.tar.gz", "has_sig": false, "md5_digest": "197bdd731ac7c236409704acf2a73253", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3344, "upload_time": "2016-10-12T06:59:12", "url": "https://files.pythonhosted.org/packages/ac/42/67ee11247115420d644c75d2775bb464b82cdf4cf2ff0bc119aa3925480e/reshaper-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "e8fb8bbea839cc7c0a960c0fd53c0032", "sha256": "f6a64479f0f87d1393f5a52549537ed4f5f266632067e54ab311cebb882ea9f9" }, "downloads": -1, "filename": "reshaper-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8fb8bbea839cc7c0a960c0fd53c0032", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4931, "upload_time": "2016-10-12T07:50:53", "url": "https://files.pythonhosted.org/packages/f9/6b/b357841b58b6b879a5b82b45db6d39f86135ff58596711f080d8dab68da2/reshaper-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14ac919398e3618b5910ddd9a7acd6de", "sha256": "7c7a2b217e92d719adeec797cfe91a9659933e1abfc428f65aa720c603fdbcb5" }, "downloads": -1, "filename": "reshaper-1.0.2.tar.gz", "has_sig": false, "md5_digest": "14ac919398e3618b5910ddd9a7acd6de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3345, "upload_time": "2016-10-12T07:50:56", "url": "https://files.pythonhosted.org/packages/ca/f9/aae68cfc9ac388f6b0ef75eeb9e3da43cc657201b6147089f80a924ec030/reshaper-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "d860153b6c917cfc63a6a4347ec9a944", "sha256": "6f10dc86099535b9f820299db0e114b8cdeb4a6bf9ee5b5906664d98f0f9b1c0" }, "downloads": -1, "filename": "reshaper-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d860153b6c917cfc63a6a4347ec9a944", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6289, "upload_time": "2017-08-28T16:21:15", "url": "https://files.pythonhosted.org/packages/60/96/295ce557130e4cb2ee5581948cd183de2e2c6b66cc707319b92a3d39c5bb/reshaper-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7953b4f9825504fc0d57f91a1e2207e0", "sha256": "7e04793371d950c5b1e6601df8068cf0df4579bae1fb89f3ab11f92963b3d523" }, "downloads": -1, "filename": "reshaper-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7953b4f9825504fc0d57f91a1e2207e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4216, "upload_time": "2017-08-28T16:21:16", "url": "https://files.pythonhosted.org/packages/af/0b/ac2d1642c5417ff61673e714f55b0de1b59b009be4959ecb0a495e26abc0/reshaper-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d860153b6c917cfc63a6a4347ec9a944", "sha256": "6f10dc86099535b9f820299db0e114b8cdeb4a6bf9ee5b5906664d98f0f9b1c0" }, "downloads": -1, "filename": "reshaper-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d860153b6c917cfc63a6a4347ec9a944", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6289, "upload_time": "2017-08-28T16:21:15", "url": "https://files.pythonhosted.org/packages/60/96/295ce557130e4cb2ee5581948cd183de2e2c6b66cc707319b92a3d39c5bb/reshaper-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7953b4f9825504fc0d57f91a1e2207e0", "sha256": "7e04793371d950c5b1e6601df8068cf0df4579bae1fb89f3ab11f92963b3d523" }, "downloads": -1, "filename": "reshaper-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7953b4f9825504fc0d57f91a1e2207e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4216, "upload_time": "2017-08-28T16:21:16", "url": "https://files.pythonhosted.org/packages/af/0b/ac2d1642c5417ff61673e714f55b0de1b59b009be4959ecb0a495e26abc0/reshaper-1.1.0.tar.gz" } ] }