Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
41 votes
4 answers
39k 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 ...
uriel's user avatar
  • 587
9 votes
3 answers
3k 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. ...
tomfumb's user avatar
  • 3,698
9 votes
2 answers
1k views

Missing roads from OpenStreetMap data with osmosis

I am currently trying to extract road networks from OpenStreetMap dumps downloaded on Geofabrik. I am using the following osmosis (version 0.45) command to extract roads: osmosis \ --rbf input.osm....
ArMoraer's user avatar
  • 5,719
7 votes
1 answer
2k 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 ...
TylerDurden's user avatar
7 votes
1 answer
2k 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 ...
hfhc2's user avatar
  • 213
6 votes
2 answers
11k 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 ...
ccamara's user avatar
  • 902
5 votes
2 answers
2k 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 ...
poshan's user avatar
  • 771
5 votes
1 answer
300 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 ...
RobinLovelace's user avatar
4 votes
2 answers
7k 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 ...
Dustin's user avatar
  • 141
4 votes
1 answer
616 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='...
Iñigo's user avatar
  • 455
4 votes
2 answers
3k views

How to filter OSM data for addr keys with Osmosis

I'm trying to import the address data of a specific country from an OSM file into a MySQL DB. I tried to insert the data with osmosis and also to filter them with osmfilter before running OSM but ...
Billy Sanders's user avatar
4 votes
1 answer
373 views

Tracking OSM "Planet" Extract dates

I'm trying to build a GUI that allows replacement / update of the PostGIS database that holds my OSM extract (which I use for rendering, typical mapnik / tile server arrangement). I'd like to show ...
BradHards's user avatar
  • 12.9k
4 votes
2 answers
3k views

Splitting *.osm.pbf file into multiple files?

I need to split a PBF file into multiple PBF files. Is this possible with any tool using Python? I looked at osmosis for example, but from what I understand from the documentation it is only ...
Iulian's user avatar
  • 195
4 votes
2 answers
3k 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 ...
Yves's user avatar
  • 151
3 votes
3 answers
9k 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 ...
Davide Berra's user avatar
3 votes
1 answer
4k views

How to query relations and visualise it on Overpass turbo

I would like to know the reason the below posted code shows ways and nodes? As shown below, I want to visualise only the relations but when I run the code on overpass turbo, it shows ways and nodes? ...
Amrmsmb's user avatar
  • 305
3 votes
2 answers
7k 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 ...
superrache's user avatar
3 votes
1 answer
1k 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/...
culebrón's user avatar
  • 2,344
3 votes
1 answer
2k views

pgsql2osm? How to generate osm files from osm2pgsql database?

I want a method to export osm files from a Postgres database. I already have an osm2pgsql database, an apidb database, and a nominatim database in which I have imported osm files. Now I need to ...
valdeci's user avatar
  • 278
3 votes
4 answers
6k views

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 an ...
Ali's user avatar
  • 51
3 votes
1 answer
730 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 ...
Joey's user avatar
  • 151
3 votes
1 answer
726 views

Add data to existing populated PostGIS database through Osmosis

I have a PostGIS database populated with data using /home/user/bin/osmosis-latest/bin/osmosis --read-xml /media/sf_fg_customscenery/projects/LSMP/lsmp.osm --log-progress --write-pgsql database=osmogis....
vanosten's user avatar
3 votes
1 answer
2k 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-...
MWH's user avatar
  • 169
3 votes
0 answers
761 views

Using OSMOSIS to extract multipolygon data from .pbf file

To update my database I need to extract some data from the OSM database. To do it I have downloaded the osm *.pbf file from the website of GEOFABRIK. From this PBF file I wish to extract all the ...
Rome's user avatar
  • 31
3 votes
0 answers
356 views

How to update OSM data, without recreating the PostGIS database?

We are currently working with GeoServer and PostGis which stores the OSM data for Switzerland. I would like to know, how to update the OSM data for my GeoServer. At my current level of knowledge, I ...
Kaffi's user avatar
  • 123
3 votes
0 answers
416 views

Keeping used relations (i.e., member relations) when using --tag-filter in Osmosis?

