{ "info": { "author": "Tomasz Jakub Rup", "author_email": "tomasz.rup@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: GIS", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "============\nprotobuf-gis\n============\n\nInstallation\n============\n\n.. sourcecode:: sh\n\n pip install protobuf-gis\n\nAdditional functions\n====================\n\nAll messages has function ``toGeoJSON`` that returns a GeoJSON representation of a message.\n\nMessages\n========\n\nPoint\n-----\n\n.. sourcecode::\n\n syntax = \"proto3\";\n\n import \"gis/protobuf/point.proto\";\n\n package test;\n\n message Test {\n gis.protobuf.Point2D point2d = 1;\n gis.protobuf.Point3D point3d = 2;\n gis.protobuf.MultiPoint2D multi_point2d = 3;\n gis.protobuf.MultiPoint3D multi_point3d = 4;\n }\n\nPoint2D\n~~~~~~~\n\nStructure with two fields of type ``float``: ``x`` and ``y``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'Point',\n 'coordinates': [x, y]\n }\n\nPoint3D\n~~~~~~~\n\nStructure with three fields of type ``float``: ``x``, ``y`` and ``z``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'Point',\n 'coordinates': [x, y, z]\n }\n\nMultiPoint2D\n~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Point2D``: ``point``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'MultiPoint',\n 'coordinates': [[x1, y1], [x2, y2]]\n }\n\nMultiPoint3D\n~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Point3D``: ``point``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'MultiPoint',\n 'coordinates': [[x1, y1, z1], [x2, y2, z2]]\n }\n\nLineString\n----------\n\n.. sourcecode::\n\n syntax = \"proto3\";\n\n import \"gis/protobuf/linestring.proto\";\n\n package test;\n\n message Test {\n gis.protobuf.LineString2D line_string2d = 1;\n gis.protobuf.LineString3D line_string3d = 2;\n gis.protobuf.MultiLineString2D multi_line_string2d = 3;\n gis.protobuf.MultiLineString3D multi_line_string3d = 4;\n }\n\nLineString2D\n~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Point2D``: ``point``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'LineString',\n 'coordinates': [[x1, y1], [x2, y2]]\n }\n\nLineString3D\n~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Point3D``: ``point``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'LineString',\n 'coordinates': [[x1, y1, z1], [x2, y2, z2]]\n }\n\nMultiLineString2D\n~~~~~~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.LineString2D``: ``line_string``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'MultiLineString',\n 'coordinates': [[[x1, y1], [x2, y2]], [[x3, y3], [x4, y4]]]\n }\n\nMultiLineString3D\n~~~~~~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.LineString3D``: ``line_string``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'MultiLineString',\n 'coordinates': [[[x1, y1, z1], [x2, y2, z2]], [[x3, y3, z3], [x4, y4, z4]]]\n }\n\nPolygon\n-------\n\n.. sourcecode::\n\n syntax = \"proto3\";\n\n import \"gis/protobuf/point.proto\";\n\n package test;\n\n message Test {\n gis.protobuf.Polygon2D polugon2d = 1;\n gis.protobuf.Polygon3D polugon3d = 2;\n gis.protobuf.MultiPolygon2D multi_polugon2d = 3;\n gis.protobuf.MultiPolygon3D multi_polugon3d = 4;\n }\n\nPolygon2D\n~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Point2D``: ``point``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'Polygon',\n 'coordinates': [[[x1, y1], [x2, y2]]]\n }\n\nPolygon3D\n~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Point3D``: ``point``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'Polygon',\n 'coordinates': [[[x1, y1, z1], [x2, y2, z2]]]\n }\n\nMultiPolygon2D\n~~~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Polygon2D``: ``polygon``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'MultiPolygon',\n 'coordinates': [[[[x1, y1], [x2, y2]]], [[[x3, y3], [x4, y4]]]]\n }\n\nMultiPolygon3D\n~~~~~~~~~~~~~~\n\nStructure with one repeated field of type ``gis.protobuf.Polygon3D``: ``polygon``.\n\nGeoJSON representation of this message is\n\n.. sourcecode:: python\n\n {\n 'type': 'MultiPolygon',\n 'coordinates': [[[[x1, y1, z1], [x2, y2, z2]]], [[[x3, y3, z3], [x4, y4, z4]]]]\n }\n\nUsage\n=====\n\nIn ``proto/test.proto`` file:\n\n.. sourcecode::\n\n syntax = \"proto3\";\n\n import \"gis/protobuf/point.proto\";\n\n package test;\n\n message Test {\n gis.protobuf.Point2D point = 1;\n }\n\nBuild:\n\n.. sourcecode:: sh\n\n protoc --python_out=. -I /usr/include/ -I . proto/test.proto\n\nCode:\n\n.. sourcecode:: python\n\n from .proto.test_pb import Test\n from gis.protobuf import Point2D\n\n test = Test(point=Point2D(x=10, y=20))\n\n print(test.point.toGeoJSON())\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/tomi77/protobuf-gis", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "protobuf-gis", "package_url": "https://pypi.org/project/protobuf-gis/", "platform": "", "project_url": "https://pypi.org/project/protobuf-gis/", "project_urls": { "Homepage": "https://github.com/tomi77/protobuf-gis" }, "release_url": "https://pypi.org/project/protobuf-gis/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "GIS ProtoBuf module", "version": "1.0.3" }, "last_serial": 3094152, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "49f388882103fb7007e02617ea0eb6fc", "sha256": "cd778c6c0f18cbad61f6bd3560d8d6f53564000d0620ed310019607f44691ff3" }, "downloads": -1, "filename": "protobuf_gis-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "49f388882103fb7007e02617ea0eb6fc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8494, "upload_time": "2017-08-13T19:49:57", "url": "https://files.pythonhosted.org/packages/3b/5b/ffe42f73f15ed97a1fbc6b8e8ae86ad0d74a5981c7695f50b6a09a87a147/protobuf_gis-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "258a2c96d47e7381dc344a6e55bb4a92", "sha256": "28d6f2b88b1ecc13ca8210c4bde83bd6e559c3932f479ee978fcfaa72c38e235" }, "downloads": -1, "filename": "protobuf-gis-1.0.3.tar.gz", "has_sig": false, "md5_digest": "258a2c96d47e7381dc344a6e55bb4a92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5104, "upload_time": "2017-08-13T19:49:55", "url": "https://files.pythonhosted.org/packages/28/d9/454a680442644b97851af5787f0f1a83d7a36413b5412932bf57741957f8/protobuf-gis-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49f388882103fb7007e02617ea0eb6fc", "sha256": "cd778c6c0f18cbad61f6bd3560d8d6f53564000d0620ed310019607f44691ff3" }, "downloads": -1, "filename": "protobuf_gis-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "49f388882103fb7007e02617ea0eb6fc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 8494, "upload_time": "2017-08-13T19:49:57", "url": "https://files.pythonhosted.org/packages/3b/5b/ffe42f73f15ed97a1fbc6b8e8ae86ad0d74a5981c7695f50b6a09a87a147/protobuf_gis-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "258a2c96d47e7381dc344a6e55bb4a92", "sha256": "28d6f2b88b1ecc13ca8210c4bde83bd6e559c3932f479ee978fcfaa72c38e235" }, "downloads": -1, "filename": "protobuf-gis-1.0.3.tar.gz", "has_sig": false, "md5_digest": "258a2c96d47e7381dc344a6e55bb4a92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5104, "upload_time": "2017-08-13T19:49:55", "url": "https://files.pythonhosted.org/packages/28/d9/454a680442644b97851af5787f0f1a83d7a36413b5412932bf57741957f8/protobuf-gis-1.0.3.tar.gz" } ] }