Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [osmosis]

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

0
votes
0answers
43 views

Getting Details of POI

I am pretty new with this so please bear with me. I am able to extract GeoJSON data from OSM and Load it into MongoDB. I am able to run queries to get the data based on Radius. The data looks ...
0
votes
0answers
39 views

OSM.PBF does not contain all exported/merged/converted data from XML using OSMIUM/OSMOSIS

I have three pbf files, each containing poi nodes x ways y multi-polygon relations z separately. I tried merging them using: osmosis --read-pbf file=x.pbf --read-pbf file=y.pbf --read-pbf z.pbf --...
0
votes
1answer
151 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 ...
1
vote
1answer
125 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 ...
1
vote
1answer
61 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 ...
0
votes
0answers
96 views

Filter OSM-Data from OSM-Extract (geofabrik OSM/PBF) and save results in GeoPackage (GPKG)

I need to produce a filtered OSM-Extract saved as GeoPackage-File. I found a solution that seems to match my needs using osmosis for filtering and ogr2ogr to save the result as GPKG. But the ...
7
votes
0answers
192 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....
0
votes
1answer
134 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 (...
0
votes
1answer
52 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....
0
votes
0answers
47 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 ...
1
vote
0answers
42 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 ...
0
votes
1answer
679 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%...
1
vote
0answers
169 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....
0
votes
0answers
67 views

How to populate the actions table in a osm postgres/postgis database

I have a postgres/postgis osm database and I wanted to track changes using the actions table produced from osmosis. How so I go about populating that table? I ran the action.sql listed below but ...
0
votes
0answers
109 views

Extracting admin_level=2 polygons from OSM

My goal is, using a postgis database, to get a list of every country's outline (e.g. level 2 admin_areas), so I can query to pinpoint coordinates generated by users. I tried first using the Europe ...
0
votes
1answer
339 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" --...
0
votes
0answers
105 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 ...
2
votes
1answer
886 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 ...
1
vote
0answers
241 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 ...
0
votes
0answers
175 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....
1
vote
1answer
274 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/...
1
vote
1answer
173 views

Issues with OSM encoding

I am having troubles with the encoding of the osm data in R. Here is a reproducible example using the osmar package: osmData <- osmar::get_osm(osmar::center_bbox(23.334360, 42.693180, 100, 100)) ...
0
votes
1answer
102 views

Make my OSM database up to date again

I have a cron job to run osmosis + osm2pgsql to keep my OSM database updated from https://planet.openstreetmap.org/replication/day/ Due to problems in my server I have lost two weeks of update, ...
2
votes
0answers
191 views

How to update OSM data, without recreating the PostGIS database?

We are currently working with GeoServer and PostGis which stores the OSM data for Switzerland. I would like to know, how to update the OSM data for my GeoServer. At my current level of knowledge, I ...
1
vote
0answers
127 views

Error running osmosis: File Not Found

I got this error when running osmosis: root@osm:/home/osm/updates# osmosis --rri workingDirectory=. --wxc ./update.osm.gz Apr 13, 2017 10:03:34 AM org.openstreetmap.osmosis.core.Osmosis run INFO: ...
1
vote
0answers
56 views

Keep multiple OSM Imports up to date

I have multiple instances of my application for my users. Each user can specify an area which I want to load in my own PostgreSQL server, that make it's possible to render maps with my own mapnik ...
2
votes
1answer
241 views

Add data to existing populated PostGIS database through Osmosis

I have a PostGIS database populated with data using /home/user/bin/osmosis-latest/bin/osmosis --read-xml /media/sf_fg_customscenery/projects/LSMP/lsmp.osm --log-progress --write-pgsql database=osmogis....
1
vote
2answers
166 views

Updating One Country's OSM Data through Osomosis

I would like to know how a single country's OSM data is kept up to date by osmosis. This is not a question regarding the method of doing the update, rather how osmosis does it. I downloaded the OSM ...
1
vote
0answers
68 views

Forgot to enable hierarchical updates on my Nominatim database. How can I fix stale data?

I have been running a Nominatim server for a few months. The server is updated with Osmosis. Over time, I have seen my data slowly get out of date. I believe the reason is that I forgot to enable ...
0
votes
1answer
253 views

How to hierarchically query PostgreSQL data coming from OpenStreetMap

I have loaded OpenStreetMap data into a PostgreSQL database using Osmosis. This is done by using the snapshot schema. I filtered the data and loaded only: country & city information osmosis --...
1
vote
0answers
264 views

Osmosis leaving out relations

I'm trying to extract administrative relations from a country extract of Ukraine (downloaded from http://download.gisgraphy.com/openstreetmap/pbf/UA.tar.bz2). Ultimately I'm wanting to get the OSM ...
2
votes
0answers
201 views

Keeping used relations (i.e., member relations) when using --tag-filter in Osmosis?

I just got started with the OpenStreetMap and their OSM-files. I am using Osmosis (https://wiki.openstreetmap.org/wiki/Osmosis) to filter a .osm file. I noticed that used relations are not included in ...
2
votes
1answer
183 views

How does osmosis take so much disk space?

I've been trying to use osmosis for importing osm raw data to a db. First, it failed due to lack of sufficient disk space. I made some more space and launched it one more time. That time there was ...
1
vote
2answers
500 views

Convert a big .osm file to .map

I have a 3.3GB .osm file and I'm trying to convert it to .map with Osmosis with the following osmosis --read-xml mexico.osm --mapfile-writer file=mexico.map but I get the java.lang.OutOfMemoryError, ...
1
vote
0answers
773 views

ArcMap “Could not load data from the data source” Error

I used ArcMap 10.4.1 to connect to a postgre SQL database generated by osmosis on a server. I could see the feature rendering (e.g., points and lines) without a problem. However, when I tried to ...
0
votes
0answers
347 views

How to setting proxy for osmosis?

I'm trying to use osmosis to update my data ( http://wiki.openstreetmap.org/wiki/Minutely_Mapnik ) but I'm facing the follow error: org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to ...
2
votes
1answer
442 views

Downloading OpenStreetMap data by osmosis?

I need to download a geographic data and unzip the download file using osmosis command. I tried this: osmosis --rx test.osm --bb top=48.78 left=6.02 bottom=48.59 right=6.38 but this command filters ...
2
votes
1answer
556 views

Getting coordinates of ways in *.pbf file?

I would like to extract some lines and polygons from OSM data (In the format of .pbf). After using osmosis I can get a osm file with all the elements like this: <way id="102670197" version="1" ...
0
votes
1answer
312 views

Import OSM data in postgis with python script

I want to import OSM data (way and nodes) in postgis database with a script pyhton, I found in the internet that I should create a schema but I don't know how and I really don't know what to put on ...
0
votes
1answer
225 views

Updating OSM data

I'm trying to keep my OSM PostGIS data up to date by reading this tutorial http://wiki.openstreetmap.org/wiki/Minutely_Mapnik The time periods are minute, hour and day, but I think a daily update is ...
4
votes
1answer
210 views

Tracking OSM “Planet” Extract dates

I'm trying to build a GUI that allows replacement / update of the PostGIS database that holds my OSM extract (which I use for rendering, typical mapnik / tile server arrangement). I'd like to show ...
0
votes
1answer
187 views

How to extract seamarks from OSM PBF?

Ref to this: http://forum.openseamap.org/viewtopic.php?id=2060 and this: How to extract primary and secondary roads from OSM data? and this: http://wiki.openstreetmap.org/wiki/Seamarks/Seamark_Objects ...
2
votes
1answer
639 views

How Nominatim calculates addresses

I have imported OpenStreetMap data for the country Switzerland via osmosis in my MySQL database. Now I want to look for a specific address in that database, but I can't find a way to get the whole ...
5
votes
1answer
157 views

How to download highways marked with a specific relation from OSM?

There's an excellent general question about downloading canals here: How do I download specific OpenStreetMap data by tag? There's also plenty of knowledge about OSM in general, but one thing I ...
2
votes
1answer
164 views

Load filtered OSM relations into Postgis with OSMOSIS

I am really hitting the wall trying to grips with merging filters in OSMOSIS. I would like to load relations, their related nodes and ways. If I use a tag filter like this: --tf accept-relations ...
3
votes
2answers
1k 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 ...
1
vote
2answers
502 views

Using Osmosis to extract highways and move to a MySQL database

I am pretty new to using Osmosis and I have been having a hard time of getting it going. So basically I am trying to extract highway data from the latest osm planet dump file using osmosis and moving ...
1
vote
1answer
1k views

Install latest Osmosis version on Ubuntu

I am using Ubuntu 14.04 and I would like to know the easiest way to install the latest (stable) version of Osmosis, which is 0.44. I ran sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo ...
1
vote
1answer
726 views

pgsql2osm? How to generate osm files from osm2pgsql database?

I want a method to export osm files from a postgress database. I already have a osm2pgsql database, a apidb database and nominatim database in which I have imported osm files. Now I need to export ...
1
vote
1answer
351 views

Where to download .osm files and how to convert it to .xml? [closed]

I am new to deal with OSM data, and I want to download only .osm files not .pbf. I tried geofabrik.com but it provides .osm.pbf file format where can I download .osm files? is there any recommended ...