Questions tagged [osmosis]

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

Official Site:

80 questions
1
vote
2 answers

scala type mismatch osmosis

I try to get the example from this open book about map matching to work. I am using scala 2.10 and spark 2.0.2. Unfortunatelly the syntax and functions have changed. case class NodeEntry(nodeId: Long, latitude: Double, longitude: Double, tags:…
Simon He
  • 47
  • 7
1
vote
1 answer

Run Makefile with crontab

I'm new in Ubuntu and programming. I'm testing a program that I found on github, to download and import OSM data into postgis. It works when I run it from terminal (url and name are fake): make all NAME=dbname URL='http://myurl' using postgres…
Kappadocina
  • 15
  • 1
  • 4
1
vote
1 answer

Convert .osm file to .map

I have tried to convert .osm file to .map I have followed steps and configure osmosis, i have tried with 0.44.1(latest one) as well as 0.41.1. I have followed many tutorials and tried to debug but didn't get specfic results. If somebody have idea…
Android
  • 23
  • 7
1
vote
0 answers

Osmosis open Resource : NullPointerException at Parameters$Builder.loadResource

According to the Osmosis Github site I've installed Osmosis and I am trying to put an osm package to Elasticsearch by typing: $ osmosis --read-pbf ~/osm/extract/azores-latest.osm.pbf --write-elasticsearch cluster.hosts="localhost" The execution…
philburns
  • 310
  • 4
  • 18
1
vote
1 answer

JAI ImageRead module getting lost

I am trying to write an OSMOSIS extension that makes use of GeoTools and reads a GeoTiff Image. I've written a minimal working example of what it does: package that.is.my.test; import java.io.File; import java.io.IOException; import…
Kurtibert
  • 638
  • 1
  • 5
  • 16
1
vote
1 answer

Very slow Loading of LinkedGeoData in PostgreSql

I have installed and tuned my PostgreSql Database and I downloaded LinkedGeoData files from here and then I have executed the line lgd-createdb -h localhost -d databasename -U user -W password -f bremen-latest.osm.pbf (12MB) and the same for…
Gödel77
  • 839
  • 3
  • 15
  • 27
1
vote
3 answers

Filter OSM with osmosis for specific amenity

I have downloaded the Ireland file from cloudmade for osmosis (500 MB) and placed it in the osmosis bin folder, which osmosis reads fine. I would now like to create a new file with just those places tagged with Tag:amenity=fast food. My directory…
eamon1234
  • 1,555
  • 3
  • 19
  • 38
0
votes
0 answers

Mapsforge Mapfile-writer plugin not working with osmosis

I am trying to use the mapsforge mapfile-writer plugin with osmosis to compile my own map, but I'm encountering an error. The error message I'm receiving is as follows: Jun 16, 2023 9:09:37 AM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis…
saad
  • 31
  • 3
0
votes
0 answers

Osmosis OpenStreetMap (OSM) filter nodes and their ways and relations to location

Using osmosis, how can one filter nodes with specific key and its associated location? For example, executing osmosis --read-pbf myregion.pbf --write-xml highway.osm --node-key keyList="highway" yields a file named highway.osm that holds all…
Mr.
  • 9,429
  • 13
  • 58
  • 82
0
votes
0 answers

How to resume OSM data loading or load new OSM data to the existing installation without replacing the old data?

I am trying to install the Openstreetmap website server on a local machine. I am trying to load the whole Planet OSM data. Due to the power outage, data loading was interrupted after 16 days of on-stop loading operation. I want to resume that…
0
votes
0 answers

How to 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.pbf osmosis throws error saying "osm format is…
data en
  • 431
  • 1
  • 2
  • 9
0
votes
0 answers

Osmosis crashes when exporting from postgres db to osm file

I did import a planet.osm file using osmosis, but only streets. I then did some modification to the data and now I'd like to export that data again for further processing. I did so before for a smaller dataset and it worked fine, but now that I am…
Georg
  • 3,664
  • 3
  • 34
  • 75
0
votes
0 answers

OpenStreetMap Osmosis issue running completeRelations

I'm running osmosis on a european extract with a bounding polygon trying to use the completeRelations=true flag and osmosis is returning the following initial error then exiting. org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to…
evan
  • 169
  • 3
  • 12
0
votes
0 answers

Convert OpenStreetMap POI Data to CSV

I am looking to extract some Point of Interest (POI) data from OpenStreetMap in a tabular format. I have used this link navigated to the relevant country and downloaded the file, http://download.geofabrik.de/ What I get is a file with the .osm.pbf…
Minura Punchihewa
  • 1,498
  • 1
  • 12
  • 35
0
votes
2 answers

Osmosis. Use bounding box filter in java code

I am importing a osm.pbf file into my java application using Osmosis like this: data class MapObject ( val lat: Double, val lon: Double, val id: Long ) class OsmReader : Sink { val data = mutableListOf() override fun…
Jacopo
  • 11
  • 2