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 shorted to OSM.

learn more… | top users | synonyms (1)

0
votes
1answer
121 views

Get postal codes of a city in OSM via postgis/postgresql

So, I'm trying to get the postal codes of a city (polygon). Unfortunately, I never get consistent results with my code: SELECT a.name, b.tags->'postal_code' FROM planet_osm_polygon a JOIN ...
2
votes
0answers
29 views

nominatim api for long streets

I'm using the Nominatim API in geojson method to retrieve streets poly line. For short streets I have no issue and the results are good. However for long streets the data I'm getting back in the ...
0
votes
2answers
90 views

using mod_tile in windows

I am trying to generate tiles on the fly in windows using mod_tile. I have followed the tutorial http://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ on ubuntu and successfully ...
0
votes
1answer
132 views

What can I do in Mapbox Studio with the osm_id number for #buildings from Mapbox Streets?

My goal is to use OpenStreetMap buildings data to create map tiles that show buildings styled with information such as name, floors, and other information from the tags associated with the way/feature ...
1
vote
0answers
23 views

OpenStreetMap Nominatim Underscore Amenities Not Working

I'm trying to locate the drinking_water amenity in Nominatim to no avail. When I run the following query: ...
1
vote
2answers
56 views

How can I add another WHERE filter to a PostGIS query?

