{"id":13856720,"url":"https://github.com/mzucker/maptrace","last_synced_at":"2025-10-05T18:46:35.648Z","repository":{"id":215198359,"uuid":"131884482","full_name":"mzucker/maptrace","owner":"mzucker","description":"Produce watertight polygonal vector maps by tracing raster images","archived":false,"fork":false,"pushed_at":"2021-10-11T21:42:35.000Z","size":1134,"stargazers_count":122,"open_issues_count":5,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-01-25T00:16:08.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mzucker.github.io/2018/05/14/maptrace.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzucker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2018-05-02T17:30:05.000Z","updated_at":"2024-04-14T17:56:06.809Z","dependencies_parsed_at":null,"dependency_job_id":"587c8a5a-5bb7-45d0-b4db-832d5e1bcb7c","html_url":"https://github.com/mzucker/maptrace","commit_stats":null,"previous_names":["mzucker/maptrace"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzucker%2Fmaptrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzucker%2Fmaptrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzucker%2Fmaptrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzucker%2Fmaptrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzucker","download_url":"https://codeload.github.com/mzucker/maptrace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzucker%2Fmaptrace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259085490,"owners_count":22803208,"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":"2024-08-05T03:01:10.535Z","updated_at":"2025-10-05T18:46:35.529Z","avatar_url":"https://github.com/mzucker.png","language":"Python","funding_links":[],"categories":["Python","Software"],"sub_categories":["Vector Creation"],"readme":"# maptrace\n\nProduce watertight polygonal vector maps by tracing raster images.\n\n  - THIS IS NOT A GIS TOOL (the output is not georeferenced)\n\n  - DO NOT USE THIS TOOL TO CIRCUMVENT COPYRIGHT RESTRICTIONS ON\n    EXISTING MAPS (you will be judged in the next life)\n  \n  - DO NOT USE THIS TOOL ON MULTI-MEGAPIXEL IMAGES (because loops\n    are really slow in Python)\n    \nOn the other hand, it might come in handy to generate crisp display\nimages for presentations/articles from raster images you created\nyourself.\n\n## Requirements\n\n - Python 3\n - Pillow 8.3.1 or higher\n - Numpy 1.24 or higher\n - Scipy 1.9 or higher\n - Scikit-image 0.19.0 or higher\n\n## Image copyrights\n\nThe files in the [`images`](/images) directory are licensed as follows:\n\n  - [`pa-2012-pres.png`](images/pa-2012-pres.png) [[source]](https://commons.wikimedia.org/wiki/File:Pennsylvania-2012_presidential_election-by_county.PNG), license [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/deed.en)\n  \n - [`pa-counties.png`](images/pa-counties.png) [[source]](https://commons.wikimedia.org/wiki/File:US_Census_Bureau_Pennsylvania_County_Map.png), license [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/deed.en)\n \n - [`birds-head.png`](images/birds-head.png) adapted by E. Gasser from an unpublished map by [sil.org](https://www.sil.org/), all rights reserved\n\nMaps created by `maptrace.py` from these input images (including the respective outputs in the `examples` directory) shall be considered derivative works for copyright purposes.\n\n## Examples\n\nThe images in the [`examples`](/examples) directory were created by running the following commands:\n\n    python maptrace.py -c images/pa-2012-pres.png -f open:cross,1 -n2\n    python maptrace.py images/pa-counties.png -m 1000 -e1.42 -n4 -b4\n    python maptrace.py -c images/birds-head.png -C8 -m40 -n8 -q5 -s8 -b16 -f dilate:box,2\n\n(The last command might take a few minutes.)\n\n## Software license\n\nThe `maptrace.py` program itself is provided under the [MIT license](/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzucker%2Fmaptrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzucker%2Fmaptrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzucker%2Fmaptrace/lists"}