{ "info": { "author": "Michael Gruber", "author_email": "michael1_gruber@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 7 - Inactive", "Intended Audience :: Other Audience", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# latlonconv\n\nA copy of the LatLon package that actually works (and does not depend on `pyproj`),\nbut has reduced functionality focusing on format conversion only:\n\n## Example\n\n```python\nimport latlonconv as ll\n\ncoord1 = ll.LatLon(32.30642, 122.61458)\ncoord2 = ll.string2latlon(\"\"\"32.30642\u00b0 N\"\"\", \"\"\"122.61458\u00b0 W\"\"\", \"\"\"D%\u00b0 %H\"\"\")\nconv1 = coord1.to_string(\"\"\"d%\u00b0 %m%' %S%\" %H\"\"\")\nconv2 = coord2.to_string(\"\"\"d%\u00b0 %m%' %S%\" %H\"\"\")\n\nprint(conv1)\nprint(conv2)\n```\n\n## Format string syntax\n\nlatlonconv.string2latlon and latlonconv.LatLon.to_string both take a formatter string which is loosely modeled on the format keyword used in datetime\u2019s strftime function. Indicator characters (e.g. H or D) are placed between a specific separator character (%) to specify the way in which a coordinate string is formatted. Possible values are as follows:\n\n> H is a hemisphere identifier (e.g. N, S, E or W)\n>\n> D is a coordinate in decimal degrees notation (e.g. 5.833)\n>\n> d is a coordinate in degrees notation (e.g. 5)\n>\n> M is a coordinate in decimal minutes notation (e.g. 54.35)\n>\n> m is a coordinate in minutes notation (e.g. 54)\n>\n> S is a coordinate in seconds notation (e.g. 28.93)\n>\n> Any other characters (e.g. \u2018 \u2018 or \u2018, \u2018) will be treated as a separator between the above components.\n>\n> All components should be separated by the % character. For example, if the coord_str is \u20185, 52, 59.88_N\u2019, the format_str would be \u2018d%, %m%, %S%_%H\u2019\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": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "latlonconv", "package_url": "https://pypi.org/project/latlonconv/", "platform": "", "project_url": "https://pypi.org/project/latlonconv/", "project_urls": null, "release_url": "https://pypi.org/project/latlonconv/1.0.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Methods for representing geographic coordinates", "version": "1.0.1" }, "last_serial": 5824505, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e8658776cc885c38cf72a5662d582324", "sha256": "04d189ed27d56bf6156a1d41d969216d3d939c2b8919f8110e20331420619b60" }, "downloads": -1, "filename": "latlonconv-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e8658776cc885c38cf72a5662d582324", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 18700, "upload_time": "2019-09-13T08:32:37", "url": "https://files.pythonhosted.org/packages/72/83/45f6c1bae52d8360241d879eee833b7a1b153f0814d0e5620c4a21599e2f/latlonconv-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c01ca9beb5a591bd2f1c003849c62edf", "sha256": "a4e4680d5374f2c046eb69044e43be5aa370e5613acffae9d91a99289107a5d9" }, "downloads": -1, "filename": "latlonconv-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c01ca9beb5a591bd2f1c003849c62edf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5657, "upload_time": "2019-09-13T08:32:40", "url": "https://files.pythonhosted.org/packages/78/ea/18a93369287d72a6aa2500edf1f00eff3d8e108be5d1931d147b3c370c2f/latlonconv-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "77fda03bc267f810ca828e3bca6dc30d", "sha256": "1ab0cd1f90611837745921d454cf69937fdf5ad6aee024a0ab52c092f88ba701" }, "downloads": -1, "filename": "latlonconv-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "77fda03bc267f810ca828e3bca6dc30d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 18701, "upload_time": "2019-09-13T08:45:20", "url": "https://files.pythonhosted.org/packages/fa/6f/ae30fa46eb4587c2f4f2b4f0df0d7c3cab2e493c5a224d8b02c57cc47941/latlonconv-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "086024e641712ea9c957f88e4b73f374", "sha256": "5eef54e8607d23cb2c847408a526ea3865bf4ee9191bc85b486c5d7e6126a9d6" }, "downloads": -1, "filename": "latlonconv-1.0.1.tar.gz", "has_sig": false, "md5_digest": "086024e641712ea9c957f88e4b73f374", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5660, "upload_time": "2019-09-13T08:45:22", "url": "https://files.pythonhosted.org/packages/5c/db/f6d3ff1b3b68aa2f2b2e9061e042d4ab3521ca5fe3ab13447c6258b66025/latlonconv-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77fda03bc267f810ca828e3bca6dc30d", "sha256": "1ab0cd1f90611837745921d454cf69937fdf5ad6aee024a0ab52c092f88ba701" }, "downloads": -1, "filename": "latlonconv-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "77fda03bc267f810ca828e3bca6dc30d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 18701, "upload_time": "2019-09-13T08:45:20", "url": "https://files.pythonhosted.org/packages/fa/6f/ae30fa46eb4587c2f4f2b4f0df0d7c3cab2e493c5a224d8b02c57cc47941/latlonconv-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "086024e641712ea9c957f88e4b73f374", "sha256": "5eef54e8607d23cb2c847408a526ea3865bf4ee9191bc85b486c5d7e6126a9d6" }, "downloads": -1, "filename": "latlonconv-1.0.1.tar.gz", "has_sig": false, "md5_digest": "086024e641712ea9c957f88e4b73f374", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5660, "upload_time": "2019-09-13T08:45:22", "url": "https://files.pythonhosted.org/packages/5c/db/f6d3ff1b3b68aa2f2b2e9061e042d4ab3521ca5fe3ab13447c6258b66025/latlonconv-1.0.1.tar.gz" } ] }