Questions tagged [osmosis]

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

Official Site:

80 questions
6
votes
2 answers

Extremely Slow Query Execution After Postgres 9.6 Upgrade

I am seeing extremely slow processing times after a Postgres upgrade from 9.5 to 9.6 related to queries Osmosis (the command line Java application for processing OpenStreetMap data). Specifically syncing a local osm database with the master osm repo…
picmate 涅
  • 3,951
  • 5
  • 43
  • 52
5
votes
2 answers

Import OpenStreetMap-Data (OSM-File) to a MySQL-Database / SQL-File

Intro I downloaded and extracted the OpenStreetMap Source File (See here). I have a 400GB XML-sourcefile now, and i would like to (1) insert the data in a MySQL Table OR (2) export this to an SQL file, doesn't matter. What I already did / tried I…
user2896540
  • 228
  • 1
  • 2
  • 7
4
votes
1 answer

Osmosis - Removing business from OSM data for Geocoding usage

I'm trying to set up Nominatim database for address geocoding. Database would be used by komoot's Photon, but I guess that's not so important info. The problem is that the osm xml/pbf files I have contain not just the addresses, but the whole bunch…
Igor
  • 329
  • 1
  • 3
  • 10
4
votes
2 answers

How to load multiple osm files into Nominatim

I need to figure out the process to load multiple OSM files into a Nominatim database. I have everything setup and can load a single file with no issues. Basically what I'm trying to do is load some of the GeoFabrik OSM files for only a part of…
user2092856
  • 301
  • 5
  • 13
4
votes
4 answers

Using osmosis to convert POSTGIS Table to .OSM

I am using osmosis 0.42 and PostGIS 2.0.1 and I'm trying to export some postGIS tables to .OSM xml files. I am using the --read-pgsql command to read from postgis (instead of --read-apidb as it throws an error while connecting to the DB…
Fede
  • 41
  • 1
  • 5
3
votes
3 answers

Using map.osm and osmarender.xml from Android project in web project

I edited an .osm file and a style file (osmarender.xml) some time ago and included it in an Android project (using osmosis and the Mapsforge library). Works fine and looks good. Now I would like to reuse these files in a web project using OpenLayers…
kalabalik
  • 3,792
  • 2
  • 21
  • 50
2
votes
2 answers

npm osmosis. How i can get attr of element?

part HTML code of page
3 303
John Laybues
  • 83
  • 1
  • 6
2
votes
1 answer

Osmar package in R "Error in file(con, "r") : cannot open the connection"

I am trying to run the osmar package on my windows 10, R 3.4.2, and have correctly installed osmosis. However when I try to run the code: >library("osmar") > >src <- osmsource_osmosis(file = "c:/users/ben_c/Documents/FYP/FYP_NL_Map/muenchen.osm",…
bCul
  • 21
  • 2
2
votes
1 answer

Filter pbf file for OpenStreetMap

I want to filter PBF file for OpenStreetMap by highways. For example highways = residential. I'm novice in OpenStreetMap. I read some info and start to use these tools to get results, they are osmfilter, osmconvert, osmosis Stages: 1) I convert…
pragmus
  • 3,513
  • 3
  • 24
  • 46
2
votes
1 answer

Osmosis - get all Nodes/Ways/Relations with the same tags

I want to get all nodes, ways and relations containing certain tags and the output file must also contain the dependent ways and nodes. So for example I want to search for all relations with amenities and get not only the relations itself but also…
mikes
  • 2,323
  • 1
  • 16
  • 11
2
votes
2 answers

How to filter out all amenities with osmfilter together with any other tag information they have?

I managed to download a planet file from OSM, and converted it to o5m format with osmconvert, and additional deleted all of the author information from it, to keep the file size smaller. I am trying to fetch every POI from this database from the…
Adam Baranyai
  • 3,635
  • 3
  • 29
  • 68
2
votes
3 answers

Using Osmosis library in JAVA application

I want to do a navigation application using the OSM data files ( pbf files ). I want to use the pbf format in my java application. I was looking for a way to access and read the pbf files, I found that it can be accessed via the osmosis library.…
Hani
  • 21
  • 1
  • 2
2
votes
1 answer

Create custom map with osmosis for android mapsforge

Following this guide (https://code.google.com/p/mapsforge/wiki/GettingStartedMapWriter#Examples), I can create now maps in format .map to be used with android mapsforge libraries. The question is: is possible to create custom maps with osmosis and…
2
votes
1 answer

Extract area from OpenStreetMap

I know how to extract a node out of the OSM planet file with osmosis. osmosis --read-pbf file=h:/poi/planet-latest.osm.pbf --node-key-value keyValueList="shop.chocolate" --write-xml H:/poi/todo/chocolateshop.xml But what if I want to extract an…
NLAnaconda
  • 1,534
  • 3
  • 14
  • 38
2
votes
1 answer

How to locate a point into a bounding box or polygon in osmosis?

I try to locate if a point, with its latitude and longitude coordinates, is into a city which coordinates are in a geom object or in a bounding box in Osmosis. I do this because I want to download a piece map in my Android application that…
Alejandro
  • 102
  • 9
1
2 3 4 5 6