Hsieh Chin Fan (Pham)
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- type: slide --- ## 淺談開放街圖(OpenStreetMap)<br>及其生態系 --- <!-- .slide: data-background="#FFFFFF" --> ### About me <img width="300px" src="https://hackmd.io/_uploads/S1sB6N89h.png"> - 謝晉凡(typebrook) - OSM, 登山, Unix - 曾任究心公益科技(Android) - 待業中 --- # The Basics --- ## Compare to Google Maps ---- ## 軟體資源有幾個層次 - 原始資料(從現實世界取得的資訊) - 服務(API、加值過後的資料) - 產品(最終使用到的軟體) ---- ## Google Map 是「產品」 - ~~原始資料~~(你接觸不到) - 服務 - Map SDK - POI/Navigation API - 產品 - Google 地圖: www.google.com/maps/ - 我的地圖 - Android/iOS: 地圖 - Google Earth ---- ## OSM 是「資料庫」 - [ 原始資料 ](https://planet.openstreetmap.org/pbf/planet-230417.osm.pbf.torrent) - 使用開放資料庫授權 - 服務 - [圖磚 API](http://b.tile.openstreetmap.org/15/27430/14142.png) - [資料庫 API](https://www.openstreetmap.org/api/0.6/node/3874898356) - ~~產品~~ --- ## Everyone owns OSM - 一份地理資料集/庫,有制度、有社群 - 使用 ODbL 授權 - 由 OSMF (開放街圖基金會) 保護、推廣、支持 **但不擁有** --- ## How it works? - Postgres: https://wiki.openstreetmap.org/wiki/Database - Budget: https://wiki.osmfoundation.org/wiki/Board/Minutes/2023-02/Budget ---- <!-- .slide: data-background="#FFFFFF" --> ![](https://wiki.openstreetmap.org/w/images/2/27/OSM_Components.svg) --- ## Why it rocks? - Community Driven, no one dominates - [ODbL](https://wiki.openstreetmap.org/wiki/Legal_FAQ) - [使用案例](https://hackmd.io/@osm-tw/rkhoFl9jO#/5) --- # 資料長什麼樣? --- ## OSM 只包含三 | 種類 | id | tag | 地理資訊 | |:--------:|:---:|:---:|:----------:| | node | 有 | 有 | 座標 | | way | 有 | 有 | nodes | | relation | 有 | 有 | ways/nodes | --- ## 取得資料 - 好想工作室 https://openstreetmap.org/node/7602886831 - XML格式 (試著加上.json) https://openstreetmap.org/api/0.6/node/7602886831 - L棟倉庫創意生活館 https://openstreetmap.org/api/0.6/way/204493492 - 公園里 https://openstreetmap.org/api/0.6/relation/3756152 ---- ## 依照條件取得資料 - 依照地名/關鍵字: osm.org https://www.openstreetmap.org/search?query= - tag 統計: taginfo http://taginfo.openstreetmap.org/ - 依照 type/tag: Overpass https://overpass-turbo.eu/ - 依照貢獻方式: OSM Change Analyzer https://osmcha.mapbox.com/ - ## 取得整份資 - Planet https://planet.openstreetmap.org/pbf - Extract http://download.geofabrik.de/asia/taiwan-latest.osm.pbf ---- ## 自行分析資料 - [GDAL](https://gdal.org/drivers/vector/osm.html) - 使用 ogr2ogr 轉換格式 - 使用 SQL 語句進行篩選 - [osm-c-tools](https://github.com/ramunasd/osmctools) - osmconvert 轉換格式 - osmfilter 進行篩選 - [osmium](https://osmcode.org/osmium-tool/) - 直接進行格式轉換和篩選 --- ## 如何使用? 切換到 OSM 生態系 ---- ## Why? 別跟錢錢過不去! ---- [開發口罩地圖 他收60萬帳單驚呆了](https://tw.news.yahoo.com/%E9%96%8B%E7%99%BC%E5%8F%A3%E7%BD%A9%E5%9C%B0%E5%9C%96-%E4%BB%96%E6%94%B660%E8%90%AC%E5%B8%B3%E5%96%AE%E9%A9%9A%E5%91%86%E4%BA%86-132018239.html) ![](https://s.yimg.com/ny/api/res/1.2/bM.2dxkEyOo.kJ8gPlo3xA--/YXBwaWQ9aGlnaGxhbmRlcjt3PTk2MDtoPTU0MDtjZj13ZWJw/https://media.zenfs.com/ko/setn.com.tw/742cd7a82b73c857e84f26cf81ae4b37) --- ## 模式1<br>底圖 + 資料 ---- ### Case 展示點/線/面資料 [口罩地圖](https://kiang.github.io/pharmacies/) ![](https://hackmd.io/_uploads/Bkh3jV8c2.png) ---- ## 使用相關圖磚服務 - openstreetmap.org - OSM WIKI - [Ready to use](https://wiki.openstreetmap.org/wiki/Using_OpenStreetMap#Ready-made_online_maps) - [Tile Provider](https://wiki.openstreetmap.org/wiki/Tiles#Tile_providers) - [Maptiler](https://www.maptiler.com/data/pricing/) - [Stamen](https://stamen.com/) ---- ## 使用相關框架 - Switch to OSM - https://switch2osm.org/the-basic - Integrate OSM by default - [Leaflet](https://leafletjs.com/examples/quick-start/) - [Openlayers](https://openlayers.org/en/latest/examples/simple.html) - [Maplibre](https://maplibre.org/) - [Mapzen/tangram](https://www.mapzen.com/) --- ## 模式2<br>在圖磚中塞入向量資料 ---- ![](https://hackmd.io/_uploads/H1hTtXLqh.png) ---- ### Case: 自由變換使用語言 [Example](https://documentation.maptiler.com/hc/en-us/articles/4405445343889-How-to-set-the-language-for-your-map) ![](https://hackmd.io/_uploads/B1aKnQU9n.png) ---- ### [MVT (Mapbox Vector Tile)](https://docs.mapbox.com/help/glossary/vector-tiles/): - 使用 [Protobuffer](https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto) 格式來紀錄地理資料 - Tile -> Layer -> Feature - 由 Schema 決定儲存的資料 - [Vector Tile Provider](https://wiki.openstreetmap.org/wiki/Vector_tiles#Providers) - 依照框架調整渲染方式: - [Mapbox/Maplibre style spec](https://maplibre.org/maplibre-style-spec/) - [Trangram Scene FIle](https://tangrams.readthedocs.io/en/main/) - 使用線上編輯器調整樣式: - [Maputnik](https://maputnik.github.io/editor/) - [Maptiler](https://cloud.maptiler.com/maps/editor) --- ## 模式3<br>擁有自己的圖磚服務! ---- ### 想像一下,在底圖以外<br>要呈現的資料有上百萬個! ---- ### Case: [台電電桿品質檢視](https://lists.openstreetmap.org/pipermail/talk-tw/2021-October/001463.html) - [頁面連結](https://topo.tw/osm/taipower-import.html) ![](https://hackmd.io/_uploads/ryfVJNL5h.png) ---- ### [Brandon Liu](https://coscup.org/2023/zh-TW/session/TKMDCL) COSCUP 2023 (07/30) ![](https://pbs.twimg.com/media/F0lLlw5aUAES3IM.jpg:large) ---- ### PMTiles and OSMExpress - [OSMExpress](https://github.com/protomaps/OSMExpress) - 使用單一檔案提供查找 - S2 Geometry: 快速產生地理搜尋結果 - [可以提供快速切片服務](https://app.protomaps.com/downloads/small_map) - [PMTiles](https://protomaps.com/docs/pmtiles) - 使用單一檔案提供 Tile Service - S3 friendly! low-cost, zero-maintenance! --- ## 其它應用方式 - 資料庫 - [imposm](https://imposm.org) - 產生向量圖磚 - [OpenMapTiles](https://openmaptiles.org) - [tilemaker](https://tilemaker.org/) - Terrain RGB - [3D 地型](https://osmhacktw.github.io/terrain-rgb/3d.html) - [等高線](https://onthegomap.github.io/maplibre-contour) --- ## 手機/電腦端 - Mapbox/Maplibre/Maptiler SDK - 需要更加考慮離線方案 - rudymap.tw ! --- ## Contritubion 增刪~~查~~改

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully