All Questions
Tagged with openstreetmap osmosis
118 questions
0
votes
0
answers
46
views
How to extract all fuel stations (points and ways) from OpenStreetMap using Osmosis?
Currently, I am using the following Osmosis-Code:
osmosis --read-pbf europe-latest.osm.pbf --tf accept-nodes amenity=fuel --tf accept-ways amenity=fuel --tf reject-relations --used-node --write-pbf ...
0
votes
0
answers
178
views
Issue in my query to filter for only roads and highways using osmosis/osmfilter in my OSM file?
I wnat to extract all the road types and speed limits from the OSM file for the US. I started with a small subset (Delaware OSM), and I ran the following query to try to get rid of unnecessary ...
1
vote
0
answers
945
views
Write GeoPandas data into osm.pbf file using Python
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....
0
votes
1
answer
35
views
Is there a flag for osm osmosis to skip invalid nodes?
I am using osmosis to extract tags from an openstreetmap .bz2 file based on the command found in an answer here
bzcat us-west-latest.osm.bz2 | osmosis --rx - --log-progress --tf accept-ways man_made=...
1
vote
1
answer
477
views
OpenStreetMap pbf files- extracts all street/roads intersections in a bounding box
I wrote a query which extracts all street/roads intersections in a bounding box from OpenStreetMaps, as can be seen here:
<osm-script>
<query type="way" into="hw">
...
1
vote
1
answer
232
views
OpenStreetMap data OSMOSIS and MySQL - make faster?
How can I make dumping .osm data into a MySQL database faster using Osmosis? Currently 3 hours so far for the USA file but MySQL is only using 10-15 percent CPU, 10 percent RAM and HD is negligible (...
1
vote
1
answer
3k
views
Convert .osm/.pbf to .map for mapsforge
I have download latest version (0.46) of osmosis from
https://wiki.openstreetmap.org/wiki/Osmosis#Downloading
and mapsforge-map-writer-0.9.1.jar from http://search.maven.org/#search%7Cga%7C1%...
0
votes
1
answer
305
views
Exclude geographic extent of an OSM file
Osmium and Osmosis command tools have the capability of extracting a geographic extent from an OSM file.
osmosis
--read-xml test.osm --tee 1
--bounding-box left=15 top=46 --write-xml extract_test....
0
votes
1
answer
131
views
Сountry names are not displayed on the map
I`m trying to create map which has several layers. One of them consist of country borders (admin_level = 2,3), country name and region names.
I use data of coordinates of Armenia and China from https:/...
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 ...
0
votes
1
answer
77
views
Osmosis merge UTF-8 encoding issue
I am trying to merge together two .osm XML files using Osmosis from CLI.
In the XML files there is some public transport data (like bus stops) and some of them have an apostrophe (') in their name (as ...
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 ...
1
vote
1
answer
608
views
Extract Certain Elements from Global OSM Database
The goal is to find all waterways in Open Street Maps globally.
This is the equivalent for a random area in China in overpass turbo. Instead of doing it for this bounded area, I want to query ...
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?
...
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....
1
vote
0
answers
325
views
Using Osmosis library to query data from a PBF file
I know that it's possible to read (crosby.binary.osmosis.OsmosisReader) and write (crosby.binary.osmosis.OsmosisSerializer) a PBF file using the Osmosis library.
My question is if it's possible using ...
1
vote
1
answer
754
views
Look for all `highway` type `way` in certain area, using the overpass-api directly (not overpass turbo) or osmosis
I need all highway type way in certain area, I found this query the result I want, but using overpass-turbo (I would like to use only overpass-api or even better only osmosis):
<osm-script output=&...
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 ...
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....
1
vote
1
answer
541
views
Export planet OSM file from Rails port using Osmosis
In order to create a local OSM server and connecting JOSM to this, we've installed and configured Rails port openstreetmap/openstreetmap-website. The next step was to insert a sample OSM file into ...
1
vote
1
answer
102
views
Get all geom points that are more than 3 meters from the linestring, at big scale
With the help of Osmosis i was able to import all the data of a Open Street Map city, (Nodes, ways, etc...).
In another table at same db, i have Millions locations in that city, these locations are ...
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 ...
2
votes
0
answers
478
views
Extracting highways from OSM
I am trying to extract all highway types for the world from OSM through Osmosis. My Osmosis command looks like below, however, after the extract, I find certain roads (especially, motorways and trunk ...
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 ...
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 ...
1
vote
0
answers
565
views
An illegal reflective access operation has occurred: Problem trying to merge changefile with .pbf data
After downloading a changefile (525.osc.gz) and a planet file (planet-latest.osm.pbf) I am trying to merge the changes with the following command:
osmosis --read-xml-change file="525.osc.gz" --read-...
0
votes
1
answer
1k
views
OSM Data Extract Streetnames for cities
How to extract streetnames with osmosis (Java)?
I have tried to process all Nodes. I put them in a Map<String, List> meaning Map<CityName, ListOfStreetnamesOfThatCity>:
@Override
public ...
0
votes
1
answer
1k
views
OSRM how to use my own map
I download a cartography bike from the open data data link to Postgres then I convert it to osm using:
python ogr2osm.py "PG:dbname=x user=x host=localhost" --sql="SELECT * FROM bike_network" --...
0
votes
0
answers
1k
views
How convert OSM relation to GeoJSON -based all kind of relation member roles
I just want to convert OSM data to GeoJSON where it is pretty simple with node and way tags of OSM data, but relation which is giving complex can't find the logic to convert OSM relation to GeoJSON ...
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 ...
-1
votes
1
answer
2k
views
OSM converter cannot convert after renaming PBF to OSM?
I downloaded a .pbf file from this link and then I renamed it to tu.osm because it is an .osm file.
Then I used osmconverter to convert it to .pbf using:
c:\osm>osmconvert tu.osm --out-pbf >tu....
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 ...
1
vote
1
answer
118
views
Remove some elements from way
I am passing osmosis with along the base parameters this additional option: --tf accept-nodes way=*
With this I could filter only the <way...> nodes and the result is something like this:
<...
1
vote
1
answer
324
views
Getting area covered by intersection or junction?
I need a way to get following information for each intersection or junction in Berlin:
latitude and longitude
area covered
I could get all Junctions from openstreetmap as nodes, which would give me ...
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 ...
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 ...
1
vote
1
answer
162
views
Osmosis failed: ERROR: relation "pend_ways" does not exist
I tried to generate osm update using osmosis and osmium(omsium only for setting configuration.txt from existing russia-latest.osm.pbf).
I use osmosis like that:
osm2pgsql -append --slim --cache ...
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 ...
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. ...
1
vote
0
answers
182
views
How can I omit points when filtering OSM data with Osmosis
I am trying to get data for rivers/waterways around the world. I have downloaded the planet file from OSM (as well as a North America file from Geofabrik), and am trying to use Osmosis to filter out ...
2
votes
0
answers
297
views
osmosis --used-node keyword does not grab all relevant nodes
I am trying to filter an osm.pbf file using osmosis. The following is my filter:
osmosis
--read-pbf-fast metadata-unfiltered.osm.pbf workers=8
--tf accept-ways <placeholder>
--tf reject-...
1
vote
1
answer
375
views
railway=* doesn't extract rails
I'm trying to extract everything related to railways from pbf file using osmosis. I've tried several ways but couldn't find a solution. I got everthing about railways extracted except rails. Here is ...
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-...
0
votes
4
answers
956
views
Saving to different schema using Osmosis?
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 ...
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 ...
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....
2
votes
0
answers
693
views
import *.osm.bz2 to postgresql using OSMOSIS causes errors
I am trying to import osm.bz2 flie from http://download.geofabrik.de/.
I think I am almost there though somehow my CMD returns error messages
I downloaded osmosis-latest file from http://bretth.dev....
1
vote
2
answers
2k
views
Convert a big .osm file to .map
I have a 3.3GB .osm file and I'm trying to convert it to .map with Osmosis with the following
osmosis --read-xml mexico.osm --mapfile-writer file=mexico.map
but I get the java.lang.OutOfMemoryError, ...
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 ...
0
votes
1
answer
556
views
Nominatim North America update
I want to keep updated my fresh install of Nominatim 3.1.0. I have installed North America maps from this (http://download.geofabrik.de/north-america-latest.osm.pbf) file.
According to the article (...