You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在YAML中实现全选?适配HOT Export Tool导出OSM数据

How to "Select All" OSM Data in HOT Export Tool Using YAML

Hey there! Since you're new to YAML and need to export all OSM data for your selected area via the HOT Export Tool, here's a straightforward YAML configuration that mimics a "select all" option—covering every type of feature (tagged and untagged):

layers:
  - id: all_point_features
    type: point
    tags:
      - key: '*'
        value: '*'
    untagged: true
  - id: all_line_features
    type: line
    tags:
      - key: '*'
        value: '*'
    untagged: true
  - id: all_polygon_features
    type: polygon
    tags:
      - key: '*'
        value: '*'
    untagged: true

Let me break this down for you (since you're new to YAML):

  • layers: This is a list of feature groups we want to export. We've split them by geometry type (points, lines, polygons) to cover every possible OSM element.
  • id: Just a custom name for each layer—you can change these to anything that makes sense to you.
  • type: Specifies the geometry type of the features in the layer:
    • point: Covers all standalone OSM nodes (like street lamps, benches)
    • line: Covers linear features (roads, rivers, railways)
    • polygon: Covers area features (buildings, parks, lakes)
  • tags: '*': This tells the tool to include any feature with any tag (no matter what key/value pair it has).
  • untagged: true: Critical for grabbing features that don't have any tags at all (yes, those exist in OSM!)—this ensures nothing gets left out.

How to use this:

  1. Open the HOT Export Tool and define your target area.
  2. Switch to the YAML tab in the tool's interface.
  3. Replace the default YAML content with the code above.
  4. Proceed with your export—this will pull every single OSM element in your selected region.

内容的提问来源于stack exchange,提问作者Taylor Rulien

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:11:46