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

learn more… | top users | synonyms

11
votes
3answers
7k 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. ...
4
votes
1answer
286 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 ...
3
votes
2answers
113 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 ...
3
votes
2answers
262 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
1answer
416 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
269 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 ...
2
votes
2answers
43 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
433 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 ...
2
votes
1answer
1k 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 ...
2
votes
2answers
43 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 ...
2
votes
1answer
292 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 ...
2
votes
1answer
127 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 ...
2
votes
1answer
371 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
0answers
216 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 ...
1
vote
2answers
2k 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
1answer
26 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 ...
1
vote
1answer
35 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
151 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
1answer
20 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 ...
1
vote
1answer
35 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 ...
1
vote
1answer
156 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
0answers
150 views

error in data read in OSMembrane osmosis

I am just learning to use OSMembrane, and i created a simple pipeline to read an .osm file and write the same in another file. But it says error in reading the file. The report is like this and I ...
1
vote
2answers
75 views

Filter out osm data that have been edited after some timestamp

I want to get data after some timestamp. I have downloaded the osm file of the area. I went through the osmosis documentation but could not find a way to filter it by time. The result should be same ...
0
votes
1answer
73 views

Extract specific amenity Osmosis with Java api

I need to extract restaurants from a planet.osm.pbf file. I assume the best way to do this is with Osmosis, however I need to save this data in my own database format. (Not something standard like ...
0
votes
1answer
100 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 ...
0
votes
1answer
12 views

Merging different tag filtering with Osmosis

I want to extract the different points of interest from OpenStreetMap. Some of them are represented as ways (e.g., a large sport center might be represented as the building, i.e., as a way), others ...
0
votes
4answers
32 views

Trouble converting .osm to .pbf with Osmosis

I would like to convert a shp file to map file. I know should use these steps: shp -> osm -> pbf -> map For step 1 I use a python script : ogr2osm.py For step 2 I use osmosis, but I get ...
0
votes
1answer
39 views

Osmosis, Save to different schema

Does anyone know how to use osmosis to save to a different schema? I used the pgsnapshot_schema_0.6.sql to create a blank data table, but it always creates it in the public schema. I need to create ...
0
votes
0answers
18 views

errors while downloading a gis - file

i have serious errors with the download of a osmosis file see the terminal-code - sorry for presenting this in German... Kann nicht nach »»niedersachsen-latest.osm.pbf«« schreiben (Keine ...
0
votes
0answers
4 views

refactoring a osmfilter to do a better work

hello dear gis experts new to the gis-technique: i am workin with the following tools: this http://wiki.openstreetmap.org/wiki/DE:Osmconvert and that ...
0
votes
0answers
74 views

Extract Street, City, And State/Region from Planet.osm with Osmosis

How can I extract street, city, and state/region data from Osmosis, and nothing else? I know using Xapi I could query under ways and use name=* to get streets, but I need to do this with Osmosis, in ...
0
votes
0answers
52 views

conversion from .osm to .map with mapwriter plugin fails

I have a problem with Osmosis v 0.43 with mapsforge mapwriter plugin 0.3.0. on Windows. A command osmosis --read-xml file=C:\geo\testmap.osm --mw file=C:\geo\genmap.map bbox=0.0,0.0,51.9,19.2 fails ...
0
votes
1answer
97 views

How to get the linestring of a way in postgis with pg_snapshot schema

I have loaded some data from openstreetmap using osmosis and its pg_snapshot schema. This results in a table wayswhich contains a list of nodesreferenced by their ids: select w.nodes from ways as w ...
0
votes
0answers
41 views

Set GeoServer to access a Postgresql database, Simple or Snapshot schema, populated by Osmosis

I have a postgresql database which I keep updated using Osmosis. Osmosis can write to two different database schemas, named Simple and Snapshot. There are not that much different from the database ...
0
votes
0answers
47 views

OSMOSIS tag filtering “OR” statement

I want to import only all ways with a specific tag OR all ways used by relations having a specific tag. With the following command, I only get ways with the tag and the relations but not the ways ...
0
votes
1answer
265 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 ...