I have this query, which works well, for an OSM database: SELECT row_to_json(fc) FROM ( SELECT ST_AsGeoJSON(ST_Transform(ST_Intersection(lg.geometry, bbox.geom), 4326))::json As geometry, ( ...
1
vote
3answers
311 views

Load external tileJSON file in Mapbox

I have tiles generated by Maperitive from an OSM file, and there's a nice tiles.json generated with them which specifies neatly the tiles-path, bounding box, minzoom, maxzoom, center, etc. The format ...
2
votes
1answer
56 views

Overpass (command line): how to view the results on a map?

I've tried to play with Overpass from command line because I've to do a query quite "expensive" that Overpass Turbo can't to do My issue is about to download all the addresses in Italy Here you are ...
1
vote
2answers
104 views

PostGIS SQL syntax for bounding box

I have the following query: SELECT row_to_json(fc) FROM ( SELECT ST_AsGeoJSON(lg.geometry)::json As geometry, ( select row_to_json(t) from ( ...
1
vote
2answers
49 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 ...
0
votes
0answers
84 views

Loading minimap in Leaflet

I use this for loading google basemaps https://gist.github.com/crofty/2197042#file-leaflet-google-js , this to switch basemaps https://github.com/ismyrnow/Leaflet.groupedlayercontrol and this as ...
3
votes
2answers
93 views

Create smaller OSM with only basic zoom levels data from larger OSM file

From a large .osm/.o5m file (for India), I only want to extract the data that would actually show up when one is looking from zoom levels 1/0 through 8 (which is quite zoomed out.. only major cities, ...
2
votes
1answer
109 views

ST_INTERSECT of each element of two tables (polygons, lines)

Im new to postgis and trying to solve the following problem: I have two tables: 1. containing polygons 2. containing lines I need to find out the id of all polygons on each line and fill them in new ...
0
votes
1answer
48 views

Search for untagged ways in overpass-turbo

Is there a way to search for untagged ways that are not part of a multi-polygon relation using overpass-turbo.eu? I am trying to locate all ways in my county that were not tagged (i.e. untagged ...
0
votes
1answer
72 views

Open Street Map and Arcgis 10.1 Network Analyzer

how to make roads in open_street_map ready for network_analyze in Arcgis-10.1 Details: I'v download an osm map of my town I saved the street lines as polyline shapefile I opend them in arcgis-10.1 I ...
1
vote
1answer
38 views

OSM iD editor WMS support

i want to use my WMS layer as a background in OSM iD editor. I know it works in JOSM but i couldn't figure it out in iD editor.Any one knows how to do this?
1
vote
1answer
30 views

QGIS explode line function fails with OSM file

I am exporting a small extract from OSM. I load the lines(layer 1) into QGIS and apply the function Explode lines. I get the error: Algorithm Explode lines starting... __len__() should return >= 0 ...
2
votes
1answer
91 views

Extract administrative boundaries

I'm looking to create maps of administrative boundaries. Sometimes nested. For example I want to create shapefiles or geojson-files for all the countries in the world, including states in the US and ...
0
votes
1answer
47 views

How do I project OSM tiles to a custom coordinate system?

Background: I'm planning to use OSM data to generate tiled maps and then serve them up as an internal service (hosting service still TBD). I want to be able to consume the tiled maps in both ArcMAP ...
2
votes
2answers
116 views

Prevent Leaflet from requesting non-existing custom tiles

I have created custom tiles using TileMill. extracted tiles as png images and adding them on base layer. using following code var venu_map = new L.tileLayer('static/b18/{z}/{x}/{y}.png', { ...
2
votes
1answer
66 views

Creating Spatialite DB from Swedish OSM

Good afternoon, I have just started to use GDAL/OGR and I am trying to create a spatialite DB from OSM data. I am using a cut of the Swedish OSM data downloaded from Geofabrik in .osm format. I have ...
2
votes
2answers
79 views

How to export a Shapefiles of an OpenStreetMap relation?

Given I have a relation such as this example. I have installed JOSM and QGIS as well as GDAL tools for the shell. I am aware of Overpass-Turbo. What is the best way to export geometry data from ...
2
votes
1answer
238 views

A way to search street intersection on openstreetmap

I need to find intersection by searching name of 2 streets; I fonud overpass API to query on osm data; the way i found was to find a node near a way; but the problem is all nodes don't have name and ...
1
vote
0answers
98 views

Calculate the distances between n geographical points

First of all, I'm sorry if my question is stupid, but I'm totally new to the world of GISs and geographic measurements. I would like to calculate the distances between N (an arbitrary number, but ...
0
votes
0answers
70 views

How to select main cities in a country from planet OSM data

I am trying to create a map with my own style with the help of geoserver and planet OSM data,but trying to give style to the polygon at different zoom level ,need to highlight main in cities in ...
1
vote
0answers
173 views

PostGIS: snap latitude/longitude input to nearest OSM road point

I need a function to return the nearest OSM road point for any latitude/longitude. i.e. users input a latitude/longitude and postgis finds and uses the point on a road that is the nearest to it. ...
0
votes
0answers
29 views

ST_Touches Function in Iterative Process

Im a complete newbie to postgis. I have the following problem: Got two tables: "mp_power_lines_new" -> contains lines of an electricity grid "uw.new"-> contains polygons of all substations in this ...
0
votes
0answers
32 views

Getting the middle of a way over Overpass API

I´m trying to import several Ways and Nodes from the OSM. But i dont want to get the Ways as a way with different nodes, only the middle of the way. In my case, all ways are an area (Parks, Parking ...
0
votes
0answers
65 views

problem with show highway labels in certaint zoom level with mapsforge map

I'm using a mapsforge map ( .map format) in my projet .I converted the OSM file to mapsforge file and i use it. I want to show highway labels from zoom 13 to zoom 20 .I'm using vetorial map viewer. ...
1
vote
0answers
43 views

CartoCSS: labels along inside of polygon boundary

I'm using CartoCSS to render maps that include large polygons (like national parks). At higher zoom levels I want labels along the inside of the polygon boundaries, like in OpenStreetMap: I ...
3
votes
2answers
52 views

Querying PostGIS and OSM to get only major stations and subway of UK?

I am working with Great Britain OSM data. I have read the classification of UK railway stations. There are a lot of classes in there such as subway entrance, halt, station and many others. I want to ...
1
vote
1answer
42 views

Unable to find either renderd.py or generate_tiles.py

We created a Ubuntu 14.04.1 LTS x64 OSM tile server from packages using the excellent instructions provided by http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ The tile ...
1
vote
0answers
34 views

Can't find the proper settings to import Europe map using osm2pgsql?

I'm trying to deploy a map server, i used http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/. My server setup is: Xeon E3-1230v2 Quad-qore, 16GB RAM DDR3, 2x2TB HDD in Software ...
4
votes
2answers
138 views

Filtering Overpass-API by country

Does anyone know how to perform a overpass-api request like this? "Show me all banks in Germany"? I could just show all 'amenity = bank' in a specific bounding-box. But Germany (or most of all ...
1
vote
1answer
107 views

Error while importing osm to Postgres

I'm trying to import osm to Postgres using the osm2pgsql tool. osm2pgsql -cGs -d osm -U postgres -W postgres -H localhost -S /usr/local/share/osm2pgsql/default.style ...
3
votes
0answers
75 views

What is the openlayer.js alternative of unloadinvisibletiles of leaflet.js

I am using open layers with a tile server. I want to load maps while panning and destroy the loaded region when out of screen (Alternative to unloadinvisibletiles of leaflet.js) How am i suppose to ...
2
votes
0answers
90 views

${z}/${x}/${y}.png explanation needed for offline map

Im trying to build map with OMS under Linux (Ubuntu) to made an offline apps. Im working with Ionic and building just for Android for write now. I have the base code: var map; function ...
2
votes
1answer
64 views

geting geograpic locations from an address list

I have a table with 150 addresses. I would like to automaticly generate a point shapefile/PostGIS layer from all of them. Is that possible in any way or do I have to search for every single address to ...
-1
votes
1answer
91 views

What are alternatives for SLD editor?

I am working with Geoserver and Geoexplorer and try to create my own sld to style those maps. I was download osmdata and add layers to map. I was try to use Qgis and Udig for styling data,but the ...
4
votes
1answer
59 views

Finding all segments that makeup a road in OSM

I've spent 2 days trying to figure this out and I'm afraid that it's something that's not possible. If that's the case then I'm thinking the wrong with with respect to OSM data. Let's say I have a ...
0
votes
0answers
20 views

How can I detect what changes osmosis do on my osm planet database?

I have already imported a planet osm file in my postgresql database and have now configured a daily update with osmosis. Is there any way to find out what changes osmosis did in the database? I use a ...
2
votes
1answer
109 views

How do I get the closest point on a road to a point when I have imported OSM data using osm2pgsql?

I have been trying to use OSM data to find the closest point to a road for a given point. I imported the OSM data into postgis using osm2pgsql, and I am getting results back, but they are at the ...
0
votes
1answer
29 views

How to set zoom level for labels of highway in JOSM?

I'm new in using JOSM and open street map data . I import a shapefile of highways in JOSM and use it for styling the highways.Some highways are trunk ( in open street map standard ) and some of are ...
2
votes
1answer
79 views

osm: relation tags to nodes

I filter an osm planet extract using osmfilter. I am only interested in nodes belonging to route=subway relations. After performing this operation, I use osm2psql to load all the data into my postgres ...
1
vote
1answer
25 views

OSM basemap WMS for 2 different years

Is it possible to get OSM basemap WMS for two different years ( 2000 and 2010 )
2
votes
2answers
137 views

How to change from EPSG:900913 to EPSG:3857 in Postgresql

I didn't use the '-E 3857' switch when importing the OSM data into postgresql using osm2psql. I'm trying to set up a map server for the first time and I'm following the instructions from here: ...
2
votes
1answer
68 views

Export TileMill project as SVG image with CartoCSS applied to it

I am able to export TileMill project as mbtiles and rendering tiles on map using leaflet which is working fine. But if I export the project as SVG or PNG image the CartoCSS which I have written is not ...
2
votes
1answer
133 views

Get complete coordinates of a road in OSM Overpass API

I am trying to get a road entire coordinates using this code <osm-script output="json"> <id-query ref="32809713" type="way"/> <!-- added by auto repair --> <union> ...
0
votes
2answers
150 views

Openlayers OSM Cross-Origin Issue [duplicate]

I'm developing a web map for my town. I made my own vector layers and, to avoid the too much "white", I decided to use as base layer OSM. The problem is that when I use the array of resolutions to set ...
0
votes
1answer
22 views

How to get countries through OpenLayers.Protocol.WFS?

Am able to get states information of United States by using OpenLayers Protocol. new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "EPSG:900913", ...