Questions tagged [osmosis]

Osmosis is a command line Java application for processing OSM data. http://wiki.openstreetmap.org/wiki/Osmosis

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Is there a flag for osm osmosis to skip invalid nodes?

I am using osmosis to extract tags from an openstreetmap .bz2 file based on the command found in an answer here bzcat us-west-latest.osm.bz2 | osmosis --rx - --log-progress --tf accept-ways man_made=...
jamierob's user avatar
  • 1,549
0 votes
0 answers
89 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
1 vote
0 answers
205 views

Can OSMIUM export all relations like OSMOSIS is doing?

I have been working with OSMOSIS for quite some time and love that I have the freedom to work on the raw data of OpenStreetMap. I am utilizing any kind of information in order to normalize the data in ...
Tobesucht's user avatar
1 vote
0 answers
717 views

Write GeoPandas data into osm.pbf file using Python

I have sample nodes, edges data like below. I am using ElementTree to write the data into .osm file and then trying to convert into .osm.pbf using osmosis but when trying to convert from .osm to .osm....
data en's user avatar
  • 145
2 votes
0 answers
61 views

Osmosis no space left on device

Issue with performing extracts on compressed file results in error Caused by: java.io.IOException: No space left on device Background: I am working on extracting city data from a europe-latest.osm.pbf ...
evan's user avatar
  • 53
0 votes
1 answer
56 views

Osmosis merge UTF-8 encoding issue

