Questions tagged [openstreetmap]

OpenStreetMap is a collaborative project to create a free editable map of the world. The data is free, and free of legal and technical restrictions. OpenStreetMap is often shortened to OSM.

Filter by
Sorted by
Tagged with
3
votes
1answer
194 views

Cropping osm.pbf data without missing overlapping features?

for our offline maps tool we use *.osm.pbf data for input. As we often need cross border selections or just a country with some "buffer" around borders we use cropped osm data using osmctools. ...
0
votes
1answer
32 views

Import complete OSM data to PostgreSQL

I've downloaded OSM data from geofabrik site and use below command to import OSM data to PostgreSQL. osm2pgsql -c -d OSM --password -U postgres -H localhost -S E:\default.style E:\iran-latest.osm ...
2
votes
1answer
43 views

QGIS 3.22 zooming pans map incorrectly to the right

I've come across this issue when trying to zoom in OSM. Here is a video of the issue: https://i.imgur.com/emqxC7S.mp4 I don't have it when using the QGIS world map. Basically zooming straight in ...
0
votes
1answer
11 views

GeoServer CSS line direction arrow on OpenStreetMap data

Is it possible to create CSS line symbology with direction arrow for OpenStreetMap data?
0
votes
0answers
14 views

Getting width or area of line objects obtained from OpenStreetMap

I want to get width or area of the road data in OpenStreetMap. All of the road data from OSM are lines, so I cannot get the width or area info of these roads. If these were polygon data, I would have ...
4
votes
1answer
5k views

Extracting admin boundary data from OpenStreetMap?

I'm really just looking to get borders for cities and regions around the world. Ideally in a shapefile format. Does anyone know how I can do that from OpenStreetMap?
0
votes
1answer
352 views

Getting specific airport information with Overpass API

Hello I am new to OpenStreatMap and Overpass API. I would like to make a query in such a way that I can specify an airport name (for example: wien flughafen austria or the ICAO code) and get nodes, ...
0
votes
1answer
2k 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%...
3
votes
2answers
104 views

Getting the value of OSM tag contained in the 'other_tag' field using PyQGIS

I got my data from OSM and a lot of metadata is stored in field "other_tags", which is in itself an HSTORE key/value field. For instance, my "other_tags" contains a key voltage ...
0
votes
0answers
12 views

Overpass turbo delivers no data and no errors

I am trying to use overpass-turbo.eu to get all relations for public transport in a set bounding box. I used to work with this query: <osm-script output="xml" timeout="25"> ...
4
votes
4answers
1k views

Mapproxy as transparent OpenStreetMap cache

I followed the guide from https://wiki.openstreetmap.org/wiki/MapProxy to create a locale tile proxy for OpenStreetMap, because I need to access the same tiles over and over again. However, there seem ...
2
votes
2answers
1k views

Size expectations of OSM in PostGIS

I've got a PostGIS database that's been loaded with a couple of the continent downloads from geofabrik. One of these continents is Antartica - the pbf download is 29 MB but the size in the database ...
1
vote
3answers
202 views

Python: ogr2osm create osm file from WFS

Does anyone know if ogr2osm can use WFS Layer as input source to create a osm file i could not find anything in the documentation expect that it should support all ogr file formats. If so how can I ...
0
votes
1answer
270 views

Can't update map after first layer deletion on OpenLayers 6

So, I have a set of roads that have two configurations, a straight line, and a "snap to road" line, where the user can change between them by clicking the road icon on the toolbar. In order ...
3
votes
1answer
957 views

Serving OSM tiles - mod_tile/renderd/postgresql problem: I sometimes get 404 Not Found

When I request tiles I get sometimes 404 Not Found. Usually, if I request the same tile again it appears alright (with 200 OK). This is what I found in renderd logs: renderd[734]: An error occurred ...
5
votes
2answers
3k views

Symbolizing OSM rail lines in QGIS

I am struggling to come up with a proper layer style for a rail network extracted from OSM in QGIS. I just want active rail so I choose the "rail" tagged features (rule-based rendering). But since ...
2
votes
1answer
578 views

Query limit Nominatim

I have a local Nominatim instance in which I carry out searches within a bounding box. The problem is that for whatever value of limit, I get a maximum of 50 results. I understand that this is the ...
1
vote
0answers
35 views

Using -limit tag with ogr2ogr and -where takes too long

I am running some ogr2ogr commands to extract some data from OSM dataset. Since I don't want to extract all features of some condition because I can't see them all and is takes too long I am trying to ...
1
vote
0answers
21 views

OSRM Isochrone - straight/square edges

I am calculating 1 hour cycling distance using osrmIsochrone in R and Docker. I have noticed that the polygons have square/straight edges. (see below example) Increasing the res even to high values (...
0
votes
1answer
126 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
1answer
279 views

What is the correct way to query for traffic_signs in Overpass in an area?

I am new to all this stuff. I currently want to get all the traffic signs in an area. I am running this query in overpass turbo, but nothing is returning back to me. /* This is an example Overpass ...
0
votes
1answer
26 views

WMS layer not visible while clicking Leaflet's grouped basemap layers

I have a webpage that adds Geoserver's WMS layer to the OSM basemap and also provide GetFeatureInfo on map click. The webpage works fine. The code was adapted from here. For the sake of tidiness, I am ...
2
votes
1answer
539 views

Overpass API: Loop through cities and find total length of road centerline per city

I am trying to prepare a Overpass QL such a way that it iterate through a list of City Names and find sum of lengths of all the road centerline features which are falling inside the city ...
0
votes
1answer
18 views

Filtering out parts of a relation on osm2pgsql import

Is there any way with osm2pgsql to filter out members of a relation during the import phase, based upon the tags of the member? My use case is that I want to gather a set of road cycling relations, ...
1
vote
1answer
27 views

Converting OpenStreetMap.org protocolbuffer files into GDF 3.0 files using FME Desktop

I'm, trying to convert .osm.pbf files into GDF 3.0 files. I really need the GDF files because my tooling cannot accept anything else. I've contacted Safe because I wasn't getting an GDF file output, ...
0
votes
1answer
2k views

how to draw route from start point to destination point with intermediate points on Open Source Routing Machine?

I have four points like this: Lat Log 43.532284 -6.060434 43.533880 -6.065279 43.534269 -6.067436 43.533484 -6.071405 If I put these points in Open Source Routing ...
0
votes
1answer
76 views

How to query by Node ID in esy.osm.pbf

I've written the following Python code to query airports in Greater London: osm = esy.osm.pbf.File('/Users/michael.nares/Downloads/greater-london-latest.osm.pbf') airports = [entry for entry in osm if ...
-1
votes
1answer
28 views

Getting US Congressional district code by latitude and longitude OR user address

How can I get US Congressional District code by latitude and longitude OR user address? I have already downloaded Congressional district shapefile from Census files.
2
votes
1answer
432 views

Configure styling of OSM with T-Rex vector tile server

I am using T-Rex as vector tileserver, osm2pgsql for importing the .osm.pbf file into the PostGIS database (table format - planet_osm_line, planet_osm, point, planet_osm_polygon, planet_osm_road). I ...
0
votes
0answers
21 views

Path Distance Allocation tool in ArcGIS Pro, How to infer if source is a road network?

From what I understand, the tool, given a source like a point on map will give the least to highest cost to travel from that point throughout the raster. If my understanding is right, now If I give a ...
0
votes
0answers
15 views

Import only Point features with osm2pgsql | Import only certain Tags of point features with osm2pgsql

I am very new osm2pqsgl. I have downloaded a osm.pbf file for all of Europe and I want to add this data to my Postgres database. However, I am only interested in points, no linestrings nor polygon, ...
0
votes
0answers
42 views

Sumo's netconvert netoffset

Can anyone tell how Sumo's netconvert is using netoffset (lat,lon offset) when we convert osm file to .net.xml file in order to import in sumo ? Netoffset is present in .net.xml file in location tag.
0
votes
0answers
14 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
1answer
24 views

Removing a certain region from a pbf file

I have a PBF file from the complete planet and I want to insert that data into a PostGIS database. However, I would like to exclude a certain region, e.g. all data that belongs to the islands of Japan....
2
votes
1answer
181 views

Using ways table features of OpenStreetMap data

I have made this web-app http://160.75.133.173/openWebApp/routing.jsp Users just have to click two points to figure out the shortest possible route available connecting them. I am using OSM data and ...
0
votes
1answer
336 views

R Shiny Openstreetmaps - lock map within a set of upper and lower bounds

I am using Openstreetmaps with R/Shiny. I am trying to restrict map display to a given range of coordinates, i.e.xmin, ymin, xmax, ymax so that the users of the map won't be able to look other parts ...
1
vote
2answers
615 views

Get all city information (roads, buildings, ..etc) in OpenStreetMap via Overpass API

I want to draw a city (Avignon, France) with JavaFX and OpenStreetMap (via Overpass API). What is the QL request that I have to send to Overpass API to get this information?
0
votes
1answer
134 views

CartoCSS & change colours on road-colors.yaml

I am looking at just having one shading of colours for OSM roads like red. When I update the hue values to something like 10-45. I try the generate the generate_road_colours.mss file. But this ...
1
vote
3answers
247 views

Downloading OSM data for multiple polygons at one time

I am interested in the number of buildings found within each protected area in Africa. I have a protected area layer (WGS84) that I am using. The amount of data per protected area will be very small, ...
2
votes
1answer
55 views

mod_tile renders OpenStreetMap without some water

My rendered map: The same view from openstreetmap.org: What went wrong? I downloaded europe_latest.osm.pbf and nigeria_latest.osm.pbf and imported these files using --append. Now, I'm trying to ...
0
votes
1answer
731 views

Getting Bike Lanes using Overpass Turbo

I am trying to write a query to get all bike lanes to display on a map for my project. I want to display all types of bike lanes(shared ,dedicated,tracks etc) [out:json][timeout:25]; // gather ...
2
votes
4answers
2k views

Postgresql to mbtiles

Someboby please help me with understanding of the following question. I have many postgreSQL databases with osm data on a server. Each of them contains the map of the certain country. I want to look ...
0
votes
1answer
47 views

Overpass API: retrieve all buildings that contain indoor data

As the title says, I want to get all build features (nwr[building]) where there is indoor data (nwr[indoor]) available for them. My starting point for this search would be like this one: [out:json];(...
0
votes
1answer
641 views

Running own OpenLS using OpenStreetMap data

I'm looking to create my own geocoding service for a client. The web application will run on intranet and won't have access to the internet. Is there a way I can run OpenLS like service of geocoding ...
2
votes
1answer
51 views

Extract data from OSM

I would like to extract all the data that is coloured blue (water) from OSM for England. I'm doing this as I need a poylgon of the extents of inland waterways (Ordnance Survey don't hold this data). ...
1
vote
1answer
2k views

Building SQL query to get list of streets of city

From two layers in PostGIS (osm_places and osm_roads), I would need to have the roads belonging to a certain city. It would be fair enough to get the street names of all streets in a radius of X ...
2
votes
1answer
4k views

Displaying road with line on map from selected nodes using OpenStreetMap

We have started an educational side-project,for fun not as a commercial or trial software, to test what we have learned these last few months. We decided we would do a simple map navigation program ...
1
vote
0answers
46 views

What does the coordinate values represent when using WGS 84 / Pseudo-Mercator (EPSG:3857)?

I have been using QGIS for a couple of weeks now, mostly for data collection in my research project. Currently, I'm trying to plot these points, in a graph similar to this one (but in kilometers), I ...
0
votes
0answers
24 views

renderd outputting logs to stdout

I'm running mod_tile/renderd and apache in a docker container with supervisord. I'm starting renderd with "/usr/bin/renderd -f" but I don't see any log output in stdout besides the initial ...
3
votes
3answers
566 views

Identifying missing sidewalks in OpenStreetMap data [closed]

I have a web map that is using the pedestrian routing from Mapbox's directions API. However, users have seen very long circuitous paths in certain locations because it appears that sidewalks (and/or ...

1
2 3 4 5
59