如何在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:
- Open the HOT Export Tool and define your target area.
- Switch to the YAML tab in the tool's interface.
- Replace the default YAML content with the code above.
- Proceed with your export—this will pull every single OSM element in your selected region.
内容的提问来源于stack exchange,提问作者Taylor Rulien
相关产品推荐
相关产品推荐

