{"id":50329233,"url":"https://github.com/buildingdata/city-center","last_synced_at":"2026-05-29T08:32:38.027Z","repository":{"id":349958293,"uuid":"1204668217","full_name":"buildingdata/city-center","owner":"buildingdata","description":"中国城市中心原点","archived":false,"fork":false,"pushed_at":"2026-04-08T08:39:24.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T10:27:49.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/buildingdata.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T08:08:38.000Z","updated_at":"2026-04-08T08:39:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/buildingdata/city-center","commit_stats":null,"previous_names":["buildingdata/city-center"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/buildingdata/city-center","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildingdata%2Fcity-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildingdata%2Fcity-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildingdata%2Fcity-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildingdata%2Fcity-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildingdata","download_url":"https://codeload.github.com/buildingdata/city-center/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildingdata%2Fcity-center/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33644305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":"2026-05-29T08:32:33.769Z","updated_at":"2026-05-29T08:32:38.013Z","avatar_url":"https://github.com/buildingdata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# City Center PDF to Excel\n\n这个项目会读取根目录下的 `cityCenter.pdf`，提取 PDF 中的城市中心点经纬度，并生成一个 Excel 文件：`city_center_output.xlsx`。\n\n## 环境要求\n\n- Python `3.12`\n- `uv`\n\n## 安装依赖\n\n```bash\nuv sync\n```\n\n## 运行方式\n\n```bash\nuv run python main.py\n```\n\n## 输出文件\n\n运行完成后会在项目根目录生成：\n\n- `city_center_output.xlsx`\n\n其中包含两个工作表：\n\n- `Sheet1`\n  - 仅包含指定城市\n  - 列顺序为：`城市`、`经度`、`纬度`、`瓦片`、`UTM`\n  - 如果指定城市不在 PDF 提取结果中，则该行保留城市名，其余列留空\n\n- `Sheet2`\n  - 包含从 `cityCenter.pdf` 中实际提取出的全部条目\n  - 列顺序为：`城市`、`经度`、`纬度`、`瓦片`、`UTM`\n\n## 字段规则\n\n- `UTM`\n  - 按 `WGS 1984 UTM Zone` 的分区号计算\n  - 输出格式为 `分区号 + 半球`，例如：`49N`\n\n- `瓦片`\n  - 使用 `5° × 5°` 瓦片命名\n  - 格式为：`{e/w}{lon_min}_{n/s}{lat_max}_{e/w}{lon_max}_{n/s}{lat_min}`\n  - 经度固定为 `3` 位，例如：`e070`\n  - 纬度固定为 `2` 位，例如：`n05`、`n00`\n  - 例如西安：`e105_n35_e110_n30`\n  - 例如经纬度落在东经 `125` 至 `130`、北纬 `05` 至 `10` 的瓦片可表示为：`e125_n10_e130_n05`\n\n## 样式说明\n\n生成的 Excel 工作簿统一使用字体：`等线`。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildingdata%2Fcity-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildingdata%2Fcity-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildingdata%2Fcity-center/lists"}