{ "info": { "author": "Loic Gasser", "author_email": "loicgasser4@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: GIS", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "esrijson\n========\n\n[![Build Status](https://travis-ci.org/geoadmin/lib-esrijson.svg?branch=master)](https://travis-ci.org/geoadmin/lib-esrijson)\n\n\nIntroduction\n------------\n\nThis module is meant to build a bridge between GDAL `__geo_interface__` property via [Shapely](https://github.com/Toblerity/Shapely).\nThere is no concept of `GeometryCollection` in esrijson syntax, so there is only a limited support for this concept. Currently, we only take the first geometry and drop the rest.\nThis library is heavily inspired by [python-geojson](https://github.com/frewsxcv/python-geojson).\n\nUsage\n-----\n\n```python\nimport esrijson\nfrom shapely import geometry\n\n# Create an esrijson feature\nfeat = esrijson.Feature(geometry=geometry.Point(1, 4), attributes={'name': 'dummy', 'val': 1}, wkid=2056)\n# Dump to json\ndumped = esrijson.dumps(feat)\n# Load to Feature back again\nloaded = esrijson.loads(dumped)\nprint(loaded)\nprint(type(loaded))\n\n>>> {'geometry': {'y': 4.0, 'x': 1.0}, 'spatialReference': {u'wkid': 2056}},'attributes': {u'name': u'dummy', u'val': 1}}\n>>> \n\n# You can also transform an esri json like object into a shapely object\ngeom = esrijson.to_shape({\"paths\": [[[0.0, 0.0], [1.0, 1.0]], [[-1.0, 0.0], [1.0, 0.0]]]})\nprint(getattr(geom, '__geo_interface__')\n\n>>> {'type': 'MultiLineString', 'coordinates': (((0.0, 0.0), (1.0, 1.0)), ((-1.0, 0.0), (1.0, 0.0)))}\n\n# And of your do the same operation back again\nesri_geom = esrijson.from_shape(geom)\nprint(esri_geom)\n>>> {'paths': (((0.0, 0.0), (1.0, 1.0)), ((-1.0, 0.0), (1.0, 0.0)))}\n```\n\nESRI specs references\n---------------------\n\n- [Geometry Object](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000n1000000)\n- [Feature Object](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Feature_object/02r3000000n8000000/)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/geoadmin/lib-esrijson", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "esrijson", "package_url": "https://pypi.org/project/esrijson/", "platform": "", "project_url": "https://pypi.org/project/esrijson/", "project_urls": { "Homepage": "https://github.com/geoadmin/lib-esrijson" }, "release_url": "https://pypi.org/project/esrijson/0.4.3/", "requires_dist": [ "shapely" ], "requires_python": "", "summary": "Bindings and utilities for EsriJSON", "version": "0.4.3" }, "last_serial": 5944859, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e07178a67ed3169985e89c65032a2dd0", "sha256": "a059083ce2dda9a188cd96ed515fdb347a7a1006f2aeb0a5860f8ed41069ed7a" }, "downloads": -1, "filename": "esrijson-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "e07178a67ed3169985e89c65032a2dd0", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6492, "upload_time": "2017-06-23T15:30:25", "url": "https://files.pythonhosted.org/packages/d2/74/f10aa7b693e5f4edeae711c2f373d05fc27a3fc8aa928f0fa215524be60d/esrijson-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e65dfb65ba29ec10a59749986b4a33d", "sha256": "d010ca5eb7ee7fbb99f267df33afb970f704ea635f95cfe806fcb05d170751d6" }, "downloads": -1, "filename": "esrijson-0.1.tar.gz", "has_sig": false, "md5_digest": "7e65dfb65ba29ec10a59749986b4a33d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3768, "upload_time": "2017-06-23T15:29:51", "url": "https://files.pythonhosted.org/packages/b4/37/9a3f0b7a7cdca94d351c7a9da33e84a5f887b86ea26068f0f9272142df30/esrijson-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c0f709cbb2567414cb92acafa775c7c0", "sha256": "57f4255618770ad21e5e644d6ddb534be8040b593cc8a6ebe270fdd8e34952ad" }, "downloads": -1, "filename": "esrijson-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "c0f709cbb2567414cb92acafa775c7c0", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6594, "upload_time": "2017-06-27T16:19:56", "url": "https://files.pythonhosted.org/packages/07/f8/24cdda11fcc0d02d3a3e2b16ebe22940ec2431335a565c3cf60e35dbfec6/esrijson-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a2384d7245458352b7f1f3484483b272", "sha256": "76eb2832d7dbc59fc862af5398e8c23918e58dec621f0306e302335318adc18f" }, "downloads": -1, "filename": "esrijson-0.2.tar.gz", "has_sig": false, "md5_digest": "a2384d7245458352b7f1f3484483b272", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3862, "upload_time": "2017-06-27T16:19:42", "url": "https://files.pythonhosted.org/packages/63/4e/3b6dc5e69976d0d163e03807529a5af2ead51014c1c95159635da25efef4/esrijson-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "3d71bff2102e5f1bb0714cc1bfdc2961", "sha256": "c8e0c9d1bf8237c3b838931f2a05d6ffc218d177d3e2afd2e9e83ae08428eff1" }, "downloads": -1, "filename": "esrijson-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "3d71bff2102e5f1bb0714cc1bfdc2961", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6614, "upload_time": "2017-07-26T14:04:36", "url": "https://files.pythonhosted.org/packages/f0/89/20582ce4226822d7af6f59cb1acc5e415bfe82d1c4d5a24ea9b503f9ecb1/esrijson-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9bd969a67c781268a2bb5df03e40f966", "sha256": "2f18dbd1966ce968d80c769a7e185b476baf03718429a2e2eaa9bf2da320448a" }, "downloads": -1, "filename": "esrijson-0.3.tar.gz", "has_sig": false, "md5_digest": "9bd969a67c781268a2bb5df03e40f966", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3889, "upload_time": "2017-07-26T14:00:16", "url": "https://files.pythonhosted.org/packages/53/15/15850401a3089fddf804c8b58471f698744ffa6b6f0c0370ca640ac8e2f6/esrijson-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "9c6e27eef5b31deb81ee3221c210c63f", "sha256": "1f2fbff2ab6d1cb51e3a6ae145da2d5e07621cd7436eecc812b361a4175a83e0" }, "downloads": -1, "filename": "esrijson-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "9c6e27eef5b31deb81ee3221c210c63f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6683, "upload_time": "2017-07-27T10:29:52", "url": "https://files.pythonhosted.org/packages/04/c0/00c6717eee0ea2b772727fdc384d3298cff7beb20d2ccfab135197afd969/esrijson-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3700f0fa66df99c809063467d53a89a6", "sha256": "193f043ae72742fd363f468cd974d5af3bbaaaf22612852f7fc11f10b3639a5d" }, "downloads": -1, "filename": "esrijson-0.4.tar.gz", "has_sig": false, "md5_digest": "3700f0fa66df99c809063467d53a89a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3956, "upload_time": "2017-07-27T10:29:41", "url": "https://files.pythonhosted.org/packages/1b/57/c2cf4db96c66e82a9215c9fdec3550975bd5bb0ee703bdb8c3fff7f67dfa/esrijson-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "11adecd571c598ffc81b893a4d8b6e2f", "sha256": "4358539d98e51066fcbfb2dff2b8a2e5f6966cb10d29fb4f0992d8e1c25b260e" }, "downloads": -1, "filename": "esrijson-0.4.1-py2-none-any.whl", "has_sig": false, "md5_digest": "11adecd571c598ffc81b893a4d8b6e2f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7962, "upload_time": "2019-03-08T17:38:21", "url": "https://files.pythonhosted.org/packages/69/cf/21f0d5e71719116c0cb49d2d4d19ff3bbbff94d5461079b1381cc9ff6609/esrijson-0.4.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96917cb653e14748533fbd261a576350", "sha256": "d66b45ebe84fa14067866b8d7df2028581719340c624a92599f92c50a8e6fa59" }, "downloads": -1, "filename": "esrijson-0.4.1.tar.gz", "has_sig": false, "md5_digest": "96917cb653e14748533fbd261a576350", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5160, "upload_time": "2019-03-08T17:24:15", "url": "https://files.pythonhosted.org/packages/8a/9f/1b2dbe272ff6c9e30abacf265a19bf436a4008e893d2b1858868304e2389/esrijson-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "d7b1dd328b7c38dbb8690d0fe2a26198", "sha256": "99b84bb227555990f83592752e3af3317a4b87c28acb76a2eb39dd1df9ea46c6" }, "downloads": -1, "filename": "esrijson-0.4.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d7b1dd328b7c38dbb8690d0fe2a26198", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7963, "upload_time": "2019-03-08T17:43:14", "url": "https://files.pythonhosted.org/packages/09/8b/152fa1f34cb3359af8b600c53e3d1e0f8388278d6ef085bdcc17ac833584/esrijson-0.4.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d8eb3ddc58030de93e53d26f538349e", "sha256": "b7144fdbd8e76ab7c8be6c8d30fd8660efd811e8f14c6c687a7592d165c7aedc" }, "downloads": -1, "filename": "esrijson-0.4.2.tar.gz", "has_sig": false, "md5_digest": "4d8eb3ddc58030de93e53d26f538349e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5300, "upload_time": "2019-03-08T17:43:15", "url": "https://files.pythonhosted.org/packages/46/9b/7fdcee252fdb30b622848268b50ea4bd164ad88212c05a08e5a19cc116a0/esrijson-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "479085135705ecfc2a6f96f0a2fc0b00", "sha256": "e700c6bf31da46965a91188c6a8e6ee83df372a43ee131bd0339ccce51aa1518" }, "downloads": -1, "filename": "esrijson-0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "479085135705ecfc2a6f96f0a2fc0b00", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7969, "upload_time": "2019-10-08T13:51:16", "url": "https://files.pythonhosted.org/packages/2e/12/1f1db863277566a1d32874716d648b65da62365e337e1c33717f3994eab2/esrijson-0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9590a432e02a49469ba4c8659e0878bd", "sha256": "a7ebe033794d9d8db6d3e1acfc8227a0d84b494f644f025ad8a9645da0a9dec6" }, "downloads": -1, "filename": "esrijson-0.4.3.tar.gz", "has_sig": false, "md5_digest": "9590a432e02a49469ba4c8659e0878bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5277, "upload_time": "2019-10-08T13:51:17", "url": "https://files.pythonhosted.org/packages/aa/f9/94b63d9ea51b02d535b34820352fb53eb0ae6325341aaca2279c0d94af57/esrijson-0.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "479085135705ecfc2a6f96f0a2fc0b00", "sha256": "e700c6bf31da46965a91188c6a8e6ee83df372a43ee131bd0339ccce51aa1518" }, "downloads": -1, "filename": "esrijson-0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "479085135705ecfc2a6f96f0a2fc0b00", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7969, "upload_time": "2019-10-08T13:51:16", "url": "https://files.pythonhosted.org/packages/2e/12/1f1db863277566a1d32874716d648b65da62365e337e1c33717f3994eab2/esrijson-0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9590a432e02a49469ba4c8659e0878bd", "sha256": "a7ebe033794d9d8db6d3e1acfc8227a0d84b494f644f025ad8a9645da0a9dec6" }, "downloads": -1, "filename": "esrijson-0.4.3.tar.gz", "has_sig": false, "md5_digest": "9590a432e02a49469ba4c8659e0878bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5277, "upload_time": "2019-10-08T13:51:17", "url": "https://files.pythonhosted.org/packages/aa/f9/94b63d9ea51b02d535b34820352fb53eb0ae6325341aaca2279c0d94af57/esrijson-0.4.3.tar.gz" } ] }