{ "info": { "author": "Richard Kim & Jenifer Cochran", "author_email": "developer.publishers@rgi-corp.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7" ], "description": "# NSG Common Library\n\nNSG common library.\n\nA Python 3 library that contains the basic objects and schemas that NSG tile\ncaches, or NSG components would need to adhere to.\n\n# Motivation\n\nWe wanted a library to contain common geospatial objects and commonly used\n functions to be used acrossed NSG python geospatial libraries and tools.\n\n## Build status\n[![pipeline status](https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/nsg-common-library/badges/master/pipeline.svg)](https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/nsg-common-library/commits/master})\n[![coverage report](https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/nsg-common-library/badges/master/coverage.svg)](https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/nsg-common-library/commits/master)\n\n\n## Sample Code\n\nExample of calculating resolution width and height:\n\n```python\nfrom nsg.common.spatial_reference_system import SpatialReferenceSystem\nfrom nsg.tile_cache.tile_scheme import calc_resolutions\n\nresolution_width, resolution_height = calc_resolutions(bounding_box=SpatialReferenceSystem.NSG_WORLD_GEODETIC.world_bounding_box,\n tile_size=(256, 256),\n zoom_level=1,\n tile_scheme=SpatialReferenceSystem.NSG_WORLD_GEODETIC.tile_scheme)\n```\n\n## Installation\npip install nsglib\n\n## Common NSG objects\n\nSome examples of NSG objects include (but not limited to):\n* SpatialReferenceSystem\n* BoundingBox\n* Coordinate\n\nThe most common *Spatial Reference Systems* that are defined are\n**EPSG:4326, EPSG:3395**, and **EPSG:3857**.\nThese Spatial Reference Systems can be easily accessed by using the Python Enum:\n `SpatialReferenceSystem.NSG_WORLD_GEODETIC`,\n `SpatialReferenceSystem.NSG_WORLD_MERCATOR`, `SpatialReferenceSystem.WEB_MERCATOR`\n\nThe *bounding box* defines an object that holds the extent information in a\nparticular Coordinate Reference System.\n\nA *Coordinate* is an geographical location on a map. They can be used for\nCoordinate Reference System coordinates or tile coordinates.\n\n## Tile Cache NSG Objects\n\nSome examples of Tile Cache objects include(but not limited to):\n* Tile\n* TileScheme\n* AbstractTileCache\n\nA *Tile* has a coordinate location (row, colum, zoom level) and a source.\nThe coordinate location describes where to place the tile.\nThe source is the tile data in bytes (the jpeg, png, or vector-tile data).\n\nA *Tile Scheme* is how the world is divided up into tiles based on zoom level.\nThere is also an implementation included called `ZoomTimesTwo` which is a tile\nscheme implementation of a common convention where a tile set's tile matrix\ndoubles width and height between successive zoom levels.\n\n*Tile Scheme* class also includes functions for calculating the resolution and\nscale denominator.\n\nAn *AbstractTileCache* are the basic functions that a tile cache should include.\nSome example tile caches are [Compact Cache V2](https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/compact-cache-python),\n[GeoPackage](add_url_2_gpkg), and [File based Cache](https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/file-tile-cache-python).\n\n## License\n\nMIT\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://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/nsg-common-library", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nsglib", "package_url": "https://pypi.org/project/nsglib/", "platform": "", "project_url": "https://pypi.org/project/nsglib/", "project_urls": { "Homepage": "https://gitlab.com/GitLabRGI/nsg/nsg-tile-cache/nsg-common-library" }, "release_url": "https://pypi.org/project/nsglib/3.0.0.0/", "requires_dist": null, "requires_python": ">3.7.0", "summary": "NSG Common Python Library", "version": "3.0.0.0", "yanked": false, "yanked_reason": null }, "last_serial": 6203732, "releases": { "1.0.0.0": [ { "comment_text": "", "digests": { "md5": "6ac0b20c5bf921c561509ac276754d5b", "sha256": "ee2fb793b7311b16508f688c3bf083a5851455a152005d3ce30f68f651a293de" }, "downloads": -1, "filename": "nsglib-1.0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ac0b20c5bf921c561509ac276754d5b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12104, "upload_time": "2019-10-22T17:22:07", "upload_time_iso_8601": "2019-10-22T17:22:07.102858Z", "url": "https://files.pythonhosted.org/packages/84/a9/ae12e1bb1d0734ebff85a23adf97b9cb39f7d9ffaba3f0114d9bb74dc3ab/nsglib-1.0.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4c5bfd7fe2cb2df093069e2f1ad96f62", "sha256": "2ab140499a3c7c2635006c977e317bdb4f6dc25d2031c34e1c07e418badcaee1" }, "downloads": -1, "filename": "nsglib-1.0.0.0.tar.gz", "has_sig": false, "md5_digest": "4c5bfd7fe2cb2df093069e2f1ad96f62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7814, "upload_time": "2019-10-22T17:22:09", "upload_time_iso_8601": "2019-10-22T17:22:09.470529Z", "url": "https://files.pythonhosted.org/packages/cf/19/24c6ab4d7381a31c89be644fd8ef62e5fb89aacb00a77dbcec114c685ea7/nsglib-1.0.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "2.0.0.0": [ { "comment_text": "", "digests": { "md5": "053b282e23f26a15033818fb0ab31b7e", "sha256": "1c2f650db5da95726eab6923a667f3c3af10f5b7aeabaec326c20cf13772331b" }, "downloads": -1, "filename": "nsglib-2.0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "053b282e23f26a15033818fb0ab31b7e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">3.7.0", "size": 12293, "upload_time": "2019-11-04T18:51:31", "upload_time_iso_8601": "2019-11-04T18:51:31.211212Z", "url": "https://files.pythonhosted.org/packages/1f/fe/aaf3161631244c48411eb91f76a6e33716659230779a800dc3e2ae4b4635/nsglib-2.0.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b3e2f4a41ee85166de2b8d3aadcdbdb5", "sha256": "4d4fab723271e773fe4cce181f2f647de8d8e640c5f49791b6e77b0907f149f8" }, "downloads": -1, "filename": "nsglib-2.0.0.0.tar.gz", "has_sig": false, "md5_digest": "b3e2f4a41ee85166de2b8d3aadcdbdb5", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.7.0", "size": 8299, "upload_time": "2019-11-04T18:51:32", "upload_time_iso_8601": "2019-11-04T18:51:32.679443Z", "url": "https://files.pythonhosted.org/packages/46/f8/50e7d42218ff7861b22fd4933baa6964907cc151e58955002da9e6dc7c81/nsglib-2.0.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "3.0.0.0": [ { "comment_text": "", "digests": { "md5": "8565746683d78682d32207b98f50837c", "sha256": "837a98e326b06b9fe2259c9f9f6584d628b9edebc822735e4cceee38d58f6b89" }, "downloads": -1, "filename": "nsglib-3.0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8565746683d78682d32207b98f50837c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">3.7.0", "size": 14618, "upload_time": "2019-11-26T20:25:49", "upload_time_iso_8601": "2019-11-26T20:25:49.107803Z", "url": "https://files.pythonhosted.org/packages/82/4e/ac26b0560b36fa88b12df9a441c38222f98d75c86f3e668b191d66715bc7/nsglib-3.0.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "0babeac52a21216101af7abffb443af4", "sha256": "1f3b4b6a9731fe613fdafe28ed1aea5c1657b90011db29d28539d353a644ba07" }, "downloads": -1, "filename": "nsglib-3.0.0.0.tar.gz", "has_sig": false, "md5_digest": "0babeac52a21216101af7abffb443af4", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.7.0", "size": 9054, "upload_time": "2019-11-26T20:25:50", "upload_time_iso_8601": "2019-11-26T20:25:50.640364Z", "url": "https://files.pythonhosted.org/packages/02/9d/a7b8d90202663c1219b6ac92c3b90c8d1e3fff3dae8a20249dc4ae2c0385/nsglib-3.0.0.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8565746683d78682d32207b98f50837c", "sha256": "837a98e326b06b9fe2259c9f9f6584d628b9edebc822735e4cceee38d58f6b89" }, "downloads": -1, "filename": "nsglib-3.0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8565746683d78682d32207b98f50837c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">3.7.0", "size": 14618, "upload_time": "2019-11-26T20:25:49", "upload_time_iso_8601": "2019-11-26T20:25:49.107803Z", "url": "https://files.pythonhosted.org/packages/82/4e/ac26b0560b36fa88b12df9a441c38222f98d75c86f3e668b191d66715bc7/nsglib-3.0.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "0babeac52a21216101af7abffb443af4", "sha256": "1f3b4b6a9731fe613fdafe28ed1aea5c1657b90011db29d28539d353a644ba07" }, "downloads": -1, "filename": "nsglib-3.0.0.0.tar.gz", "has_sig": false, "md5_digest": "0babeac52a21216101af7abffb443af4", "packagetype": "sdist", "python_version": "source", "requires_python": ">3.7.0", "size": 9054, "upload_time": "2019-11-26T20:25:50", "upload_time_iso_8601": "2019-11-26T20:25:50.640364Z", "url": "https://files.pythonhosted.org/packages/02/9d/a7b8d90202663c1219b6ac92c3b90c8d1e3fff3dae8a20249dc4ae2c0385/nsglib-3.0.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }