Osmosis is a command line Java application for processing OSM data. http://wiki.openstreetmap.org/wiki/Osmosis

learn more… | top users | synonyms

23
votes
4answers
19k views

Select bounding box using postgis

I want to create a query to select all ways and their nodes that exist within a bounding box using postGIS. The bounding box shall includes all details as osmosis "--bounding-box" command will ...
6
votes
3answers
1k views

Large Open Street Map OSM file to Shapefile. Is there any hope for 32-bit FME?

I have a large OSM XML file (around 8 GB) that I was hoping to process in FME. I have a workbench that I previously used to process smaller files (500 MB) into feature type-specific Shapefiles (e.g. ...
5
votes
2answers
712 views

Error while using osmosis

I was trying to filter openstreet map data using osmosis. I used the following osmosis --read-xml city.osm --tf accept-ways highway=* --used-node --write-xml highways.osm But while i run this ...
4
votes
1answer
457 views

Improve database performance for geospatial

I have a database with osm data imported with osmosis tool. I want to search for the nearest POIs from a given point. For this purpose, I perform this query: select id from nodes where geom='...
4
votes
1answer
598 views

OSMOSIS: How to extract all railway stations in use?

I'm trying to retrieve a list of all railway stations of Belgium that are in use. I downloaded the country osm from http://download.geofabrik.de/europe/belgium-latest.osm.pbf. I tried the following ...
4
votes
1answer
69 views

How to download highways marked with a specific relation from OSM?

There's an excellent general question about downloading canals here: How do I download specific OpenStreetMap data by tag? There's also plenty of knowledge about OSM in general, but one thing I ...
3
votes
2answers
3k views

OSM - Extract Streets from OSM Data (With/Without Python)

I'm currently in the works of creating a pythonic way of extracting street names from an OSM dump for the Province of Quebec. Originally, I wanted to do this in Python to make it easier to integrate ...
3
votes
2answers
984 views

How to Extract data from OSM within a polygon

Although I am a Openstreetmap's regular user for quite some time, I am pretty new to GIS, so I assume this is an easy question: I would like to know how can I extract data (Eg:all schools) from OSM ...
3
votes
1answer
334 views

osmosis merge: second input file being ignored, output is duplicate of first input file

I am trying to merge some .osm files. After looking at various examples online, I'm still having trouble. The command completes without error and there is an output file. However, the output file ...
3
votes
1answer
337 views

How to create a pedestrian routing graph from OSM?

I am interested in obtaining the foot paths from OSM data. Specifically I consider the area within the city limits of Berlin. I downloaded the corresponding OSM file from Geofabrik and I intend to use ...
3
votes
1answer
911 views

How to manage the osmosis command line?

This refer to this post : Read Here I'm in trouble when using osmosis command line to export data from planet-latest.osm.bz2 directly to osm2pgsql using some criteria to select what to transfer. I ...
3
votes
1answer
1k views

How to manage the osmosis filters?

I am a complete beginner in OSM and osmosis, and I am trying to build a stripped down version of a local map, in order to add nodes of public lights that would be used for maintenance. I have used the ...
3
votes
0answers
240 views

OSM Database created: now what happens?

I imported an OSM file into a Postgres DB using the Osmosis tool. Now, I need to extract some data but I can't find any schema description (I'm really a newbie in GIS). Where can I find it? Do you ...
2
votes
2answers
3k views

Update database via osmosis and osm2pgsql too slow

I got a box with the current hardware config: CPU: Intel Xeon E3-1220 V2 3.1 GHz RAM: 10gb Hard Disk: Western Digital WD10EZRX SATA Hard Drive OS: Centos 6.5 64 bit DB: PostgreSQL 9.3.2 and ...
2
votes
3answers
657 views

How to get India OSM map offline in geoserver which looks similar to online OSM map?

I need to OSM map of India having same look and feel as of Online OSM map. I have done following steps for the same : I have downloaded India map OSM data from below link : http://download....
2
votes
1answer
52 views

Load filtered OSM relations into Postgis with OSMOSIS

I am really hitting the wall trying to grips with merging filters in OSMOSIS. I would like to load relations, their related nodes and ways. If I use a tag filter like this: --tf accept-relations ...
2
votes
2answers
617 views

Extract a PostGIS dump from OSM with a particular tag

I'm new to OpenStreetMap. I want to extract all restaurants from Switzerland with their capacity if available. I am using osmosis. I tried: osmosis --read-pbf file=switzerland.pbf --tf accept-nodes ...
2
votes
1answer
4k views

Convert .osm to .map for mapsforge

I have download latest version of osmosis from http://wiki.openstreetmap.org/wiki/Osmosis#Downloading and mapsforge-map-writer-0.3.0-jar-with-dependencies.jar from https://code.google.com/p/...
2
votes
1answer
1k views

How to import Osmosis DB schemas into PostGIS DB

I'm trying to import Osmosis schema into into a PostGIS DB. I followed this article. I created a DB: createdb osm_schema Then I executed the following command: osmosis --write-pgsql host="...
2
votes
1answer
74 views

OSM update without loosing own additional data

I have added data (e.g. name keys) to my OSM PostgreSql database. How can I update my database without deleting or overwriting this data? In other words, how can I merge newer OSM data to my existing ...
2
votes
2answers
120 views

geometry from relations - osm

Can someone show me the relevant documentation for relationships between tables? I'm trying to get the geometry for an entry from the relations table but I'm unable to pick out the right information ...
2
votes
2answers
281 views

How to obtain timestamp and user id from .osm file in PostGIS enabled Postgres database

At present, osm2pgsql seems to ignore the timestamp and user id of the elements, a serious drawback for some applications. According to a bug report this is not solved by the addition of the --extra-...
2
votes
1answer
228 views

How to make osm2pgsql import a tag?

I loaded OSM data into PostgeSQL with Osmosis&Osm2PgSQL, and see many tags are missing. I need to make it import lanes tag. How can I make it save this tag too? edit: my solution was to copy /usr/...
2
votes
1answer
58 views

Problem with osmosis syntax

I want to create a light version of global map (only with cities and highways and natural objects). How to use osmosis correctly with multiple tags list? For example I try this command with no success:...
2
votes
1answer
437 views

Osmosis setup on Ubuntu 14.10

I have Ubuntu 14.10. I've installed osmosis from apt. I downloaded mapfile-writer from here http://repo.typesafe.com/typesafe/simple/sonatype-snapshots-cache/org/mapsforge/mapsforge-map-writer/0.4....
2
votes
1answer
180 views

How to filter out osm data made by specific users - osmosis or a better suggestion

I am trying to find the code for a query in osmosis that will allow me to download only contributions made by certain OpenStreetMap users. I was thinking to use osmosis to filter out all the ...
2
votes
1answer
522 views

bounding box in osm files

I have a osm file,i convert it to pbf file by osmosis.but it not convert to .map file.i use this in cmd: osmosis --rb file=city.osm.pbf -mw file=map.map bbox=34.3635451292,30.0247495993,57.513131979 ...
2
votes
1answer
867 views

Extracting data with osmosis

I downloaded planet-latest.osm.bz2 file. Then tried to extract data using the following command. osmosis --read-xml enableDateParsing=no file=J:\planet-latest.osm\planet-latest.osm.bz2 --bounding-...
2
votes
1answer
917 views

How can I split an osm file into separated files with poly files using osmosis?

I have got a country.osm file and I want to split it alongside of admin_level=8. I extracted previously ~3.000 poly files into a separated folder. I have batch script, that split them, if I give the ...
2
votes
1answer
118 views

how use height tag data in Project-OSRM

I am using Project-OSRM in my project . All is works . But I need use elevation data. Downloaded osmosis master . And SRTM plugin added to osmosis. Also this worked fine . SRTM plugin started and I ...
1
vote
2answers
112 views

How to split osm data

I have a gigantic OSM geodata file of a city, and I want to split it into smaller files according to each group of tags. I googled it up and i found that there is a jar file caller splitter.jar . i ...
1
vote
2answers
482 views

extract amenity from pbf file using osmosis

I want to extract some amenity(atm) from a pbf file. Here is what i've found. osmosis --read-pbf myfile.pbf --tf accept-nodes amenity=atm --write-xml atm.osm Myfile.pbf is a file for Paris area ...
1
vote
1answer
93 views

Install latest Osmosis version on Ubuntu

I am using Ubuntu 14.04 and I would like to know the easiest way to install the latest (stable) version of Osmosis, which is 0.44. I ran sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo ...
1
vote
1answer
996 views

