{ "info": { "author": "sshuair", "author_email": "sshuair@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Multimedia :: Graphics :: Graphics Conversion", "Topic :: Scientific/Engineering :: GIS" ], "description": "## Cloud Optimized GeoTiff utility tools\n\n\n## Requirements\n- click\n- gdal\n\n## Install\n- pypi: `pip install cogeotiff`\n- source code: `python setup.py install`\n\n## Usage\n\n### Python PAI\n1. create cog file\nexample:\n```python\nfrom cogeotiff.cog import create_cog\nsrc_path = '~/path_to_image/test.tif'\ndest_path = '~/path_to_save/test.tiff.cog'\ncreate_cog(src_path, dest_path, compress='jpeg')\n```\n\n2. validate cog file\n```python\nfrom cogeotiff.validate_cogeotiff import validate_cog\ncog_path = '~/path_to_cog.tif.cog'\nresult = validate_cog(cog_path)\n```\n\n### Command tools\n1. create cog file\n```bash\nUsage: cog create [OPTIONS] SRC_PATH DST_PATH\n\nOptions:\n --overview-resampling TEXT resampling method for create pyramid default:\n nearest\n --overview-level INTEGER levels to build\n --nodata INTEGER Assign a specified nodata value to output bands.\n default: 0\n --block-size INTEGER tiled size, default: 512\n --compress TEXT compress method: JPEG,RAW,DEFLATE,LZW,WEBP,ZSTD,PACKBITS,default: raw\n --help Show this message and exit.\n```\n\n2. validate cog file\n```bash\nUsage: cog create [OPTIONS] COG_PATH \n```\n\n## Q&A\n- Q: why not use `GDAL BuildOverviews` or `Rasterio` in script?\n- A: Because for large file such as 100GB, it's take long time to generate overview and translate to tiled GeoTiff. There is no progress infomataion use `Rasterio` or `GDAL BuildOverviews` methods.\n- Q: why not use [rio-cogeo](https://github.com/cogeotiff/rio-cogeo)?\n- A: Cause it use `rasterio MemoryFile()`, when the file is too large, it will cause insufficient memory.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sshuair/cogeotiff", "keywords": "GeoTiff COG GDAL", "license": "", "maintainer": "", "maintainer_email": "", "name": "cogeotiff", "package_url": "https://pypi.org/project/cogeotiff/", "platform": "", "project_url": "https://pypi.org/project/cogeotiff/", "project_urls": { "Homepage": "https://github.com/sshuair/cogeotiff" }, "release_url": "https://pypi.org/project/cogeotiff/0.1.4/", "requires_dist": [ "click", "gdal" ], "requires_python": "", "summary": "Cloud Optimized GeoTiff utility tools.", "version": "0.1.4" }, "last_serial": 4993049, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "7bce78d269a8e9d5001f44621c0b7b9b", "sha256": "73b67c54e879e5ecb855ef2c1d51325c350fa02e14cbd82aa6fa9817666c76fc" }, "downloads": -1, "filename": "cogeotiff-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7bce78d269a8e9d5001f44621c0b7b9b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9261, "upload_time": "2019-03-06T04:24:13", "url": "https://files.pythonhosted.org/packages/db/52/7e590145b0773a03f906b9989fe549598007c0892d20b0076bcb2cf5ef3b/cogeotiff-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3def1cddcb1565d9db20ef054e488cbf", "sha256": "77c80ac2c9bbce6d11c2f75f2a25caad62c5bf03589c3307e647b2f6b86bfa59" }, "downloads": -1, "filename": "cogeotiff-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3def1cddcb1565d9db20ef054e488cbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7553, "upload_time": "2019-03-06T04:24:16", "url": "https://files.pythonhosted.org/packages/63/38/e951c963526b394cf947b5fa72d9ca3a64b47a200f9322f366044559c0ad/cogeotiff-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "cbbb5b6baa792dd71c89c152c6cd6cd1", "sha256": "90eaca6517a4574a2876140d057bcaff9934bf3e7e5ef939a116e09364d4ac33" }, "downloads": -1, "filename": "cogeotiff-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cbbb5b6baa792dd71c89c152c6cd6cd1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9473, "upload_time": "2019-03-25T09:12:03", "url": "https://files.pythonhosted.org/packages/cc/83/93fcb38c3772d29a4cfd3d9dabdd89c272a16bac35efe6b1f96807193573/cogeotiff-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "552b8892d95ea4aa1c5310157077ea4a", "sha256": "dd1d0390a5a96e4200e744e3fca6e53b499dd2a3893610cf6e750198b1091347" }, "downloads": -1, "filename": "cogeotiff-0.1.2.tar.gz", "has_sig": false, "md5_digest": "552b8892d95ea4aa1c5310157077ea4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7662, "upload_time": "2019-03-25T09:12:05", "url": "https://files.pythonhosted.org/packages/d1/45/44490cbd0af2bce9e8b5bc281a3198551273a2a869db6569afd01c5f6955/cogeotiff-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "952d42a3f0f19aa520ce123d0e482de1", "sha256": "6805d1de98394b0a3faa33f8540f4b071f6099ae0b221c209d1e87b7782b7ab7" }, "downloads": -1, "filename": "cogeotiff-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "952d42a3f0f19aa520ce123d0e482de1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9527, "upload_time": "2019-03-25T09:14:33", "url": "https://files.pythonhosted.org/packages/c0/ca/020bf30df903792e21402ad7f8ddb69b133366abcc094397c8fcda70d36d/cogeotiff-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c813178bb957853acc3314dda9900cd7", "sha256": "c1bee22399c43971dd0dfd9d4b3c630271e74d7243d4800bda3b76d9c0301379" }, "downloads": -1, "filename": "cogeotiff-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c813178bb957853acc3314dda9900cd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7670, "upload_time": "2019-03-25T09:14:38", "url": "https://files.pythonhosted.org/packages/90/e5/bd8f520a4afe732f280047076a56e07596972f460b60a456cefbad69696d/cogeotiff-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5d780554239a9732c6a504be21e99e5d", "sha256": "e3ecb4e32143041d25af16780691648018353686b8349f341a519a1f2a49a2cc" }, "downloads": -1, "filename": "cogeotiff-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "5d780554239a9732c6a504be21e99e5d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9568, "upload_time": "2019-03-27T14:11:59", "url": "https://files.pythonhosted.org/packages/3d/46/c9d15e938a0290fea5b8ca7bdab7b1a2264b2cde5444f74c4c4f97303da2/cogeotiff-0.1.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d780554239a9732c6a504be21e99e5d", "sha256": "e3ecb4e32143041d25af16780691648018353686b8349f341a519a1f2a49a2cc" }, "downloads": -1, "filename": "cogeotiff-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "5d780554239a9732c6a504be21e99e5d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9568, "upload_time": "2019-03-27T14:11:59", "url": "https://files.pythonhosted.org/packages/3d/46/c9d15e938a0290fea5b8ca7bdab7b1a2264b2cde5444f74c4c4f97303da2/cogeotiff-0.1.4-py3-none-any.whl" } ] }