{"id":16708112,"url":"https://github.com/cyang-kth/xyconvert","last_synced_at":"2025-10-17T02:47:50.412Z","repository":{"id":62590233,"uuid":"313155326","full_name":"cyang-kth/xyconvert","owner":"cyang-kth","description":"Converting xy coordinates between WGS-84, GCJ-02 and BD-09 system","archived":false,"fork":false,"pushed_at":"2020-11-16T15:04:33.000Z","size":6,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T04:51:20.579Z","etag":null,"topics":["bd09","coordinate-conversion","gcj02","gps","numpy","wgs84","xy"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/xyconvert/","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/cyang-kth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-16T00:52:41.000Z","updated_at":"2025-03-06T07:23:06.000Z","dependencies_parsed_at":"2022-11-03T20:28:05.974Z","dependency_job_id":null,"html_url":"https://github.com/cyang-kth/xyconvert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyang-kth%2Fxyconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyang-kth%2Fxyconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyang-kth%2Fxyconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyang-kth%2Fxyconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyang-kth","download_url":"https://codeload.github.com/cyang-kth/xyconvert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244866025,"owners_count":20523450,"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":["bd09","coordinate-conversion","gcj02","gps","numpy","wgs84","xy"],"created_at":"2024-10-12T19:42:07.711Z","updated_at":"2025-10-17T02:47:50.329Z","avatar_url":"https://github.com/cyang-kth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### xyconvert\n\nThis is a python package for converting xy coordinates (in lng,lat order) in numpy array between WGS-84, GCJ-02 and BD-09 system.\n\nThe conversion in numpy is much more efficient (50-70 times speedup) compared with previous Python implementations such as [eviltransform](https://github.com/googollee/eviltransform) and [coordTransform_py](https://github.com/wandergis/coordTransform_py) that convert only a single point at each call.\n\n### Install the package\n\n```bash\npip install xyconvert\n```\n\n### Usage\n\n```python\nfrom xyconvert import gcj2wgs\nimport numpy as np\ngcj_xy = np.asarray([[104.07008157,  30.73199687],\n       [104.07008159,  30.73177709],\n       [104.06999188,  30.73147758]])\nwgs_xy = gcj2wgs(gcj_xy)\nprint wgs_xy\n'''\n[[104.06756309  30.73437796]\n [104.06756312  30.73415829]\n [104.06747357  30.73385904]]\n'''\n```\n\n### Reference\n\nThe code is partly copied/modified from https://github.com/Argons/nextlocation and https://github.com/wandergis/coordTransform_py.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyang-kth%2Fxyconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyang-kth%2Fxyconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyang-kth%2Fxyconvert/lists"}