Questions tagged [osmosis]

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

Official Site:

80 questions
2
votes
0 answers

IO Exception in OSMembrane while executing pipeline

While executing a pipeline in OSMembrane i got !Tools.PipelineExecutor.IOExecption! error. Anyone have idea how to solve it?
poshanniraula
  • 683
  • 1
  • 7
  • 14
1
vote
1 answer

OSM get source and destination of way

I've written code in Java using the Osmosis framework and specifically OsmosisReader for Java, for OSM processing. To do so I need to convert OSM's ways to edges between the way's source and destination. for example, take this way:
Kfir Ettinger
  • 584
  • 4
  • 13
1
vote
0 answers

Osmosis write pgsql dump very slow

I am working on optimizing the import process of large OSM extracts into Postgres. I am currently using a Europe extract as pbf (from Geofabrik) and I have a process that has been running for over 4 days that writes the import files for Postgres. I…
lilian
  • 36
  • 4
1
vote
2 answers

Error when using OSMOSIS to extract data from OpenStreetMap data

I am trying to replicate the example in this page. I downloaded the data and run this code (the example data of that page can be downloaded from here): osmosis --rbf sample_osmosis.osm.pbf --nkv keyValueList="amenity.school" --wx schools.osm I am…
antecessor
  • 2,688
  • 6
  • 29
  • 61
1
vote
1 answer

How can I use OSMOSIS to extract multipolygon data

to update my database I need to extract some datas from 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 polygons and multipolygons with some key values. My…
ROME
  • 11
  • 1
1
vote
0 answers

How to clean up *.osm.pbf files (Removing unwanted nodes, relationships, ways) with osmosis or osmium

I've recently began to dig deeper into manipulation raw osm data and later convert them to *.mbtiles to serve vector tiles to my web application. As the map only needs to be of low detail (is mainly used for displaying aviation data), I don't need…
danielreiser
  • 5,292
  • 5
  • 31
  • 43
1
vote
0 answers

Using Osmosis to extract a map from a larger pbf file using a bounding box

I have a large data set of lats and lons. mplleaflet was overwhelmed. After determining my BBox, OpenStreetMap yielded a "too many nodes..." error. And recomened planet.osm. Based on posted advice, I down loaded a state from Geofabrik.org, and…
Glenn
  • 131
  • 1
  • 11
1
vote
0 answers

Exporting Postgresql database to OSM

I have osm data tables into postgresql .now i want to export it as .osm file. currently i am using osmosis to do that but somehow it is giving me error and i am not able to export it . osmosis --read-pgsql host="localhost"…
poonam patel
  • 135
  • 13
1
vote
0 answers

No such file or directoryError in file(con, "r") : cannot open the connection, what solution do you have for this Error?

I am a new R-user and currently face a problem with Osmar package while I am running the chunk: osm_file_path <- "~/Downloads/berlin-latest.osm" src <- osmsource_osmosis(file = "/Users/Soodi/Downloads/berlin-latest.osm") ber_bbox <-…
soodi
  • 11
  • 1
1
vote
0 answers

Trying to get place name and add it to output csv file from a large osm file

I have about 1000+ locations that I've filtered in a country with osmfilter on a .osm file, I want to create a .csv file with their id, name, lat, lon, and PLACE (name of the administrative boundary they are in: say a state in USA). I filtered some…
1
vote
0 answers

Would I be faster using Osmosis to generate smaller .osm files from PostGIS or directly from a larger .osm file?

I am currently taking the great-britain-latest.osm file from https://download.geofabrik.de/europe.html and importing it into POSTGIS for use with Nominatim. However I would also like to render mapping tiles using Maperative which cannot handle the…
Mr Davros
  • 100
  • 10
1
vote
1 answer

Node JS - Osmosis form .submit

I'm currently using osmosis to scrape information which is inside various accounts. In order to login to these accounts I'm trying to use the submit command. It however doesn't seem to do anything. I've also tried .login but this seems to not…
Pimmesz
  • 335
  • 2
  • 8
  • 29
1
vote
1 answer

Osmosis throws strange Java error

I have been attempting to import a north-america-latest.osm.pbf (from Geofabrik) into a Postgres database for some time. After reviewing the wiki detailed usage page thoroughly, I set the database to include all necessary tables (pgSnapshot) via the…
eddie
  • 11
  • 5
1
vote
1 answer

Python subprocess does not transfer arguments

I want to automate the process of extracting data from large OSM files with osmosis, but I am having issues running this code snippet to automate tile creation from OSM data: import sys import subprocess def create_tile_pbf(pbf_file, tile_lng,…
omacha
  • 105
  • 9
1
vote
1 answer

How to prevent osmconvert from cutting last 2 digits in lat/lon

When I osmconvert a high precision indoor map like this: osmconvert64.exe --fake-author --statistics testmap.osm -o=testmap_new.osm -v=2 the last 2 digits of every lat/lon coordinate are getting cut. E.g.
Jonas W
  • 85
  • 8