{"id":16740192,"url":"https://github.com/kshitijrajsharma/orthogonalizer","last_synced_at":"2025-08-08T10:33:55.783Z","repository":{"id":189904896,"uuid":"681543048","full_name":"kshitijrajsharma/orthogonalizer","owner":"kshitijrajsharma","description":"Pip implementation for squaring/orthogonalization of polygons","archived":false,"fork":false,"pushed_at":"2023-08-22T12:53:27.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T14:55:48.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/orthogonalizer/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshitijrajsharma.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,"publiccode":null,"codemeta":null}},"created_at":"2023-08-22T08:37:14.000Z","updated_at":"2025-05-13T17:00:11.000Z","dependencies_parsed_at":"2024-10-13T00:57:04.723Z","dependency_job_id":"bd7108a2-acf8-4249-8de7-4d88aee302fc","html_url":"https://github.com/kshitijrajsharma/orthogonalizer","commit_stats":null,"previous_names":["kshitijrajsharma/orthogonalizer","krschap/orthogonalizer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kshitijrajsharma/orthogonalizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshitijrajsharma%2Forthogonalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshitijrajsharma%2Forthogonalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshitijrajsharma%2Forthogonalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshitijrajsharma%2Forthogonalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshitijrajsharma","download_url":"https://codeload.github.com/kshitijrajsharma/orthogonalizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshitijrajsharma%2Forthogonalizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269409008,"owners_count":24412135,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T00:57:01.949Z","updated_at":"2025-08-08T10:33:55.730Z","avatar_url":"https://github.com/kshitijrajsharma.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Polygon Orthogonalizer\nPip implementation for polygons of [orthogonalize-polygon](https://github.com/Mashin6/orthogonalize-polygon/tree/master) which is an improved implementation of JOSM Orthogonalize function (JOSM Q Function). Credits to all the respective involved authors\n\n## Installation\n\nYou can install OSM Conflator using pip:\n\n```shell\npip install orthogonalizer\n```\n\n## Usage\n\nHere's an example of how to use Polygon orthogonalizer in your Python code:\n\n```python\nfrom orthogonalizer import othogonalize_poly\n\ngeojson_str = '{\"type\": \"FeatureCollection\", \"features\": ... }'\n\northogonalized_poly = othogonalize_poly(geojson_str)\n\nprint(orthogonalized_poly)\n```\n\n## Options : \n\n**maxAngleChange (int, optional)**: \nangle (0,45\u003e degrees. Sets the maximum angle deviation\nfrom the cardinal direction for the segment to be still\nconsidered to continue in the same direction as the\nprevious segment. Defaults to 15.\n\n**skewTolerance (int, optional)**: \nangle \u003c0,45\u003e degrees. \nSets skew tolerance for segments that\nare at 45˚±Tolerance angle from the overal rectangular shape\nof the polygon. Usefull when preserving e.g. bay windows on a\nhouse. Defaults to 15.\n\n## Example \nInput ---\u003e Output\n![image](https://github.com/kshitijrajsharma/orthogonalizer/assets/36752999/97d2233c-c8c9-4417-80e1-16964f48383f)\n\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. When contributing to this project, please follow the Contributing Guidelines.\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 License. See the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshitijrajsharma%2Forthogonalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshitijrajsharma%2Forthogonalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshitijrajsharma%2Forthogonalizer/lists"}