I am trying to merge together two .osm XML files using Osmosis from CLI. In the XML files there is some public transport data (like bus stops) and some of them have an apostrophe (') in their name (as ...
Gabboxl's user avatar
1 vote
1 answer
701 views

How to extract all buildings from `osm.pbf` file using command-line Osmosis?

I'm using Osmosis 0.48 using command line on Windows to extract all building polygons from a given osm.pbf file downloaded from Geofabrik (https://download.geofabrik.de/europe/germany.html). However, ...
15Step's user avatar
  • 2,430
1 vote
1 answer
177 views

OpenStreetMap data OSMOSIS and MySQL - make faster?

How can I make dumping .osm data into a MySQL database faster using Osmosis? Currently 3 hours so far for the USA file but MySQL is only using 10-15 percent CPU, 10 percent RAM and HD is negligible (...
Jason G's user avatar
  • 11
0 votes
1 answer
107 views

Сountry names are not displayed on the map

I`m trying to create map which has several layers. One of them consist of country borders (admin_level = 2,3), country name and region names. I use data of coordinates of Armenia and China from https:/...
User111x's user avatar
1 vote
0 answers
78 views

OSMOSIS syntax for extracting buildings out of country.pbf via .polyfile

I am new to osmosis and osmfilter did not work with my .poly file. I do not get the syntax working. I like to extract all buildings within a poly file. I tried just for all objects C:\Program Files (...
BAE_23's user avatar
  • 611
1 vote
1 answer
102 views

Retrieving nodes outside bounding box for ways that overflow it (osmosis command line tools)

I am able to successefully filter all ways (roads in particular) that are within a given bounding box. I am using the tag "--used_nodes" to fetch only the nodes composing those ways. My ...
sjaubain's user avatar
1 vote
0 answers
286 views

Using Osmosis library to query data from a PBF file

I know that it's possible to read (crosby.binary.osmosis.OsmosisReader) and write (crosby.binary.osmosis.OsmosisSerializer) a PBF file using the Osmosis library. My question is if it's possible using ...
Programer Beginner's user avatar
1 vote
1 answer
97 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
3 votes
0 answers
697 views

Using OSMOSIS to extract multipolygon data from .pbf file

To update my database I need to extract some data from the OSM database. To do it I have downloaded the osm *.pbf file from the website of GEOFABRIK. From this PBF file I wish to extract all the ...
Rome's user avatar
  • 31
2 votes
0 answers
247 views

osmosis --used-node keyword does not grab all relevant nodes

I am trying to filter an osm.pbf file using osmosis. The following is my filter: osmosis --read-pbf-fast metadata-unfiltered.osm.pbf workers=8 --tf accept-ways <placeholder> --tf reject-...
cmosig's user avatar
  • 143
3 votes
1 answer
3k views

How to query relations and visualise it on Overpass turbo

I would like to know the reason the below posted code shows ways and nodes? As shown below, I want to visualise only the relations but when I run the code on overpass turbo, it shows ways and nodes? ...
Amrmsmb's user avatar
  • 305
1 vote
0 answers
498 views

OSRM Contract with multiple input OSM files stalling

I received multiple shapefiles for USA states map data split into different groups of states. Approach - 1: I can't merge multiple shapefiles and merge into a single .osm file because it's exceeding ...
KFC's user avatar
  • 111
1 vote
0 answers
160 views

How can I omit points when filtering OSM data with Osmosis

I am trying to get data for rivers/waterways around the world. I have downloaded the planet file from OSM (as well as a North America file from Geofabrik), and am trying to use Osmosis to filter out ...
Jacob's user avatar
  • 111
1 vote
1 answer
343 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
471 views

Export planet OSM file from Rails port using Osmosis

In order to create a local OSM server and connecting JOSM to this, we've installed and configured Rails port openstreetmap/openstreetmap-website. The next step was to insert a sample OSM file into ...
Harry Wilson's user avatar
1 vote
1 answer
98 views

Get all geom points that are more than 3 meters from the linestring, at big scale

With the help of Osmosis i was able to import all the data of a Open Street Map city, (Nodes, ways, etc...). In another table at same db, i have Millions locations in that city, these locations are ...
Jp98's user avatar
  • 53
1 vote
1 answer
654 views

Look for all `highway` type `way` in certain area, using the overpass-api directly (not overpass turbo) or osmosis

I need all highway type way in certain area, I found this query the result I want, but using overpass-turbo (I would like to use only overpass-api or even better only osmosis): <osm-script output=&...
Emeeus's user avatar
  • 141
1 vote
0 answers
88 views

Remove incomplete ways from OSM data

I'm trying to extract all data OSM within a GeoJSON polygon using osmium extract. I want the output to include only nodes and ways completely contained within the polygon. I tried using the --strategy ...
beenjaminnn's user avatar
2 votes
1 answer
118 views

Install osmosis without wget and still create its folder?

I am trying to install osmosis onto my Ubuntu 16.04 PC. I tried to do it using this explanation, but I can't download osmosis-latest.tgz because the link throws a 404 error. Now I installed it by ...
end9's user avatar
  • 23
1 vote
1 answer
148 views

Osmosis failed: ERROR: relation "pend_ways" does not exist

I tried to generate osm update using osmosis and osmium(omsium only for setting configuration.txt from existing russia-latest.osm.pbf). I use osmosis like that: osm2pgsql -append --slim --cache ...
Tyomik_mnemonic's user avatar
2 votes
0 answers
227 views

Download certain POIs for a whole country and transfer to PostgreSQL database

I'd like to extract certain data from OSM for a whole country (Germany). The data I'd like to obtain are POI's, but obviously not all of them. I'd like to filter only the supermarkets for example and ...
Philippo Storino's user avatar
1 vote
0 answers
48 views

Historical OpenStreetMap data and dummy lines

I'm trying to export some historical highway data from OSM with the following commands: osmium time-filter clipped_greece_history-190715.pbf --overwrite "${YEAR}-12-31T00:00:00Z" -o "osm${YEAR}.pbf"...
Leonidas's user avatar
  • 483
2 votes
0 answers
426 views

Extracting highways from OSM

I am trying to extract all highway types for the world from OSM through Osmosis. My Osmosis command looks like below, however, after the extract, I find certain roads (especially, motorways and trunk ...
c00der's user avatar
  • 231
1 vote
0 answers
559 views

An illegal reflective access operation has occurred: Problem trying to merge changefile with .pbf data

After downloading a changefile (525.osc.gz) and a planet file (planet-latest.osm.pbf) I am trying to merge the changes with the following command: osmosis --read-xml-change file="525.osc.gz" --read-...
manesioz's user avatar
  • 111
1 vote
1 answer
292 views

Getting area covered by intersection or junction?

I need a way to get following information for each intersection or junction in Berlin: latitude and longitude area covered I could get all Junctions from openstreetmap as nodes, which would give me ...
Selphiron's user avatar
  • 775
2 votes
1 answer
554 views

Unclosed linestring to polygon works with QGIS but not with PostGIS

Just like the title, I am extracting OSM riverbank and a lot of riverbanks in OSM is in 'unclosed' linestring. This is the original river shape i extracted from OSM In order to polygonize the ...
Pil Kwon's user avatar
  • 1,040
0 votes
1 answer
272 views

Exclude geographic extent of an OSM file

Osmium and Osmosis command tools have the capability of extracting a geographic extent from an OSM file. osmosis --read-xml test.osm --tee 1 --bounding-box left=15 top=46 --write-xml extract_test....
Harry Wilson's user avatar
1 vote
1 answer
310 views

railway=* doesn't extract rails

I'm trying to extract everything related to railways from pbf file using osmosis. I've tried several ways but couldn't find a solution. I got everthing about railways extracted except rails. Here is ...
user avatar
0 votes
0 answers
1k views

How convert OSM relation to GeoJSON -based all kind of relation member roles

I just want to convert OSM data to GeoJSON where it is pretty simple with node and way tags of OSM data, but relation which is giving complex can't find the logic to convert OSM relation to GeoJSON ...
jayendran S's user avatar
0 votes
1 answer
1k views

OSM Data Extract Streetnames for cities

How to extract streetnames with osmosis (Java)? I have tried to process all Nodes. I put them in a Map<String, List> meaning Map<CityName, ListOfStreetnamesOfThatCity>: @Override public ...
No3x's user avatar
  • 101
2 votes
1 answer
962 views

OSM updates with Osmosis -> Osm2Pgsql resulting in missing features?

For my project, I have successfully created a PostgreSQL database of the entire planet file using osm2pgsql. My next task was to sucessfuly update the database using daily change files through the ...
Randy Bo Bandy's user avatar
1 vote
1 answer
295 views

Re-sync OSM DB After Failure

I extract highways from OSM every day from a cron job and keep a postgis database up-to-date. Due to a database change, the syncing has stopped in December 2017. I am trying to re-sync with a sequence ...
picmate's user avatar
  • 327
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,629
0 votes
1 answer
519 views

Nominatim North America update

I want to keep updated my fresh install of Nominatim 3.1.0. I have installed North America maps from this (http://download.geofabrik.de/north-america-latest.osm.pbf) file. According to the article (...
Roy's user avatar
  • 3
0 votes
1 answer
258 views

Wrong csv format generated by OSM tools

I am using the following sequence of commands to extract some data from open street map to import to Postgres: osmconvert -b="-7.57216793459,49.959999905,1.68153079591,58.6350001085" -o=/data/UK.poi....
Randomize's user avatar
  • 261
0 votes
0 answers
119 views

Different outputs from the same query when using country vs continent data (OSM and Osmosis)

I am attempting to extract highways (motorways, trunk, and primary roads) for Europe from OpenStreetMap using Osmosis. As I am new to using Osmosis, as an intial test, I downloaded the country osm.pbf ...
meither's user avatar
  • 11
1 vote
0 answers
312 views

Syntax using osmosos with bounding box

I am trying to extract a region from a .osm.pbf file I have and write the output as a .osm.pbf file. I'm not sure on the syntax however to achieve this result. I have continued from an example I found ...
DisneylandSC's user avatar
0 votes
1 answer
2k views

Convert .osm/.pbf to .map for mapsforge

I have download latest version (0.46) of osmosis from https://wiki.openstreetmap.org/wiki/Osmosis#Downloading and mapsforge-map-writer-0.9.1.jar from http://search.maven.org/#search%7Cga%7C1%...
Евгений Гуреев's user avatar
2 votes
0 answers
672 views

import *.osm.bz2 to postgresql using OSMOSIS causes errors

I am trying to import osm.bz2 flie from http://download.geofabrik.de/. I think I am almost there though somehow my CMD returns error messages I downloaded osmosis-latest file from http://bretth.dev....
Pil Kwon's user avatar
  • 1,040
0 votes
1 answer
983 views

OSRM how to use my own map

I download a cartography bike from the open data data link to Postgres then I convert it to osm using: python ogr2osm.py "PG:dbname=x user=x host=localhost" --sql="SELECT * FROM bike_network" --...
Adil Blanco's user avatar
0 votes
1 answer
580 views

Extract Certain Elements from Global OSM Database

The goal is to find all waterways in Open Street Maps globally. This is the equivalent for a random area in China in overpass turbo. Instead of doing it for this bounded area, I want to query ...
RutgerH's user avatar
  • 3,275
2 votes
1 answer
3k views

Extracting POI from Openstreetmap (*.osm)

I've searched the web and found out that "osmosis" is the key. also, this blog http://learnosm.org/en/osm-data/osmosis/ gave me a huge hint and i made it to extract POI tag by tag (by the way, i am ...
Pil Kwon's user avatar
  • 1,040
1 vote
0 answers
359 views

Osmosis Extremely Slow After Postgres 9.6 Upgrade

I am seeing extremely slow processing times for syncing my local osm database with the master repo after a Postgres upgrade to 9.6 from 9.5 (Postgis 2.3 from 2.2). The syncing used to happen every day ...
picmate's user avatar
  • 327
0 votes
0 answers
434 views

How to import OSM data into postgis and add Elevation Information from raster

In my usecase I want to use OSM data for my routing server, but first, I'd like to add elevation data. And I'd prefer to do that in postgis as I'd need to do further analysis of the data using postgis....
Georg's user avatar
  • 1,001
1 vote
1 answer
1k views

How to merge OSM files with same ID?

After read this How merge osm files with same ID objects? I can't get any conclusion so please don't flag as duplicate. I have some PBF files came from NASA SRTM ( http://katze.tfiu.de/projects/...
Magno C's user avatar
  • 2,120