Wikimedia Taiwan/Wikidata Taiwan/COSCUP 2026/Vibe the way of Using the Powerful JOSM by Scripting, Mass-modified OpenStreetMap Data
Vibe the way of Using the Powerful JOSM by Scripting, Mass-modified OpenStreetMap Data 使用強大的 JOSM - 透過 Vibe 腳本來達到批次與大量編輯開放街圖資料
[edit]- COSCUP 2026 (Q139586584) OpenStreetMap x Wikidata 開放內容議程軌
- 時間: 2026 / 08 / 09 11:00 ~ 11:30
- 地點:National Taiwan University of Science and Technology (Q699543) 412-1 教室
- COSCUP 大會官方頁面
講座介紹
[edit]- 本講座以華語(zh)發表
華語(zh)
[edit]少數而且有經驗的開放街圖圖客會用功能強大的 JOSM 來編輯,但 JOSM 的一些套件也許沒有經常更新或是說明文件並不足夠,特別是 Scripting 插件。而藉由時下流行的大語言模型,如 ChatGPT,講者能夠找出能夠運作的 Python 在 Java 下的 Jython 腳本程式碼,並且能夠當上驗證是否能運作。先從能夠輸出除錯訊息,弄出取代原先不會輸出訊息的 print 指令的函式開始,再來是撰寫出能夠直接處理 OSM 標籤的尋找與取代功能,模仿類似的編輯工具 Level0。這一場次將會分享目前講者的經驗,使用 JOSM Scripting 所遇到的困難與挑戰,如何讓 JOSM Scripting 再次可以運作。
共筆文件: https://hackmd.io/B1QoeExLze
English (en)
[edit]JOSM is a powerful editing tool used by small but experienced mappers. But there are some plugin either not actively maintained or well documents. especially the Scripting plugin. By using AI-assisted programming tools like ChatGPT, the presenter can make JOSM Script tools using Python core Jython function again, from printing debugging messages by adding a new print function to replace the non-function print. And also a find and replace script to mimic the Level0 text edit function by an external text editor. This session will share the presenter's struggle and experience of making the JOSM script plugin work again.
Github repository: https://github.com/OsmHackTW/JOSM-Scripting
Outline:
- Introduction
- Python and XML is a good pair. Why not directly edit XML using Python Beautifulsoup?
- Main Target: Taiwan's address normalization
- The 500 limit of Level0, and iD text field edit is not programmable
- Bring back print for debugging, and also fix for the JOSM API change
- The Unicode challenge
- Conclusion
講者介紹
[edit]Dennis Raylin Chen
[edit]
主辦社群
[edit]- 大會主辦團隊:COSCUP 開源人年會