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)

3
votes
1answer
22 views

How to display OSM relations (in QGIS) from osm2pgsql populated PostGIS DB

I have a PostGIS DB populated with OSM data (osm2pgsql, standart.style). Now I would like to display a hiking trail (http://www.openstreetmap.org/relation/51855). It would also be fine, if I just ...
0
votes
1answer
25 views

PostGis - BBox -vs- ST_intersects Queries

CartoDb Recommend here that the following query is faster than an St_intersects Query SELECT * FROM {table_name} WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-73.9980, 40.726), ...
1
vote
1answer
17 views

CartoCSS Expression for shield-name

Is there any way to use a regular expression to filter a string when using CartoCSS expressions? I have geojson of some ways and route relations I obtained using Overpass Turbo. When creating a new ...
0
votes
0answers
9 views

Changing OSM Meta Tile Cache Location

We built an OSM Tile Server following the instructions at http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ The Ubuntu OS and the Tile server database are on a 1 TB SSD which ...
2
votes
0answers
29 views

Spatial query too slow to handle bigger OSM extracts

I'm trying to compute some statistics for OSM data using PostgreSQL 9.3.5 and PostGIS 2.1.4. I started with a small bavaria extract which I downloaded from Geofabrik. The db schema is the normal API ...
0
votes
0answers
28 views

GIS Data from osm visual in google maps

I have download from openstreetmap data for my project in a workshop i use den coordinates from a roads network ,but i have problem with visualization the cord in google maps same roads is not drawn ...
1
vote
1answer
22 views

OSM Tiles slow at low zoom levels

We have built an OSM Tile Server following the instructions at http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ We have imported planet_latest.osm.pbf. Our server renders ...
0
votes
0answers
14 views

OSM Tile Server: How to avoid 404 errors?

We have built a OSM tile server with the following hardware Make: Dell Model: PowerEdge T110II RAM: 16GB HDD: 1TB RAID 1 using the excellent instructions provided by ...
1
vote
0answers
11 views

DPI Dependent OSM Tile Rendering

We have built an OSM Tile Server following the instructions at http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ The tile server is rendering tiles, but the street names on ...
0
votes
1answer
37 views

OSM queries on history?

I would like to get a list of modifications on the OSM database, in a given bounding box, between two given dates and impacting a given set of tags. Does anyone know how to do this? Any command-line ...
2
votes
4answers
69 views

Postgis don't use spacial-index with st_intersects

I imported the data from openstreetmap using osm2pgsql and copied it another table structure. If I made a query for containing rows using st_intersects, st_contain or someone else, postgis don't use ...
0
votes
1answer
30 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
16 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
29 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
29 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
15 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
46 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, ( ...
0
votes
3answers
54 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 ...
1
vote
1answer
30 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
53 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
23 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
21 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
43 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
57 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
32 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
32 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
25 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
26 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
42 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
22 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
50 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
36 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
54 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
64 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
64 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
36 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
66 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
21 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
21 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
23 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. ...
0
votes
0answers
16 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
43 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
28 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
27 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
53 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
32 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
33 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
47 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
58 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
52 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 ...