Questions tagged [osmosis]

Osmosis is a command line Java application for processing OpenStreetMap data.

Official Site:

80 questions
0
votes
0 answers

С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://download.geofabrik.de/asia.html. I succesfully…
0
votes
1 answer

Osmosis for OpenStreetMap data - fields lost when extracting data

I have downloaded a pbf file, france_latest.osm.pbf, from geofabrik.de and want to use osmosis to filter it to get a .osm file with just the major roads. Here is my osmosis command string: osmosis --read-pbf france-latest.osm.pbf --tf accept-ways…
simonc8
  • 27
  • 1
  • 1
  • 3
0
votes
1 answer

Feed formats other than pbf to Osmosis

I've written code in Java using the Osmosis framework and specifically OsmosisReader for Java, for OSM processing. As far as I understand, OsmosisReader can only work with *.pbf files, which means I need to convert .osm files before using them…
Kfir Ettinger
  • 584
  • 4
  • 13
0
votes
1 answer

Trouble installing Osmosis for OpenStreetMap on Mac OS Monterey

I want to install Osmosis on my Macbook, which currently is running MacOS Monterey 12.0.1 Following the installation instructions, I did the following: I downloaded the latest version (0.48.3 at the time of this posting) I navigated to the OSX…
Darren C.
  • 101
  • 1
  • 1
  • 6
0
votes
1 answer

Postgres data to osm-pbf creation failed using osmosis snapshot schema

I have imported pbf to postgres using osmosis snapshot schema now wanted to create pbf from that schema, using following command osmosis --read-pgsql host=localhost database=osmosisv1 user=postgres password=postgres postgresSchema=contry_snapshot…
sawan
  • 2,341
  • 3
  • 25
  • 51
0
votes
1 answer

How to extract only way tags from DB without rest entities with OSMFilter

The problem which I faced is quite complex. I work with OSM editor where I can override some ways properties. Those properties are tags called "maxspeed:backward" and "maxspeed:forward". Sometimes I want to update my local map with OSM official data…
EnGoPy
  • 333
  • 4
  • 14
0
votes
1 answer

node.js Osmosis get resulsts after compiling js

im trying to get data from site with osmosis, but insted of the value it returns '{{value}}'. here`s my code: const osmosis = require('osmosis'); osmosis .get('#########&fromStationCode=210305&toStationCode=217304') .delay(3000) …
0
votes
2 answers

Osmosis WayNode instances always return 0 from getLatitude and getLongitude

I am trying to use openstreetmap osmosis to read a pbf file of an airport and extract features like gates and runways. I am using code similar to: http://www.javaoptimum.com/how-to-read-osm-pbf-files-programmatically-java/ When the code encounters a…
spierepf
  • 2,774
  • 2
  • 30
  • 52
0
votes
1 answer

Linux two processes to read from standard input (osmosis osm)

I need to decompress a very large file (100GB+) and get it be processed by two parallel threads. Problem is that I want to feed uncompressed content to both threads at the same time using STDIN/STDOUT bzip2 north-america-latest.osm.bz2 | \ osmosis…
Stan Sokolov
  • 2,140
  • 1
  • 22
  • 23
0
votes
0 answers

Integrating osmosis and python to get data from .osm files

I'm trying to filter data from .osm file, using a python script Following is the python code I used for the purpose. But the .osm file created does not contain the data from the input file. import…
Aleron
  • 1
  • 2
0
votes
1 answer

Scraping with Osmosis returns undefined in Node.js

I'm using the Osmosis package to scrape like this: require('osmosis') .get('https://samdb.org/phones/galaxy-s10') .find("//h4[contains(text(), 'MP')]") .data(data=>{ console.log(data) }) My problem is that it logs an empty object…
Fogarasi Norbert
  • 650
  • 2
  • 14
  • 34
0
votes
0 answers

How can I download a blob url from osmosis video

Is there any chrome extension or software which can be used to download the playing video.
0
votes
0 answers

How to convert postgis to OSM?

I'm using Osmosis to export the Postgis tables to .osm file. I'm using the following command to generate the .osm file. osmosis --read-pgsql host="localhost" database="pgsnapshot" user="postgres" password="postgres" --dataset-dump --write-xml…
Palak
  • 1
  • 3
0
votes
1 answer

How to delete everything but streets and traffic lights in JOSM?

Hello I am trying to prepare a map from openstreet map (.osm) following this tutorial Using JOSM Now in my map I need a really sparse representation of the whole map (only streets and traffic lights) Is there an efficient way to do so? I am happy…
mrk
  • 8,059
  • 3
  • 56
  • 78
0
votes
1 answer

graphhopper Custom osm.pbf file

I have a database filled with my own data which I collected. I stored the data in a pgsnapshot databasis after which successfully exported via Osmosis to a .pbf file, osm tagged etc. After this I give this file to graphhopper to generate the…
Ian23
  • 33
  • 1
  • 1
  • 4