Skip to main content

Questions tagged [osmfilter]

osmfilter is a command line tool used to filter OpenStreetMap data files for specific tags.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

clip .o5m dataset with commandline tools instead within the GIS software

I work with statewide OSM datasets (retrieved form geofabrik.de) I need just one county at the time tough. Especially for the buildings it takes quite some time before they all have loaded in QGIS. Is ...
BAE_23's user avatar
  • 677
0 votes
0 answers
13 views

Extract multiple OSM-types with osmfilter and ONE command

I use osmfilter to extract specific parts of raw geodata retrieved from geofabrik.de. Let's say for my spatial analysis I like to get all buildings, farmlands, meadows and nationalparks. I do not want ...
BAE_23's user avatar
  • 677
0 votes
0 answers
62 views

Finding appropriate osmfilter syntax for city, state/province, and postal code mappings for geocoding

I have a goal of running a Nominatim instance that's capable of geocoding at the city / postal code level. My understanding (which could be wrong since I'm pretty new to OSM data) is that I can filter ...
SeanKilleen's user avatar
0 votes
0 answers
114 views

Issue in my query to filter for only roads and highways using osmosis/osmfilter in my OSM file?

I wnat to extract all the road types and speed limits from the OSM file for the US. I started with a small subset (Delaware OSM), and I ran the following query to try to get rid of unnecessary ...
Vivek Reddy's user avatar
0 votes
1 answer
163 views

Missing address in OSM file

I downloaded a part of germany .osm file from geofabrik and extracted all ways and nodes whose tag contains addr-key using osmfilter: osmfilter.exe hessen-latest.osm --keep=addr:*=* --drop-relations --...
Erkan's user avatar
  • 1
0 votes
1 answer
181 views

Remove layers from OSM file using osmfilter

I am working with big OSM file (1GB) and 24 GB converted. How can I filter small objects to load a map into Maperative. I try to run osmfilter.exe au2.o5a --keep="bBoxWeight>=10" -o=out....
Andrew's user avatar
  • 101
0 votes
0 answers
57 views

The attribute table is damaged after OSMFILTER

I use osmfilter to extract data from geofabrik. I had to notice sometimes the attribut table gets "damaged" or rather osmfilter put all relevant data in a section called other tags. from ...
BAE_23's user avatar
  • 677
1 vote
1 answer
108 views

Remove some elements from way

I am passing osmosis with along the base parameters this additional option: --tf accept-nodes way=* With this I could filter only the <way...> nodes and the result is something like this: <...
Peter VARGA's user avatar
1 vote
1 answer
396 views

OpenStreetMap pbf files- extracts all street/roads intersections in a bounding box

I wrote a query which extracts all street/roads intersections in a bounding box from OpenStreetMaps, as can be seen here: <osm-script> <query type="way" into="hw"> ...
dan's user avatar
  • 11
1 vote
1 answer
338 views

OpenStreetMap modify tags based on multiple criteria

I have and .osm file and I would like the modify the tags based on the following criteria. If highway = "unclassified" and has a cycleway tag Then change highway to "tertiary" I know that with ...
falcs's user avatar
  • 1,111
0 votes
0 answers
186 views

Filter geofabrik to Mapbox Style

GeoFabrik's extracts - as expected - have a massive amount of unnecessary information for most applications. Filtering this information is a critical step to decrease the map's size, especially for ...
user4218673's user avatar
1 vote
0 answers
654 views

How to use osmfilter to drop features with non-empty values on a key?

I know one can use --drop="key=value" option with osmfilter to filter out OSM features for which key has a value of value. For example, I can use osmfilter input.o5m --drop="service=parking_aisle" -...
tinlyx's user avatar
  • 11.1k
9 votes
2 answers
1k views

Missing roads from OpenStreetMap data with osmosis

I am currently trying to extract road networks from OpenStreetMap dumps downloaded on Geofabrik. I am using the following osmosis (version 0.45) command to extract roads: osmosis \ --rbf input.osm....
ArMoraer's user avatar
  • 5,639
1 vote
0 answers
982 views

How to create a file with the names of cities and the state of the city from OpenStreetMap?

Is it posible to extract data from OpenStreetMap that only contains the name of a city and the name of the state from these city? I want to build a CSV file, where each row contains "city;state". ...
501 - not implemented's user avatar
4 votes
1 answer
1k views

Osmfilter - filter every node with at least one tag

I'm using osm data and the osmfilter tool but I can't achieve to filter all nodes with at least one tag. I want to drop nodes with no tags. My approch is: osmfilter DataOSM.o5m --keep-nodes= --...
Mazu_R's user avatar
  • 1,142
4 votes
2 answers
3k views

How to filter OSM data for addr keys with Osmosis

I'm trying to import the address data of a specific country from an OSM file into a MySQL DB. I tried to insert the data with osmosis and also to filter them with osmfilter before running OSM but ...
Billy Sanders's user avatar