I just got started with the OpenStreetMap and their OSM-files. I am using Osmosis (https://wiki.openstreetmap.org/wiki/Osmosis) to filter a .osm file. I noticed that used relations are not included in ...
Philipp's user avatar
  • 143
2 votes
2 answers
2k 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 ...
Antonin's user avatar
  • 875
2 votes
2 answers
9k 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. ...
Jan-Philipp Kolb's user avatar
2 votes
3 answers
4k 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.geofabrik....
deval.techie's user avatar
2 votes
1 answer
3k views

Extracting POI from Openstreetmap (*.osm)

I've searched the web and found out that "osmosis" is the key. also, this blog http://learnosm.org/en/osm-data/osmosis/ gave me a huge hint and i made it to extract POI tag by tag (by the way, i am ...
Pil Kwon's user avatar
  • 1,050
2 votes
2 answers
2k 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 (...
Loki's user avatar
  • 21
2 votes
2 answers
5k 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....
MR.GEWA's user avatar
  • 135
2 votes
2 answers
1k views

Filtering out OpenStreetMap data made by specific users using osmosis?

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 ...
elvimc's user avatar
  • 21
2 votes
1 answer
677 views

Unclosed linestring to polygon works with QGIS but not with PostGIS

Just like the title, I am extracting OSM riverbank and a lot of riverbanks in OSM is in 'unclosed' linestring. This is the original river shape i extracted from OSM In order to polygonize the ...
Pil Kwon's user avatar
  • 1,050
2 votes
2 answers
479 views

Updating One Country's OSM Data through Osomosis

I would like to know how a single country's OSM data is kept up to date by osmosis. This is not a question regarding the method of doing the update, rather how osmosis does it. I downloaded the OSM ...
picmate's user avatar
  • 347
2 votes
1 answer
1k 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 can't find a way to get the whole ...
Billy Sanders's user avatar
2 votes
1 answer
260 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 ...
Dennis Bauszus's user avatar
2 votes
2 answers
2k 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 ...
Antonin's user avatar
  • 875
2 votes
1 answer
130 views

Install osmosis without wget and still create its folder?

I am trying to install osmosis onto my Ubuntu 16.04 PC. I tried to do it using this explanation, but I can't download osmosis-latest.tgz because the link throws a 404 error. Now I installed it by ...
end9's user avatar
  • 23
2 votes
1 answer
562 views

How does osmosis take so much disk space?

I've been trying to use osmosis for importing osm raw data to a db. First, it failed due to lack of sufficient disk space. I made some more space and launched it one more time. That time there was ...
Rafak's user avatar
  • 23
2 votes
1 answer
2k views

Getting coordinates of ways in *.pbf file?

I would like to extract some lines and polygons from OSM data (In the format of .pbf). After using osmosis I can get a osm file with all the elements like this: <way id="102670197" version="1" ...
natsuapo's user avatar
  • 593
2 votes
1 answer
983 views

OSM update without losing 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 ...
phlegx's user avatar
  • 121
2 votes
1 answer
2k views

Nominatim installation error: Out of memory for node cache dense index

I am installing Nominatim on my Ubuntu server 14.04 through this link and trying to load OSM data into my postgreSQL database. For loading into my database I am using this command as given in the link:...
python's user avatar
  • 285
2 votes
2 answers
1k 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 ...
Ryan's user avatar
  • 123
2 votes
1 answer
1k 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. ...
Stepi's user avatar
  • 41
2 votes
3 answers
918 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-...
RobinLovelace's user avatar
2 votes
1 answer
998 views

OSM updates with Osmosis -> Osm2Pgsql resulting in missing features?

For my project, I have successfully created a PostgreSQL database of the entire planet file using osm2pgsql. My next task was to sucessfuly update the database using daily change files through the ...
Randy Bo Bandy's user avatar
2 votes
1 answer
550 views

How to extract seamarks from OSM PBF?

Ref to this: http://forum.openseamap.org/viewtopic.php?id=2060 and this: How to extract primary and secondary roads from OSM data? and this: http://wiki.openstreetmap.org/wiki/Seamarks/Seamark_Objects ...
Magno C's user avatar
  • 2,190
2 votes
1 answer
161 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:...
Roman N's user avatar
  • 213
2 votes
1 answer
3k 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 ...
Ali's user avatar
  • 51