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)

1
vote
2answers
220 views

Overpass API: Get coordinates of postal boundary

How can I use the overpass-API to recursively get all nodes and their coordinates which belong to the ways of an relation? I need this to draw bounding polygons of all the postal areas inside a city. ...
1
vote
2answers
94 views

Converting from Lat/Lon (WGS84) to Mercator (UTM)

i am trying to render a map with Mapnik via Python. Therefore I first created a style file (as XML) and my code looks so far: m = mapnik.Map(400, 400) style = 'osm.xml' mapnik.load_map(m, style) box ...
0
votes
2answers
101 views

Mapping raw GPS data to Openstreetmap's Node/Way/Relation

So, I have a bunch of raw GPS data points which constitute trips. I want to add semantic information to those data points. For example I'd like to be able to say that a trip consisted of taking street ...
0
votes
0answers
25 views

Query road shape

We have downloaded data from Openstreetmap and want to make special queries but have no idea how to start. What we want to do is find all road intersections with a certain angle in Australia. For ...
0
votes
1answer
91 views

Updating OSM map from within PhoneGap/Cordova App

I am trying to build a sat-nav application that allows the users to dynamically update the map that their application is using. So if the user updates the map with a new road then that road is ...
0
votes
0answers
27 views

Popups and Zoom

I have loaded shapefiles on OpenGeo Suite template (ol3view), I'd like to create a popup on click for each point to show attributes. I'd also want to highlight a certain part of the map and zoom on ...
1
vote
1answer
80 views

Import of OSM data into PostgreSQL with osm2pgsql polygon problem

I've mananged to import my great-britain osm file successfully into postgres and I can query everything fine. osm2pgsql -s -j -G -l --number-processes 8 -K -U james -C 10000 -d osm myfile.osm I'm ...
0
votes
1answer
115 views

Get Road name from coordinates to be used in Overpass api

I have following Overpass api quer that takes the name of the road and give back entire road coordinates ...
0
votes
0answers
41 views

java gdal.jar version 1.10.1 and osmconf.ini question

Does anyone have any info on how to configure this osmconf.ini text file? I use the gdal.jar (version 1.10.1) to open an .osm (xml) (ex. ogr.Open(filename, false)). I could get the 5 Layer objects ...
0
votes
0answers
42 views

How to get a specific street using OSM with PostGis

I want to get the polygon form a specific street from the OSM data importtes with osm2pqsql using PostGis. Since the streetname isn't the only identifier I wanted to add the postal code as a second ...
0
votes
0answers
27 views

OpenCycleMap tile configuration

I have successfully configured Mapnik and generate_tiles.py on my computer so I can generate Mapnik tiles from the OpenStreetMap map database. However, I would like to generate tiles similar to ...
0
votes
1answer
29 views

recommendation of map viewer

I am looking for software to present GIS files (OSM preferred) with these features: work offline (means I can download a map and present it online in the software). compatible with Windows 7, 32 ...
0
votes
0answers
22 views

Is it possible to get Metadata from railway attributes using OSM at PostGIS

I am using a query that gets me all tram stations from my data using a POstGis Database. I have OSM Data from Geofabrik. Query: SELECT point.osm_id as id, st_X(point.geom) as lng, ...
0
votes
0answers
44 views

Positioning a Map

Somebody recommended me to use this site:- http://cs2cs.mygeodata.eu/ after I explained that this coordinates[-28.23078, 28.30707] which belongs to Bethlem in South Africa centers the map to towards ...
0
votes
0answers
47 views

Plot delivery routes over the OSM network (snapping to OSM vector layer)

I have a question with regards to snapping lines to the OSM road network. My goal is to show several delivery routes over the OSM road network. I have done the following: - Plot all addresses on the ...
1
vote
2answers
79 views

Planet_osm_point versus Planet_osm_nodes for querying places

Hello I am using a PostGis Database with OSM Data. After importing the data with osm2pgsql in slim mode I found a table named Planet_osm_nodes that has places also. It seems really compressed and has ...
3
votes
2answers
127 views

Difference between osm_id and place_id?

I'd like to know what the difference is between place_id and osm_id. I understand osm_id is some sort of reference number + more convenient for OSM to find location v. lat/lng. If this is the case, ...
0
votes
0answers
70 views

Map box GL mature / appropriate for own OSM-Tileserver

I am quite new to this topic and currently trying to decide what library to use for developing OSM-apps with my own tile-server for Android, iOS and Websites (currently using Leaflet for websites) - ...
2
votes
1answer
63 views

How to handle duplicate id's when using the as_sp function in the R osmar package

Sometimes when I want to convert a subset of ways from an osm file loaded with the osmar package, I run into an error complaining about duplicate row names. The following code run on this file in ...
2
votes
3answers
70 views

Calculate Color of Object So No Adjacent Objects Repeat

I am attempting to assign one of 16 colors to map objects (e.g. counties, states, ZIP Codes, etc.) so that no two adjacent objects share the same color. I'm seeing tons of articles online about ...
1
vote
1answer
122 views

Marker icons overlapping street names in Tilemill

I'm new to CartoCSS and I'm trying to properly add subway markers on a map using Tilemill and OSM data. My problem is that some street names stay behind my marker icons : I have add ...
0
votes
0answers
61 views

how do I keep only highway roads and their nodes using osmfilter?

I am trying to filter a map from openstreetmaps using osmfilter to keep only highways (tag k) and the nodes that are at the extremes of these road segments. I have read many posts in different forums, ...
3
votes
2answers
120 views

how to extract country border from openstreetmap

I'm trying to extract the Jordanian country border from an openstreetmap. When I click the download link for the file, the following page opens: My question is: How do I save these XML tags as an ...
0
votes
1answer
43 views

osm2po street IDs

Is it somehow possible to always get the same IDs in the _2po_4pgr table and in the routing graph when it's run on newer version on the map? So if I ran it on OSM from today, and then on the same area ...
2
votes
0answers
48 views

How to get changeset tag from .osm file into PostGIS enabled Postgres db

End goal: visualize geographic data from .osm file with QGIS by adding PostGIS layers which include changeset information. I have used osm2pgsql successfully to populate PostGIS and visualize the ...
1
vote
0answers
26 views

Select a polygon which is just partly member of another polygon with its area of the other polygon

I need to generate random points within geometries, which works quite good, but there are some small errors. Take the picture below. There are some greenish and redish Polygons(?!) which do not have ...
2
votes
1answer
66 views

Merge multiple bus stops with same name

my question is similar to this one, but it's not answered sufficiently: How to merge points (bus stops) in QGIS manually or programmatically? I have OSM-transit data with bus stops. Some stops have ...
3
votes
1answer
91 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 ...
1
vote
1answer
88 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
100 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
90 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 ...
4
votes
0answers
97 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
41 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
76 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
190 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
35 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 ...
1
vote
2answers
76 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
128 views

PostGIS doesn't use spatial 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
166 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
33 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
124 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
199 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
27 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
59 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
421 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
67 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
121 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
59 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
97 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
122 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, ...