Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
14 views

Error when importing merged osm.pbf files into nominatim's PostgreSQL database

Im using Nominatim 3.3 (https://github.com/mediagis/nominatim-docker/tree/master/3.3) within docker. I already imported succesfully 2 regions (not together, my PostgreSQL database contained one region ...
1
vote
1answer
21 views

Converting shapefile to .osm.pbf

I am trying to convert a GIS LINE shapefile into a .osm.pbf file on Windows. I've done some research on the topic and some tools that kept coming out are: Merkaator shp2osm - which deals mostly with ...
0
votes
0answers
13 views

How to use Nominatim API to show an iframe with a map from openstreetmap? [on hold]

I want to exploit API requests to add maps to my webpage dynamically, according to which name of a city the user types into the search field. I want to do that by using Javascript/JQUERY and JSON ...
1
vote
1answer
24 views

Query nodes and attributes of parent ways

Does the Overpass API provide a way to query a list of nodes and some attributes of their parent ways, and return the data in CSV format? For example, the following will give me all motorway ...
0
votes
1answer
18 views

Extruding vector using one of its attributes in GRASS?

I'm following this tutorial: https://grasswiki.osgeo.org/wiki/Extrude_2D_polygons_to_3D. This is what I've done so far (inside GRASS): - Import a DEM HGT file: > r.in.srtm input=S23W043.hgt --...
0
votes
0answers
10 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
14 views

Normalize OSM geometry to 1x1 coordinate system

I'm extracting a couple of geometries with overpass turbo and need to "normalize" their shape from lat-lon to [[0-1][0-1]] coordinates. The first thing I've tried is probably pretty wrong: get ...
0
votes
0answers
14 views

How to merge OSM PBF files using osmconvert? [closed]

Note I wrote this command and Nothing worked.
1
vote
1answer
17 views

Export boundaries as gpx file from Open Street Map?

How can I export the boundaries of this area as GPX? Is there any way? https://www.openstreetmap.org/relation/1595533#map=14/50.8945/14.3287 Background: I'm planing a hiking tour through the ...
1
vote
0answers
25 views

CRS Options Missing

I'm very new to GIS and am trying to use QGIS 3.4.8 to map some spatial data for a larger project. I've been using OpenStreetMap as my basemap, managed to load in my vector layers and for a few days I ...
1
vote
0answers
32 views

Vector tile generation

I have a full planet imported in PostgreSQL with imposm3. What is the best way to generate vector tiles (MVT in .mbtiles) from PBF/PostgreSQL with maximum hardware utilization (distributed generation ...
0
votes
0answers
35 views

Adding navigation to QGIS Shapefile?

I'm looking to create an APP with Navigation Offline. The problem is my point of interest is not offered by OpenStreetMap (OSM). I would like to know if can i add navigation to a shapefile (mine) or ...
1
vote
0answers
41 views

Getting distance between route and points around that route?

I have a route between 2 points by means of OSM routing service. I want to get the distance between route and points around. How can I achieve this? I created this route by the following example ...
-3
votes
1answer
40 views

How to (logic or software) extract the data from Open Street Map .osm (xml) files, so I get all relevant data for a given area? [closed]

So I have downloaded the file for Berlin from http://download.geofabrik.de/europe/germany.html and have extracted it to berlin-latest.osm And want to preprocess it for my usage and for that I want ...
0
votes
1answer
38 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
0answers
46 views

osmconvert --all-to-nodes returns same point count as the raw data has

According to this question Some OSM tags in polygons and some in points - how to bring them together I used osmconvert --all-to-nodes to extract the central points of all ways and relations. I used a ...
1
vote
1answer
33 views

Overpass API AROUND filter doesn't work with small distances

Given the coordinates (55.8141015,26.8400810) I need to check if this location is inside a cemetery. My initial idea was that I would easily make such request: ( way[landuse=cemetery] (around:...
3
votes
1answer
89 views

.mbtiles file with PBF to .mbtiles with PNG or JPEG

I need this conversion to embed the mbtiles file in a mobile app. I know there are server based rendering solutions, but I just need to make this conversion once for a single file with OpenStreetMap ....
1
vote
1answer
46 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
0answers
34 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 ...
0
votes
0answers
42 views

How to compute distance between two spherical Mercator points

I am computing the Mercator points according to the top answer at Convert latitude/longitude point to a pixels (x,y) on Mercator projection. Now that I have two Mercator points on a spherical ...
0
votes
1answer
47 views

OSM: How often does OpenStreetMap update their building footprint data? [closed]

I was wondering if anyone knows how often OpenStreetMap updates their building footprint data. I can pull the building data from the Nominatim API but it does not indicate when that footprint was ...
1
vote
2answers
39 views

How to get number of Lane from OSM?

I am using OSM for my project, I have downloaded data from http://download.geofabrik.de/ in the OSM file and imported the data in POSTGIS, In the planet_osm_roads, I am not able to see any key related ...
0
votes
0answers
37 views

Filter geofabrik to Mapbox Style

GeoFabrik's extracts - as expected - have a massive amount of unnecessary information for most applications. Filtering this information is a critical step to decrease the map's size, especially for ...
1
vote
1answer
56 views

Place/address search in QGIS 3.x

Are there any plugins for QGIS 3.x versions to search for places or addresses? I know about "OSM place search" in QGIS 2.x, but I can't find a plugin in the repository doing the same job for QGIS 3.x.
0
votes
0answers
17 views

From EE GeoTiff to MS Word PNG/JPG?

I would like to put some images from Earth Engine (EE) in my report. So far I screenshot it and paste PNG on MS Word. I see EE can export images to Google Drive. But its geotiff, I can't just paste ...
0
votes
0answers
14 views

Computing center and zoom level for a set of points

I need to duplicate google's static map image API api on an internal server with no internet access using OpenStreetMaps. I did find the OSM Wiki Page covering this topic. I initially looked at OSM ...
2
votes
1answer
60 views

Improving Mapnik render time

I'm adding polylines (elevation curves) to a world map. Said polylines are stored in a PostgreSQL database from gdal_contour tool. The geometry columns (LineString, 3857) has a GIST index and a ...
0
votes
1answer
19 views

Free SDK Android and IOS

I am a young developer in Africa. I want to use OSM on the web and mobile (Android and IOS). Is there a free cross-platform SDK at 100% and open source for this? Or separate free SDKs for Android ...
1
vote
1answer
45 views

Some OSM tags in polygons and some in points - how to bring them together

Tagging objects in OSM can sometimes be done as polygon or as point. For example ruins or museum So far so good, but finding a specific object in a osm-dataset makes it necessary to look into the ...
1
vote
1answer
51 views

GIST index not used by query optimizer on geometry field

I'm trying to add elevation curves on an OpenStreetMap tile server I'm currently building. I created a table in PostgreSQL to store the shapes of the whole world. Structure was defined by gdal_contour ...
0
votes
0answers
18 views

Street names from OpenStreetMap lost? [duplicate]

I always lose the names of the streets from the OpenStreetMap layer when I convert the document to PDF to print it. Even if I directly print from QGIS the street names get lost. How can I get the ...
1
vote
1answer
30 views

Returning data based on clicked marker using Leaflet?

How do I get the data according to the marker I clicked on? for(i in data) { var title = data[i].title, id = data[i].id, position = data[i].position, kriteria = data[i]....
0
votes
1answer
53 views

Overpass query Paris metro stations with line numbers?

I understand from the wiki article of Paris Metro, that there are 16 lines and 302 stations. Could you help me run an overpass query that can give me the data? i.e I can see which station belongs to ...
0
votes
0answers
30 views

Batch polygon clip doesn't work [ArcGIS]

I have an OSM layers of a region, but want to extract data only for city that I am interested in for further export in Illustrator: AYCS, I've created a polygon which includes the territory that I am ...
1
vote
2answers
74 views

OpenRailway Map basemap in QGIS

I'm a bit of a QGIS noob when it comes to anything other than the basics so hoping someone has an easy solution to this. I am trying to use Open Railway Maps ( https://www.openrailwaymap.org/ ) as a ...
0
votes
1answer
29 views

Using renderd on OSM tile server?

I followed this tutorial and have some troubles. When I restart and get status of the renderd service, I get the following error : renderd[8162]: An error occurred while loading the map layer '...
0
votes
0answers
20 views

Creating and saving OpenStreetMap locations within GeoJSON file?

I am not experienced in working with OpenStreetMap, but I am wanting to collect points. All points that the user collects will be saved inside a GeoJSON file, however whenever I use this, the file is ...
0
votes
1answer
63 views

Citation of Base Maps?

What is the convention for acknowledging the source of the base map used in a map generated in QGIS via the OpenLayers plug-in? I'm a teacher of high school geography students who use QGIS to ...
1
vote
1answer
25 views

Can exporting geodata to OSM data format with less precision cause self-intersections? How to address it?

I have my geodata layers processed in GRASS GIS. Its internal tools report that the topology has no problems, such as self- and mutual intersections. Then I export the data to a GML file which then ...
2
votes
1answer
71 views

Load OSM data into PostgreSQL using Python script

I want to load OSM data into PostgreSQL database using Python script. When I am trying this Python script, it doesn't load OSM data into database. Can anyone guide me? I know how to load data in ...
1
vote
0answers
52 views

Map Matching between two geometry (line string)

I have two tables in PostGIS, both having line string as the geometry type. I wanted to extract a similar or exact matching street. Can you please suggest query or algorithm for it? Table 1 column ...
0
votes
1answer
49 views

WMS tile overlay displays only after map pan

I am new to Leaflet and OSM. I am trying to overlay a radar layer which is WMS tile layer. The map will load, but the WMS tile layer does not show unless I pan the map and then it displays. It also ...
0
votes
1answer
32 views

How to add a custom layer to OSM data in switch2osm?

I'm new to switch2osm and I've created an OSM Tile Server with switch2osm on Ubuntu 16.04 LTS. It uses Apache, Mod_tile, renderd and Mapnik to render tiles. It uses PostgreSQL as DBMS and osm2pgsql to ...
1
vote
2answers
39 views

What to filter out if making world map from OpenStreetMap data?

I'm making a world pin map, high resolution, high detail map. I've downloaded the planet-latest and played around with it. Before importing the file into a database I need to filter out nodes/objects ...
1
vote
0answers
49 views

How to render vector data with muliple geometry types to georefrenced raster

I am using OSM vector data which has been converted into shapefiles. I have polygons representing buildings, landuse and lines representing roads as shown bellow: I want to assign some symbology to ...
0
votes
2answers
168 views

Download tile layers for use offline

I would like to download tile layers in this form: {atlas_name}/{z}/{x}/{y}.png Because I want to use them offline with my leaflet map. However, I can't find what are the approaches to download ...
0
votes
1answer
49 views

Mapbox Vector Tiles appear to lack accurate intersection nodes?

Mapbox Vector Tiles appear to lack accurate intersection nodes. Is this a bug? i.e. should the tile's geojson include a shared node between two intersecting streets? Details: Using MVT's from http:...
0
votes
0answers
20 views

Mapbox Unity SDK not getting all correct building IDs from Openstreetmap

I'm developing a location based game and using the buildings as a part of the element of the game. I'm using the Mapbox SDK 2.0 in unity. Now I'm noticing on some part of the maps are loaded, but ...
0
votes
2answers
83 views

How to convert multiple shapefiles of different geometries into a georeferenced raster

I have multiple shapefiles extracted from OSM vector data, as shown in the image bellow: How can I render this into a raster of a specified resolution? Is there a way to do that using QGIS or ...