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
2answers
78 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
96 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 ...
1
vote
2answers
96 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 ( ...
0
votes
0answers
70 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
3answers
956 views

Generating MapQuest Style tiles for offline use

I need to create about a 9-level deep SLIPPY map of the world from OSM data (for offline use). So I cannot use the MapQuest, CloudMade, etc. servers). The projection must be EPSG4326 (LL84) which is ...
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 ...
0
votes
1answer
47 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 ...
1
vote
1answer
36 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?
3
votes
3answers
119 views

Rendering local osm files android dev

I'm development an android app for navigate inside the university campus, it's my graduation project :). I did the campus map with Josm, now I have it in .osm I found many libraries and frameworks ...
2
votes
1answer
77 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 ...
2
votes
2answers
93 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', { ...
0
votes
1answer
36 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 ...
1
vote
2answers
208 views

Openlayers 3 display in Firefox and Chrome

I'm experiencing some issues with displaying OSM and GeoJSON. With Firefox v30 I see my GeoJSON data, but OSM is invisible. With Chrome v35 I see OSM, not my GeoJSON... What is the explanation? ...
2
votes
1answer
55 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
71 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
177 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
91 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
63 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
142 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
27 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 ...
-1
votes
1answer
81 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 ...
0
votes
0answers
54 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. ...
2
votes
2answers
216 views

How to reproject this vector layer?

I have a dxf file and use this tool to convert it to shapefile. Then I apply some affine transformations and get a shapefile that does not fit the shapefiles downloaded from osm (EPSG:4326). I know ...
2
votes
1answer
88 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 ...
3
votes
2answers
49 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
0answers
37 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 ...
2
votes
1answer
75 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
36 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
33 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
3answers
4k views

How do I determine the center point of several features in OpenLayers?

I have several polygons being drawn on a map, usually representing a country or province or state. Depending on some chosen data, different regions may be selected, so what I was hoping is that ...
4
votes
2answers
111 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
84 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
62 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
72 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
63 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 ...
4
votes
1answer
55 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
1answer
24 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 ...
3
votes
2answers
72 views

Why is the OSM map itself is not visible in my qgis window?

I'm new in working with QGIS. I have tried to download an OSM map of Rome and its surroundings into my QGIS. As far as I am concerned, I have followed each step which I could find on various ...
1
vote
2answers
104 views

QGIS: OSM Landscape layer not printed

I am new in GIS and I am trying to print a new map. If I use Google Street and web layer, it got printed without problem in the composer, but OSM Landscape does not appear on the printed document (it ...
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 ...
0
votes
1answer
46 views

JOSM plugin not working

I have been trying to use a PicLayer plugin in the JOSM editor, however after installing the plugin it would never appear in the top menu next to Windows, Audio, Help dropdowns (at least that's where ...
2
votes
2answers
119 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: ...
1
vote
1answer
22 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
1answer
56 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 ...
0
votes
2answers
140 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 ...
2
votes
1answer
116 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
1answer
21 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", ...
3
votes
1answer
55 views

Trying to get major roads using Name of the road

I am trying to use OverPassApi to get a road Geopoints of Major/Minor roads in USA. Here is the query <osm-script output="json"> <id-query {{nominatimArea:USA}} into="area"/> ...
2
votes
1answer
51 views

Can we use existing plant database for Nominatim

i have imported data from the OSM to PGSQL using osm2pgsql for generating tiles, and now i need to add Nominatim support also, this Nominatim requires the same OSM data. can we use the existing ...