{"id":24318237,"url":"https://github.com/rdmpage/iucn-red-list-spatial-data","last_synced_at":"2026-03-10T13:34:20.296Z","repository":{"id":142280202,"uuid":"103390770","full_name":"rdmpage/iucn-red-list-spatial-data","owner":"rdmpage","description":"Converting IUCN Red List to GeoJSON","archived":false,"fork":false,"pushed_at":"2017-10-18T11:57:22.000Z","size":842,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T18:47:54.854Z","etag":null,"topics":["biodiversity-informatics","geojson","iucn","red-list","shapefiles"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdmpage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-09-13T11:20:18.000Z","updated_at":"2019-03-21T00:46:58.000Z","dependencies_parsed_at":"2023-09-26T10:17:03.125Z","dependency_job_id":null,"html_url":"https://github.com/rdmpage/iucn-red-list-spatial-data","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"c950229ac90537bee24946cd4d336ae56d87ad97"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rdmpage/iucn-red-list-spatial-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmpage%2Fiucn-red-list-spatial-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmpage%2Fiucn-red-list-spatial-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmpage%2Fiucn-red-list-spatial-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmpage%2Fiucn-red-list-spatial-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdmpage","download_url":"https://codeload.github.com/rdmpage/iucn-red-list-spatial-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdmpage%2Fiucn-red-list-spatial-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30334689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["biodiversity-informatics","geojson","iucn","red-list","shapefiles"],"created_at":"2025-01-17T14:37:37.901Z","updated_at":"2026-03-10T13:34:20.274Z","avatar_url":"https://github.com/rdmpage.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# iucn-red-list-spatial-data\nConverting IUCN Red List to GeoJSON\n\n## Download IUCN data\nOnce you have created an account at http://www.iucnredlist.org/ you can [download data as shapefiles](http://www.iucnredlist.org/technical-documents/spatial-data).\n\n## Converting to GeoJSON\n\nFor background see [How to convert Shapefiles to GeoJSON maps for use on GitHub (and why you should)](https://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/) and [Managing GeoJSON data using GDAL](https://savaslabs.com/2015/05/25/manage-geojson.html).\n\nIUCN shapefiles can be big, and the resulting GeoJSON can be huge (for example, if a species distribution is based on geographic provinces, and the polygons follow those the geographical boundaries with a high degree of precision).\n\n### Install GDAL\n\nOn a Mac download precompiled GDAL from http://www.kyngchaos.com/software:frameworks and add \n```\nexport PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH\n```\nTo .bash_profile\n\n### Convert one file\n\nSimply use ogr2ogr:\n\n```\nogr2ogr -f GeoJson species_13418.geojson species_13418.shp\n```\n\n### Extract GeoJSON for one species from multi-species file\n\nThe GDAL utility **ogr2ogr** can be used to extract and simplify GeoJSON. For example, given the data for shrimps (FW_SHRIMP) we can extract data for *Euryrhynchus amazoniensis* like this:\n\n```\nogr2ogr -f GeoJson Euryrhynchus_amazoniensis.geojson FW_SHRIMP.shp -sql \"SELECT * FROM FW_SHRIMP WHERE binomial='Euryrhynchus amazoniensis'\" -simplify 0.1\n```\n\nNote the use of **-simplify 0.1** to simplify the polygon (without this the file is huge), and the SQL to extract just the data for one species (the species in the dataset are listed din the *.dbf file).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdmpage%2Fiucn-red-list-spatial-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdmpage%2Fiucn-red-list-spatial-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdmpage%2Fiucn-red-list-spatial-data/lists"}