org.openstreetmap.atlas.utilities.command.subcommands.AtlasSearchCommandExamplesSection.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
Display all features in an atlas:
#$ find foo.atlas --all
Display all edges in an atlas:
#$ find foo.atlas --type EDGE
Find features with Atlas ID 123 or 456 in an atlas:
#$ find foo.atlas --id 123,456
Find all coastline features in a group of atlases on your desktop:
#$ find ~/Desktop/*.atlas --taggableFilter='natural->coastline'
In a directory of atlases, find all entities that are members of relation with ID 1:
#$ find ~/my-atlases/*.atlas --predicate 'e.relations().collect { it.getIdentifier() }.contains(1L)'
Find all features whose geometry matches some WKTs and also contain a 'population' tag
#$ find foo.atlas --geometry='POINT (0 0):POINT (1 1)' --taggableFilter='population->*'
Find features with OSM ID 123, then collect all containing atlases and save with MultiAtlas:
#$ find ~/Desktop/*.atlas --osmid 123 --collect-matching
Find all roads that lie withing a given bounding box:
#$ find foo.atlas --bounding-polygon='POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))' --taggableFilter='highway->*'
Find all relations that contain all of some given members:
#$ find foo.atlas --and-relation-members 'LINE,1234,*;AREA,456,role1'
Find all relations that contain a member node or edge with role 'via':
#$ find foo.atlas --relation-members 'NODE,*,via;EDGE,*,via'