Most optimized way of extracting data from planet.osm

I want to cut extracts from planet.osm.bz2 . I have found this command bzcat downloaded.osm.bz2 | osmosis --read-xml enableDateParsing=no file=- --bounding-box top=49.5138 left=10.9351 bottom=49....
1
vote
2answers
3k views

How to filter OSM files based on tags using Osmosis?

I am working with .osm files and am trying to filter entities based on tags. I need to view only entities containing both source and attribution tags. I used the following to successfully filter all ...
1
vote
2answers
369 views

Best way to get osm.pbf data for a given extent?

I need to download/create a PBF file containing all osm data for several french urban areas. To select data, I have, for each urban area, the values of the attribute ref:INSEE for every city composing ...
1
vote
1answer
81 views

how to retrieve ATMs List from OSM

I am using this command to get the ATMs list osmosis --read-xml my_map.osm --tf accept-nodes amenity=atm --write-xml output-nodes.osm But it is giving the list of nodes and ways also...I want only ...
1
vote
1answer
209 views

How to test if Osmosis is installed on openSuse?

update; thanks to the answer i have done some more i teste like you recomended; linux-wyee:/home/martin/gis/test/test2/a_repo # :~> cnf osmosis linux-wyee:/home/martin/gis/test/test2/a_repo # ...
1
vote
2answers
290 views

Instruction to import OSM file using PostGIS in windows

I want to import OSM data into a PostGIS database running under windows. After a web search I learned that I should use osmosis. But most of the explanations are for Linux. But I have to use windows. ...
1
vote
1answer
199 views

Updating pgsnapshot database with osmosis - unable to read state from the server

I set up a local postgis database with osmosis using pgsnapshot schema as described here. The problem occurs when I try to update the database with latest minutely change sets as described here. ...
1
vote
1answer
211 views

Is it possible to split an *.osm.pbf file into multiple files?

I need to split a PBF file into multiple PBF files. Is this possible with any tool? I need to do this preferably in Python, but if there are any Java packages out there I would love to hear about them....
1
vote
1answer
625 views

Osmosis plugin map-writer doesn't exist

I need to create my own mapsforge map file... My system is Ubuntu 14.04.1 LTS I've installed osmosis via apt Since link in official documentation is not working i've found plugin file here and ...
1
vote
1answer
2k views

Merging OSM files with OSMOSIS and import to Postgres with OSM2PGSQL

I have a problem merging and then importing two OSM files. I downloaded to distinct .osm-files from cloudmade. They are not sharing any geographical attribute (as the first is the country Monaco, the ...
1
vote
1answer
208 views

Looking for a template project for OSM data

I have a PostGIS 2 database filled with OSM data for my country via Osmosis. Is there perhaps a template/project (!styling) for QGIS i could download, where i would simply change the provider of data ...
1
vote
1answer
35 views

how nominatim calculates addresses

I have imported openstreetmap Data for the country switzerland via osmosis in my MySql Database. Now i want to look for a specific Address in that Database. But i dont find a way to get the whole ...
1
vote
1answer
152 views

Import streetdata from OSM file to MySQL

I'm trying to import the address data of a specific country from an OSM file in a MySQL DB. I tried to insert the data with osmosis and also to filter them with osmfilter bevor run OSM, but without ...
1
vote
0answers
44 views

Updating an Openstreetmap PostgreSQL database after the system restore

My Openstreetmap PostgreSQL database takes a long time – about 25 hours by now – for updating via Osmosis after I had made a system restore at the last weekend. Before making the system restore it ...
1
vote
0answers
85 views

using changeset for larger region to update OSM data in PostGIS

I'm using the OSM import and update workflow described here to maintain OSM data in a PostGIS database. Import (osm2pgsql): osm2pgsql -c -d gps -U gps --cache 8000 --number-processes 4 --slim --flat-...
1
vote
0answers
25 views

osmosis 'unable to execute statement' error

I'm trying to use osmosis to import data to PostgreSQL, got an error: and, I executed the following command successfully:
1
vote
1answer
77 views

what is the Maximum Number of replica download possible from download.geofabrik.de?

I am trying to update more than 5 months of Nominatim europe data from download.geofabrik.de. For 8 to 10 days its works fine but after that it showing error failed to open stream: HTTP request ...