{"id":28956826,"url":"https://github.com/developmentseed/rio-stac","last_synced_at":"2025-06-23T21:40:57.268Z","repository":{"id":38197253,"uuid":"262387523","full_name":"developmentseed/rio-stac","owner":"developmentseed","description":"Create STAC item from raster datasets","archived":false,"fork":false,"pushed_at":"2025-04-25T16:06:36.000Z","size":10996,"stargazers_count":86,"open_issues_count":8,"forks_count":16,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-30T14:46:16.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developmentseed.org/rio-stac/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developmentseed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-08T17:34:30.000Z","updated_at":"2025-05-27T15:54:30.000Z","dependencies_parsed_at":"2024-06-18T22:32:33.454Z","dependency_job_id":"e6ec7468-f9dd-4ee6-b385-4e42a7a7474c","html_url":"https://github.com/developmentseed/rio-stac","commit_stats":{"total_commits":105,"total_committers":7,"mean_commits":15.0,"dds":"0.11428571428571432","last_synced_commit":"52a13eec0c8ad19dee904b2bc0cd529b73b95899"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/developmentseed/rio-stac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frio-stac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frio-stac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frio-stac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frio-stac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developmentseed","download_url":"https://codeload.github.com/developmentseed/rio-stac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frio-stac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261561182,"owners_count":23177544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-23T21:40:57.022Z","updated_at":"2025-06-23T21:40:57.238Z","avatar_url":"https://github.com/developmentseed.png","language":"Python","readme":"# rio-stac\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/10407788/111794250-696da080-889c-11eb-9043-5bdc3aadb8bf.png\" alt=\"rio-stac\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eCreate STAC Items from raster datasets.\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/developmentseed/rio-stac/actions?query=workflow%3ACI\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://github.com/developmentseed/rio-stac/workflows/CI/badge.svg\" alt=\"Test\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/developmentseed/rio-stac\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://codecov.io/gh/developmentseed/rio-stac/branch/main/graph/badge.svg\" alt=\"Coverage\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/rio-stac\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://img.shields.io/pypi/v/rio-stac?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypistats.org/packages/rio-stac\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://img.shields.io/pypi/dm/rio-stac.svg\" alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/developmentseed/rio-stac/blob/main/LICENSE\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/license/developmentseed/rio-stac.svg\" alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://developmentseed.github.io/rio-stac/\" target=\"_blank\"\u003ehttps://developmentseed.github.io/rio-stac/\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/developmentseed/rio-stac\" target=\"_blank\"\u003ehttps://github.com/developmentseed/rio-stac\u003c/a\u003e\n\n---\n\n`rio-stac` is a simple [rasterio](https://github.com/mapbox/rasterio) plugin for creating valid STAC items from a raster dataset. The library is built on top of [pystac](https://github.com/stac-utils/pystac) to make sure we follow the STAC specification.\n\n## Installation\n\n```bash\n$ pip install pip -U\n\n# From Pypi\n$ pip install rio-stac\n\n# Or from source\n$ pip install git+http://github.com/developmentseed/rio-stac\n```\n\n### Example\n\n```json\n// rio stac tests/fixtures/dataset_cog.tif | jq\n{\n  \"type\": \"Feature\",\n  \"stac_version\": \"1.0.0\",\n  \"id\": \"dataset_cog.tif\",\n  \"properties\": {\n    \"proj:epsg\": 32621,\n    \"proj:geometry\": {\n      \"type\": \"Polygon\",\n      \"coordinates\": [\n        [\n          [\n            373185.0,\n            8019284.949381611\n          ],\n          [\n            639014.9492102272,\n            8019284.949381611\n          ],\n          [\n            639014.9492102272,\n            8286015.0\n          ],\n          [\n            373185.0,\n            8286015.0\n          ],\n          [\n            373185.0,\n            8019284.949381611\n          ]\n        ]\n      ]\n    },\n    \"proj:bbox\": [\n      373185.0,\n      8019284.949381611,\n      639014.9492102272,\n      8286015.0\n    ],\n    \"proj:shape\": [\n      2667,\n      2658\n    ],\n    \"proj:transform\": [\n      100.01126757344893,\n      0.0,\n      373185.0,\n      0.0,\n      -100.01126757344893,\n      8286015.0,\n      0.0,\n      0.0,\n      1.0\n    ],\n    \"proj:projjson\": {\n      \"$schema\": \"https://proj.org/schemas/v0.4/projjson.schema.json\",\n      \"type\": \"ProjectedCRS\",\n      \"name\": \"WGS 84 / UTM zone 21N\",\n      \"base_crs\": {\n        \"name\": \"WGS 84\",\n        \"datum\": {\n          \"type\": \"GeodeticReferenceFrame\",\n          \"name\": \"World Geodetic System 1984\",\n          \"ellipsoid\": {\n            \"name\": \"WGS 84\",\n            \"semi_major_axis\": 6378137,\n            \"inverse_flattening\": 298.257223563\n          }\n        },\n        \"coordinate_system\": {\n          \"subtype\": \"ellipsoidal\",\n          \"axis\": [\n            {\n              \"name\": \"Geodetic latitude\",\n              \"abbreviation\": \"Lat\",\n              \"direction\": \"north\",\n              \"unit\": \"degree\"\n            },\n            {\n              \"name\": \"Geodetic longitude\",\n              \"abbreviation\": \"Lon\",\n              \"direction\": \"east\",\n              \"unit\": \"degree\"\n            }\n          ]\n        },\n        \"id\": {\n          \"authority\": \"EPSG\",\n          \"code\": 4326\n        }\n      },\n      \"conversion\": {\n        \"name\": \"UTM zone 21N\",\n        \"method\": {\n          \"name\": \"Transverse Mercator\",\n          \"id\": {\n            \"authority\": \"EPSG\",\n            \"code\": 9807\n          }\n        },\n        \"parameters\": [\n          {\n            \"name\": \"Latitude of natural origin\",\n            \"value\": 0,\n            \"unit\": \"degree\",\n            \"id\": {\n              \"authority\": \"EPSG\",\n              \"code\": 8801\n            }\n          },\n          {\n            \"name\": \"Longitude of natural origin\",\n            \"value\": -57,\n            \"unit\": \"degree\",\n            \"id\": {\n              \"authority\": \"EPSG\",\n              \"code\": 8802\n            }\n          },\n          {\n            \"name\": \"Scale factor at natural origin\",\n            \"value\": 0.9996,\n            \"unit\": \"unity\",\n            \"id\": {\n              \"authority\": \"EPSG\",\n              \"code\": 8805\n            }\n          },\n          {\n            \"name\": \"False easting\",\n            \"value\": 500000,\n            \"unit\": \"metre\",\n            \"id\": {\n              \"authority\": \"EPSG\",\n              \"code\": 8806\n            }\n          },\n          {\n            \"name\": \"False northing\",\n            \"value\": 0,\n            \"unit\": \"metre\",\n            \"id\": {\n              \"authority\": \"EPSG\",\n              \"code\": 8807\n            }\n          }\n        ]\n      },\n      \"coordinate_system\": {\n        \"subtype\": \"Cartesian\",\n        \"axis\": [\n          {\n            \"name\": \"Easting\",\n            \"abbreviation\": \"\",\n            \"direction\": \"east\",\n            \"unit\": \"metre\"\n          },\n          {\n            \"name\": \"Northing\",\n            \"abbreviation\": \"\",\n            \"direction\": \"north\",\n            \"unit\": \"metre\"\n          }\n        ]\n      },\n      \"id\": {\n        \"authority\": \"EPSG\",\n        \"code\": 32621\n      }\n    },\n    \"proj:wkt2\": \"PROJCS[\\\"WGS 84 / UTM zone 21N\\\",GEOGCS[\\\"WGS 84\\\",DATUM[\\\"WGS_1984\\\",SPHEROID[\\\"WGS 84\\\",6378137,298.257223563,AUTHORITY[\\\"EPSG\\\",\\\"7030\\\"]],AUTHORITY[\\\"EPSG\\\",\\\"6326\\\"]],PRIMEM[\\\"Greenwich\\\",0,AUTHORITY[\\\"EPSG\\\",\\\"8901\\\"]],UNIT[\\\"degree\\\",0.0174532925199433,AUTHORITY[\\\"EPSG\\\",\\\"9122\\\"]],AUTHORITY[\\\"EPSG\\\",\\\"4326\\\"]],PROJECTION[\\\"Transverse_Mercator\\\"],PARAMETER[\\\"latitude_of_origin\\\",0],PARAMETER[\\\"central_meridian\\\",-57],PARAMETER[\\\"scale_factor\\\",0.9996],PARAMETER[\\\"false_easting\\\",500000],PARAMETER[\\\"false_northing\\\",0],UNIT[\\\"metre\\\",1,AUTHORITY[\\\"EPSG\\\",\\\"9001\\\"]],AXIS[\\\"Easting\\\",EAST],AXIS[\\\"Northing\\\",NORTH],AUTHORITY[\\\"EPSG\\\",\\\"32621\\\"]]\",\n    \"datetime\": \"2023-12-08T09:30:38.153261Z\"\n  },\n  \"geometry\": {\n    \"type\": \"Polygon\",\n    \"coordinates\": [\n      [\n        [\n          -60.72634617297825,\n          72.23689137791739\n        ],\n        [\n          -52.91627525610924,\n          72.22979795551834\n        ],\n        [\n          -52.301598718454485,\n          74.61378388950398\n        ],\n        [\n          -61.28762442711404,\n          74.62204314252978\n        ],\n        [\n          -60.72634617297825,\n          72.23689137791739\n        ]\n      ]\n    ]\n  },\n  \"links\": [],\n  \"assets\": {\n    \"asset\": {\n      \"href\": \"/Users/vincentsarago/Dev/DevSeed/rio-stac/tests/fixtures/dataset_cog.tif\",\n      \"raster:bands\": [\n        {\n          \"data_type\": \"uint16\",\n          \"scale\": 1.0,\n          \"offset\": 0.0,\n          \"sampling\": \"point\",\n          \"statistics\": {\n            \"mean\": 2107.524612053134,\n            \"minimum\": 1,\n            \"maximum\": 7872,\n            \"stddev\": 2271.0065537857326,\n            \"valid_percent\": 0.00009564764936336924\n          },\n          \"histogram\": {\n            \"count\": 11,\n            \"min\": 1.0,\n            \"max\": 7872.0,\n            \"buckets\": [\n              503460,\n              0,\n              0,\n              161792,\n              283094,\n              0,\n              0,\n              0,\n              87727,\n              9431\n            ]\n          }\n        }\n      ],\n      \"eo:bands\": [\n        {\n          \"name\": \"b1\",\n          \"description\": \"gray\"\n        }\n      ],\n      \"roles\": []\n    }\n  },\n  \"bbox\": [\n    -61.28762442711404,\n    72.22979795551834,\n    -52.301598718454485,\n    74.62204314252978\n  ],\n  \"stac_extensions\": [\n    \"https://stac-extensions.github.io/projection/v1.1.0/schema.json\",\n    \"https://stac-extensions.github.io/raster/v1.1.0/schema.json\",\n    \"https://stac-extensions.github.io/eo/v1.1.0/schema.json\"\n  ]\n}\n```\n\nSee https://developmentseed.org/rio-stac/intro/ for more.\n\n## Contribution \u0026 Development\n\nSee [CONTRIBUTING.md](https://github.com/developmentseed/rio-stac/blob/main/CONTRIBUTING.md)\n\n## Authors\n\nSee [contributors](https://github.com/developmentseed/rio-stac/graphs/contributors)\n\n## Changes\n\nSee [CHANGES.md](https://github.com/developmentseed/rio-stac/blob/main/CHANGES.md).\n\n## License\n\nSee [LICENSE](https://github.com/developmentseed/rio-stac/blob/main/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmentseed%2Frio-stac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopmentseed%2Frio-stac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmentseed%2Frio-stac/lists"}