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:…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…