{ "info": { "author": "Jonathan Bouzekri", "author_email": "jonathan.bouzekri@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: GIS", "Topic :: Utilities" ], "description": "GmAlt HGT file parser\n=====================\n\n.. image:: https://travis-ci.org/gmalt/hgtparser.svg?branch=master\n :target: https://travis-ci.org/gmalt/hgtparser\n\nIntroduction\n------------\n\nThis package provides a class to parse and iterate over HGT file. \nIt should support SRTM1 and SRTM3 formats but I must confess having only worked with SRTM3 for now.\n\nInstallation\n------------\n\n.. code:: shell\n\n pip install gmalthgtparser\n\nThis is compatible python 2.7, 3.4, 3.5 and 3.6.\n\nUsage\n-----\n\nImport the parser :\n\n.. code:: python\n\n >>> from gmalthgtparser import HgtParser\n\nGet the elevation of a coordinate inside a file\n\n.. code:: python\n\n >>> with HgtParser('/tmp/N00E010.hgt') as parser:\n ... alt = parser.get_elevation((1.0001, 10.0001)) # (alt, lng)\n ... # return a tuple (line index from the top, column index from the left, elevation in meters)\n ... print(alt)\n ...\n (0, 0, 57)\n\nIterate over all the elevation values inside a file.\n\n.. code:: python\n\n >>> with HgtParser('/tmp/N00E010.hgt') as parser:\n ... for elev_value in parser.get_value_iterator():\n ... # each value is a tuple (zero based line number, zero based column number, zero based index, square corners of the elevation value, elevation value)\n ... print(elev_value)\n ... break\n ...\n (0, 0, 0, ((0.9995833333333334, 9.999583333333334), (1.0004166666666667, 9.999583333333334), (1.0004166666666667, 10.000416666666666), (0.9995833333333334, 10.000416666666666)), 57)\n\nIterate over square of elevation values inside a file.\n\n.. code:: python\n\n >>> with HgtParser('/tmp/N00E010.hgt') as parser:\n ... for elev_value in parser.get_sample_iterator(50, 50): # (width, height)\n ... # each value is a tuple (zero based line number of top left corner, zero based column number of top left corner, zero based index of top left corner, square corners position, list of all elevation values in square line per line)\n ... print(elev_value[:-1])\n ... # print number of lines in elevation values list and number of column in each line and the first elevation value\n ... print(len(elev_value[4]), len(elev_value[4][0]), elev_value[4][0][0])\n ... break\n ...\n (0, 0, 0, (0.95875, 9.999583333333334), (1.0004166666666667, 9.999583333333334), (1.0004166666666667, 10.04125), (0.95875, 10.04125))\n (50, 50, 57)\n\nRelease\n-------\n\nJust for me to remember\n\n.. code:: shell\n\n # Increase version number and tag repository\n rm -rf gmalthgtparser.egg-info/\n python setup.py register -r pypitest\n python setup.py sdist bdist_egg bdist_wheel upload -r pypitest\n # check installation in a custom venv\n mkdir tmp\n cd tmp\n virtualenv venv\n . venv/bin/activate\n pip install -i https://testpypi.python.org/pypi gmalthgtparser\n python\n from gmalthgtparser import HgtParser\n # Then push to production\n python setup.py register -r pypi\n python setup.py sdist bdist_egg bdist_wheel upload -r pypi", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/gmalt/hgtparser", "keywords": "parser,hgt,srtm,file", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "gmalthgtparser", "package_url": "https://pypi.org/project/gmalthgtparser/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gmalthgtparser/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/gmalt/hgtparser" }, "release_url": "https://pypi.org/project/gmalthgtparser/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Parse HGT files", "version": "1.1.0" }, "last_serial": 2924694, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d952430c0862d30b8d9cdb5bc558ec55", "sha256": "4b9a91c0bc651f033dcdf40c22952b2b349543acd281d13116fb5ddc0a78fcab" }, "downloads": -1, "filename": "gmalthgtparser-1.0.0-py2.7.egg", "has_sig": false, "md5_digest": "d952430c0862d30b8d9cdb5bc558ec55", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11582, "upload_time": "2017-06-02T20:28:41", "url": "https://files.pythonhosted.org/packages/bd/0e/2b971cfe3356dfdf5cba762ebf4abc255c5ae594079b7be82079abf619bf/gmalthgtparser-1.0.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "797a0fcfb02fb704fb3dc423253df11b", "sha256": "6823d3c8919851ecbfe390a7e0393b50cdca33696d921be3687a00a8470858fd" }, "downloads": -1, "filename": "gmalthgtparser-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "797a0fcfb02fb704fb3dc423253df11b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7692, "upload_time": "2017-06-02T20:28:44", "url": "https://files.pythonhosted.org/packages/ab/06/9c2ee900994d19fbd8a3c9234e923263e391a63719b6816591775f20674f/gmalthgtparser-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aea94be755791c7f5756957e5fb16b36", "sha256": "0d0ae21104d3108f4aa1dd0a37683b391b2d13b202ff30db2293596cdd3557d5" }, "downloads": -1, "filename": "gmalthgtparser-1.0.0.tar.gz", "has_sig": false, "md5_digest": "aea94be755791c7f5756957e5fb16b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6468, "upload_time": "2017-06-02T20:28:39", "url": "https://files.pythonhosted.org/packages/d0/0a/1e825d4483b47c4d7bcd8ec932474a2d79fb418d124a6f0aedc8db343ada/gmalthgtparser-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "1700f516ae902447edd12e8b6353d3fe", "sha256": "95caabd4030b6986acd78cd133a694ac45314fa5d529e7043ab05693c95ab5fe" }, "downloads": -1, "filename": "gmalthgtparser-1.1.0-py2.7.egg", "has_sig": false, "md5_digest": "1700f516ae902447edd12e8b6353d3fe", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11980, "upload_time": "2017-06-04T17:32:20", "url": "https://files.pythonhosted.org/packages/df/f2/d87aba695574d0c50f20c4ea916aa846fb9c97c3066b416e38b6657014f9/gmalthgtparser-1.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e4db6cbf1e48bfc2b17aebc18f1e0e70", "sha256": "351db8e6d1e94820be27c7bf27f9d91f1d8607795456d134734d962df88f91ab" }, "downloads": -1, "filename": "gmalthgtparser-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e4db6cbf1e48bfc2b17aebc18f1e0e70", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8343, "upload_time": "2017-06-04T17:32:22", "url": "https://files.pythonhosted.org/packages/a7/76/d60bf0ae8b4b2c0fb62bf900e91020ced9aa0a7158f5215806a230322dd6/gmalthgtparser-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6e501eee1dd381244325a9c614672cf4", "sha256": "5eee11cd0096fd5e5aceaefc785b994446752b6ff0bbb049ce95e2a422c0fd79" }, "downloads": -1, "filename": "gmalthgtparser-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6e501eee1dd381244325a9c614672cf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7253, "upload_time": "2017-06-04T17:32:18", "url": "https://files.pythonhosted.org/packages/15/00/e742396a1bf129dd0e44d0e1f83c1aeb688e0cc1ecd4f0a810a3a578ef74/gmalthgtparser-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1700f516ae902447edd12e8b6353d3fe", "sha256": "95caabd4030b6986acd78cd133a694ac45314fa5d529e7043ab05693c95ab5fe" }, "downloads": -1, "filename": "gmalthgtparser-1.1.0-py2.7.egg", "has_sig": false, "md5_digest": "1700f516ae902447edd12e8b6353d3fe", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11980, "upload_time": "2017-06-04T17:32:20", "url": "https://files.pythonhosted.org/packages/df/f2/d87aba695574d0c50f20c4ea916aa846fb9c97c3066b416e38b6657014f9/gmalthgtparser-1.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e4db6cbf1e48bfc2b17aebc18f1e0e70", "sha256": "351db8e6d1e94820be27c7bf27f9d91f1d8607795456d134734d962df88f91ab" }, "downloads": -1, "filename": "gmalthgtparser-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e4db6cbf1e48bfc2b17aebc18f1e0e70", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8343, "upload_time": "2017-06-04T17:32:22", "url": "https://files.pythonhosted.org/packages/a7/76/d60bf0ae8b4b2c0fb62bf900e91020ced9aa0a7158f5215806a230322dd6/gmalthgtparser-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6e501eee1dd381244325a9c614672cf4", "sha256": "5eee11cd0096fd5e5aceaefc785b994446752b6ff0bbb049ce95e2a422c0fd79" }, "downloads": -1, "filename": "gmalthgtparser-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6e501eee1dd381244325a9c614672cf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7253, "upload_time": "2017-06-04T17:32:18", "url": "https://files.pythonhosted.org/packages/15/00/e742396a1bf129dd0e44d0e1f83c1aeb688e0cc1ecd4f0a810a3a578ef74/gmalthgtparser-1.1.0.tar.gz" } ] }