Skip to content

Conversation

@daohoangson
Copy link
Owner

@daohoangson daohoangson commented Apr 20, 2023

Our GIS dataset is incomplete because the source only provides data up to level 2 entities. This PR aims to replace the official data source with OSM. The idea is to download the Vietnam file from geofabrik.de then map each OSM relation with an entity using our own parser module.

Unfortunately, the OSM data appears to have some inconsistency, I'm submitting edits to OSM to rectify those https://www.openstreetmap.org/user/Dao%20Hoang%20Son/history

Working with the Vietnam OSM community to update data for this PR, in progress Google Docs at https://docs.google.com/spreadsheets/d/1ee0BJ_5YoERbxBPm3nTj82FuQsLOvBwsAgKGxA0QiDA/

@vercel
Copy link

vercel bot commented Apr 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dvhcvn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 5:54pm

@daohoangson
Copy link
Owner Author

daohoangson commented Apr 20, 2023

001 "Quận Ba Đình" drawn together. Red = existing official data. Green = new OSM data. Green = existing official data. Red = new OSM data.

Screen Shot 2023-04-20 at 16 54 36

Repository owner deleted a comment from sonarqubecloud bot Sep 28, 2023
Comment on lines +10 to +49
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
submodules: recursive

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ^1.21.0
- run: go run ./downloader/03_osm.go ./downloader/osm

- name: Setup Bun
uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
- name: Build demo/parser CLI
run: bun install && npm run bun:build
working-directory: demo/parser
- run: php transformers/osm/split.php | tee split.log

- name: Prepare GitHub comment
id: comment
run: printf 'BODY<<EOF\n%s\nEOF\n' "$(cat split.log)" >> $GITHUB_OUTPUT
- name: Post GitHub comment
uses: daohoangson/comment-on-github@35b21121fdbadf807678bec8210cdd7f22a934fe # v2.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: |
${{ github.sha }}

```
${{ steps.comment.outputs.BODY }}
```
fingerprint: "### Statistics"
replace: please

- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
path: |
data/osm.csv
downloader/osm/working.json

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
@github-actions
Copy link

Statistics

3f7fe26

Tỉnh Thái Bình: 1+8+0 of 251 = 3.59%
Tỉnh Yên Bái: 1+9+0 of 178 = 5.62%
Tỉnh Phú Thọ: 1+13+0 of 221 = 6.33%
Tỉnh Cao Bằng: 1+10+0 of 172 = 6.40%
Tỉnh Sơn La: 1+12+1 of 213 = 6.57%
Tỉnh Hoà Bình: 1+10+0 of 162 = 6.79%
Tỉnh Quảng Ngãi: 1+13+0 of 184 = 7.61%
Tỉnh Gia Lai: 1+17+0 of 236 = 7.63%
Tỉnh Bắc Kạn: 1+8+0 of 117 = 7.69%
Tỉnh Phú Yên: 1+9+0 of 116 = 8.62%
Tỉnh Vĩnh Phúc: 1+9+2 of 131 = 9.16%
Tỉnh Hà Nam: 1+6+3 of 105 = 9.52%
Tỉnh Điện Biên: 1+10+3 of 140 = 10.00%
Tỉnh Hà Giang: 1+11+10 of 205 = 10.73%
Tỉnh Hà Tĩnh: 1+12+12 of 223 = 11.21%
Tỉnh Nghệ An: 1+20+33 of 433 = 12.47%
Tỉnh Quảng Trị: 1+10+6 of 130 = 13.08%
Tỉnh Quảng Nam: 1+17+15 of 252 = 13.10%
Tỉnh Kon Tum: 1+10+4 of 113 = 13.27%
Tỉnh Lạng Sơn: 1+11+18 of 206 = 14.56%
Tỉnh Lào Cai: 1+9+15 of 161 = 15.53%
Tỉnh Bắc Giang: 1+10+23 of 206 = 16.50%
Tỉnh Hải Dương: 1+12+24 of 220 = 16.82%
Tỉnh Quảng Bình: 1+8+17 of 154 = 16.88%
Tỉnh Hưng Yên: 1+10+15 of 150 = 17.33%
Tỉnh Bình Định: 1+11+17 of 167 = 17.37%
Tỉnh Quảng Ninh: 1+13+23 of 185 = 20.00%
Tỉnh Thanh Hóa: 1+26+93 of 576 = 20.83%
Tỉnh Ninh Bình: 1+7+23 of 133 = 23.31%
Tỉnh Thái Nguyên: 1+9+34 of 182 = 24.18%
Thành phố Huế: 1+9+33 of 144 = 29.86%
Tỉnh Lai Châu: 1+8+43 of 115 = 45.22%
Tỉnh Nam Định: 1+9+80 of 185 = 48.65%
Tỉnh Tuyên Quang: 1+7+65 of 145 = 50.34%
Tỉnh Khánh Hòa: 1+9+65 of 142 = 52.82%
Thành phố Hà Nội: 1+30+444 of 557 = 85.28%
Tỉnh Đắk Lắk: 1+15+163 of 196 = 91.33%
Tỉnh Lâm Đồng: 1+10+137 of 152 = 97.37%
Thành phố Hồ Chí Minh: 1+22+270 of 296 = 98.99%
Thành phố Hải Phòng: 1+15+166 of 183 = 99.45%
Thành phố Đà Nẵng: 1+8+47 of 56 = 100.00%
Tỉnh Ninh Thuận: 1+7+62 of 70 = 100.00%
Tỉnh Bạc Liêu: 1+7+64 of 72 = 100.00%
Tỉnh Đắk Nông: 1+8+71 of 80 = 100.00%
Tỉnh Hậu Giang: 1+8+75 of 84 = 100.00%
Tỉnh Bà Rịa - Vũng Tàu: 1+7+77 of 85 = 100.00%
Thành phố Cần Thơ: 1+9+80 of 90 = 100.00%
Tỉnh Bình Dương: 1+9+91 of 101 = 100.00%
Tỉnh Tây Ninh: 1+9+94 of 104 = 100.00%
Tỉnh Cà Mau: 1+9+100 of 110 = 100.00%
Tỉnh Vĩnh Long: 1+8+102 of 111 = 100.00%
Tỉnh Trà Vinh: 1+9+104 of 114 = 100.00%
Tỉnh Sóc Trăng: 1+11+108 of 120 = 100.00%
Tỉnh Bình Phước: 1+11+111 of 123 = 100.00%
Tỉnh Bắc Ninh: 1+8+121 of 130 = 100.00%
Tỉnh Bình Thuận: 1+10+121 of 132 = 100.00%
Tỉnh Đồng Tháp: 1+12+141 of 154 = 100.00%
Tỉnh Bến Tre: 1+9+148 of 158 = 100.00%
Tỉnh Kiên Giang: 1+15+143 of 159 = 100.00%
Tỉnh An Giang: 1+11+155 of 167 = 100.00%
Tỉnh Đồng Nai: 1+11+159 of 171 = 100.00%
Tỉnh Tiền Giang: 1+11+164 of 176 = 100.00%
Tỉnh Long An: 1+15+186 of 202 = 100.00%
Việt Nam: 63+696+4381 of 10806 = 47.57%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants