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
12 views

Where to get osm history extracts in 2019?

I was trying to make an animation of my city growing, but stumbled upon lack of data. In 2018 geofabrik stopped providing history extracts (osh.pbf), and that was the last source of history files, as ...
0
votes
0answers
64 views

Coordinates format [on hold]

How to read this Point(601872.0567818936 5789972.687450857)? This point is consist of latitude and longitude. So I need to know how can I convert that to Degrees and Minutes? Another example of the ...
1
vote
0answers
20 views

Extracting city information only from OpenStreetMap

I need to extract City as well as hierarchy of admin entities for selected countries. My understanding for now is that I'll have to get node primarily and find a clever filtering based on tags. And ...
0
votes
0answers
13 views

osm2pgsql: does table planet_osm_roads contain any non-duplicate data?

Although there is a osm wiki page that attempts to shed light on the different tables which are created within a postgres/postgis database there is something that is not quite made clear: Is the data ...
1
vote
0answers
19 views

Get all road intersecting a polygon

I am trying to read from a local instance of the OpenStreetMap database all roads intersecting a boundary coming from another database. I actually get a result with the following piece of code: #...
0
votes
0answers
11 views

Derive Country and Maritime Border From OpenStreetMap using QGIS

I would like to create a dataset containing polygons representing the a country and but including the sea immediately next to it. I have found the boundary=maritime tag on Open Street Map, I thought ...
1
vote
1answer
27 views

Using command line gdal to open and convert OSM file to feature class

I have an file that is in the format .osm.pbf. It's about 8GB. I want to convert it to a feature class and place it in a file geodatabase. From what I can see, the simplest way to do that is using ...
1
vote
1answer
25 views

Raster Image Tiles created using GDAL2Tiles (from GDAL 2.4.2) does not align properly with Open Street Map Tile layer

I am trying show a custom tile overlay (created from a raster image) on top of openstreetmap base layer using Leaflet. I used one of the raster images from https://www.naturalearthdata.com/downloads/...
1
vote
1answer
34 views

QuickOSM using Wild Cards / RegEx

Can someone explain to me how to use wild cards with QuickOSM? I'm trying to match all shops with a name starting with a specific word (e.g. Costco).
2
votes
2answers
73 views

How to get distance between a point and a list of highways?

I'm new to GIS. I'm trying to determine whether a list of GPS points are within a highway/road (in terms of meters). I have downloaded a OSM file and populated my database using osm2pgsql. I have the ...
0
votes
0answers
20 views

WGET files from Geofabrik - Connection Refused [closed]

I am programmatically downloading files via Geofabrik using the following command: wget http://download.geofabrik.de/continent/country-latest.osm.pbf. Sometimes it works fine, but sometimes I get a ...
0
votes
0answers
10 views

Enable Handler Class Methods to Yield Instance Attribute in Pyosmium

This question is regarding the package pyosmium specifically. I was just wondering if the following functionality is possible, and if not how it could be implemented. I want to stream/yield certain ...
0
votes
0answers
21 views

Classifying if a coordinate lies on a building

I'm trying to classify if a given coordinate (latitude, longitude) lies within a building footprint, street or elsewhere. To accomplish this task, I'm using OSM data and the Overpass API. I wrote the ...
0
votes
0answers
14 views

Extracting data from OSM with ogr2ogr — blank output

I have an issue while extracting data from osm via ogr2ogr. What I tried: When I run from command line: ogr2ogr -f "ESRI Shapefile" example.shp source.pbf -lco ENCODING=UTF-8 -progress -sql "SELECT ...
2
votes
2answers
63 views

Extracting road surface type from OSM files [closed]

I'm trying to export all the road surface information (all countries) from OSM and create a layer on top of Mapbox. Is there a tool to download only the necessary information that I need? I could not ...
2
votes
0answers
48 views

Find polygons which are intersecting / touches with defined polygon [closed]

I have a polygon and I would like to find all polygons from the table planet_osm_polygon which my polygon lies in or touches. I tried to use st_intersects function but it doesn't work as I would ...
0
votes
0answers
19 views

Add basemap to dbeaver spatial viewer

In various screen grabs of the dbeaver spatial view such as the blog post Geometry viewer added to DBeaver a basemap is shown for the spatial data. How do I add a basemap to OSM?
0
votes
1answer
19 views

Extract custom shape area from Openstreetmap pbf

I have a full-country data download of OSM from http://download.geofabrik.de/ . I want to extract OSM data for a target area that is thin and winding/irregular in shape. I could take the max-min lat-...
0
votes
1answer
41 views

GDAL/OGR losing OSM closed way features that OGR2OGR imports

I have managed to import an OSM PBF file into QGIS using ogr2ogr -> SQLite and then importing layers using the GUI- (essentially as per the first step in this answer : ogr2ogr -f "SQLite" -dsco ...
2
votes
2answers
54 views

OSM Thunderforest API keys in QGIS3

This question has been asked for QGIS 2 and it was poorly answered. I have my API key from Thunderforest for accessing the OSM maps. I am trying to use the 'OSM TF outdoors' map. It requires an API ...
1
vote
0answers
29 views

Osm2pgsql failed Cannot detect file format. Try using -r

I use Osm2pgsql 1.0 and this my action : sudo osm2pgsql --slim -c --cache 29000 --proj 3857 russia-latest.osm.pbf -H xxxx.local -d osm -U osm_user -W -P 5432 was failed after some time: ...
0
votes
1answer
35 views

How to set CRS on OpenStreetMap? V. 3.8

I am completely new to QGIS and have a basic wuestion, I am trying to create a map with OpenStreetMap and set it to a specific coordinate system. The problem is that when I set the CRS the map ...
0
votes
0answers
43 views

GeoServer layer disappearing from Leaflet map at max zoom?

I am developing an application that uses GeoServer + Leaflet + PostGIS. I created my database-based layers within GeoServer. As a basemap I am using OSM. When the maximum zoom occurs with the active ...
0
votes
1answer
44 views

Finding the distance between two coordinates (longitudes/latitudes) which are not found as nodes in OSM

I intend to make my own OSM Router, and I do not want to use third party OSM routers. WHAT I HAVE DONE: I have downloaded OSM data in XML format and applied different algorithms to find the shortest ...
0
votes
0answers
9 views

OpenLayers 2 how to load overlay a raster image as they are scrolled into view

I am overlaying a raster map over an OSM base with variable opacity here https://www.aeolian.org.uk/mapexample/slider.html. I want this to work over a larger area, so want to load neighbouring raster ...
0
votes
3answers
49 views

Seeking data for São Tomé and Príncipe?

I am a total GIS beginner and have been trying to make some simple maps of the nation of São Tomé and Príncipe using QGIS and publicly available data. The readily available data I find comes from OSM. ...
1
vote
1answer
86 views

Data is not appearing in a local OSM server after applying changes to it

Our company has a local OpenStreetMap server hosted on its own server and domain. Our cartographers draw streets and houses there in edit mode. The problem is that the houses are visible only in the ...
1
vote
1answer
28 views

Converting Route to OSM edge ID list in QGIS?

This may be a very generic question but I cannot find a starting point. I want to convert a line (MultilineString or any other implementation) to It's OSM Edge Id(Segment Id) list. Can anyone tell ...
0
votes
1answer
40 views

Copyright of using geospatial data from the internet [closed]

I am curious about what kind of copyright does geospatial data that can be downloaded from the internet have. For example, if I want to use data like OSM data, satellite imagery data etc to make ...
1
vote
1answer
39 views

Select OSM admin boundary which links with pelias geocoder result

We use pelias geocoder environment in our project. There is a case "selection a polygon, which links with pelias result." For example we choose "Muenich" in search field -> on client we see this: ...
2
votes
2answers
40 views

Query OSM nodes not member of way in Overpass

How can I query OSM nodes that are not member of ways? I want to get the nodes which tagged with (traffic_calming=bump) and not member of any ways.
1
vote
1answer
27 views

Unexpected problem with some CSS styles on GeoServer for OSM data [closed]

My layerset went wrong after mapproxy caching. Some layers are not rendering, and one of them shows this error message when I want to watch a preview: <ServiceException>The requested Style can ...
0
votes
0answers
9 views

Map GPS coordinate to nearest street [duplicate]

I have an application where I receive GPS coordinates of different vehicles. Those coordinates are displayed within JXMapViewer on an OpenStreetMap. However, some devices have a bad accuracy and so ...
0
votes
0answers
15 views

Choosing correct GeoJSON from several available polygons from OSM city relation ID

For our MultipliCity tool, I'm adding outlines of cities as system boundaries. I get the city outlines by taking the relation ID from openstreetmap and use the great "Convert Open Street Map relation ...
0
votes
0answers
71 views

Generalizing railways from OpenStreetMap using ArcGIS Desktop?

I have dataset of railways from OpenStreetMap. It is really detailed. But i want to make generalization for map scale 1:500 000: remove small details of the railways and short branches. I`ve used ...
1
vote
0answers
17 views

Historical OpenStreetMap data and dummy lines

I'm trying to export some historical highway data from OSM with the following commands: osmium time-filter clipped_greece_history-190715.pbf --overwrite "${YEAR}-12-31T00:00:00Z" -o "osm${YEAR}.pbf"...
1
vote
0answers
40 views

Correctly formating Leaflet popups

I'm working on a Leaflet map, currently adding content to my popups. In .bindPopup ([" "]) is there any way to format a paragraph of writing on the backend into multiple lines of code within those ...
1
vote
1answer
34 views

Show Leaflet markers that falls inside mapbounds, based on geocode location entered from database

I have a GUI application where data from my database are displayed on a table and also displayed as markers on Leaflet map. I have added the Geocode (L.Control.geocoder()) function into my application,...
1
vote
1answer
25 views

TopologicalError: The operation 'GEOSDifference_r' could not be performed

I'm trying some code to get the building footprints of Barcelona: import osmnx as ox import matplotlib.pyplot as plt %matplotlib inline place_name = "Barcelona, Barcelona, Catalonia, Spain" graph = ...
2
votes
0answers
52 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 ...
2
votes
1answer
49 views

Why are area queries in my own Overpass server returning different results from the official server?

Here's my query to collect all of the States within the US: [out:json]; area['admin_level'='2']['name'='United States']; (relation['admin_level'='4'](area);); out tags; My Overpass server returns ...
0
votes
1answer
20 views

Getting height difference of area

I am using OpenStreetMap for showing my user a map within my web frontend. A user can mark on the map his parcel. I would like to automatically get from the marked area information about the height ...
0
votes
1answer
48 views

Finding neighbouring countries using Overpass?

How can I find all countries that are neighbours (share a border point or line) of a given country (eg. germany) using Overpass?
0
votes
1answer
34 views

Splitting OSM files into multiple smaller pieces using QGIS?

I have a large osm file of a city. I want to split this file into multiple smaller pieces (e.g 50) and retain all smaller pieces for further use rather than just a portion of it. Is anyone aware of ...
0
votes
1answer
32 views

Reading PBF file or finding polygons of postcodes?

The issue: I want to find the polygons for the greek post codes. I am not sure if this would help but I have just downloaded a PBF file from geofabrik.de. I installed osmconvert and OsmAndMapCreator, ...
1
vote
0answers
35 views

OpenLayers OpenStreetMap OSM not rendered

I am trying to render a part of OpenStreetMap offline, previously loaded as map.osm (OSM XML). I'm starting a localhost and loading the xml from disk. I tried to use similar example (https://...
0
votes
1answer
41 views

Sourcing static maps from web APIs

For a web app I want to source roadmap and satellite type maps from a web API which will be used with geometrical data from a database to generate reports. The reports would be viewed on screen or ...
0
votes
0answers
29 views

Getting all footways in a bounding box with Overpass API?

I am trying to use the Overpass Python API to find the all footways from OpenStreetMaps within a given bounding box. This is my first time using this API and am quite unsure how to write this query. ...
0
votes
0answers
33 views

QGIS: NetCDF file not aligned with OpenStreetMap

I want to show a 2m height temperature layer that covers most of Canada and northern United States. The data itself is initially a .grib2 file obtainable from the Gov of Canada free public weather ...
0
votes
0answers
14 views

What is a class in OSRM profile for excludable?

I have a group of nodes in JOSM and i trying to tag then to be excludable class in profiles of OSRM i tagged then like this: and my excludable part of OSRM profile is like that: classes = Sequence { ...