179

There are a few things that you are mixing up. Google Earth is in a Geographic coordinate system with the wgs84 datum. (EPSG: 4326) Google Maps is in a projected coordinate system that is based on the wgs84 datum. (EPSG 3857) The data in Open Street Map database is stored in a gcs with units decimal degrees & datum of wgs84. (EPSG: 4326) The Open ...


50

In gist: EPSG: 4326 uses a coordinate system on the surface of a sphere or ellipsoid of reference. EPSG: 3857 uses a coordinate system PROJECTED from the surface of the sphere or ellipsoid to a flat surface. Think of it as this way: EPSG 4326 uses a coordinate system the same as a GLOBE (curved surface). EPSG 3857 uses a coordinate system the same as ...


47

You can easily get click events using the map's 'on' event subscription method: map.on('click', function(e) { alert("Lat, Lon : " + e.latlng.lat + ", " + e.latlng.lng) });


40

Update for QGIS 3.x: The old OSM importer from QGIS 2 was dropped in QGIS 3 due to lots of unresolved bugs. The QuickOSM plugin also enables to read osm raw files. You can use user Layer - Add Layer - Add Vector Layer instead. In that case, OSM data are opened with GDAL as documented by http://gdal.org/drv_osm.html In QGIS 2.x, There are 3 steps involved ...


37

Of course it is ultimately up to you, but i would hesitate to call working with Open Street Map a waste of time. While it is true that the OSM user base is small right now, there are factors that affect both Google and OSM. The primary issue is that now that Google has started to charge for levels of use of their API, a number of companies and organizations ...


36

For the osmosis docs, I see the command option: --bounding-box top=49.5138 left=10.9351 bottom=49.3866 right=11.201 for PostGIS you can use ST_MakeEnvelope(left, bottom, right, top, srid) to build a bounding box, then the && bounding box operator to find where the bounding boxes intersect: SELECT * FROM mytable WHERE mytable.geom && ...


33

JOSM Perhaps the easiest answer to both parts of your question, is to use JOSM. The Java OpenStreetMap Editor. It's easy to download data, and easy to "use" data. For downloading, JOSM provides a simple interface to let you select a rectangular area to download, however it downloads this via the editing API. This will reject any request which is way too ...


33

March 2015 update with QGIS 2.8.1 (Wien) Web>Openlayers plugin For Raster images [after fetching python plugins] use the OpenLayers Plugin For Vector (editable layers) use the OpenStreetMap Plugin use Download OSM Data option [OSM server limits large downloads] - zoom into an area of interest first there is some info when using the plugin that the area ...


23

Use the Overpass Turbo API! First, I'd go to openstreetmap.org, You can either 1) Search for the feature you're after. I chose "south platte river", which runs through Denver. This gives the fields and tags that are used by OSM to store the data: 2) Identify the tags and values of the features you're after by Zooming all the way into the map Click on ...


22

It's worth noting that at Google Maps, you're not 'donating' your geographic knowledge -- you are giving your geographic knowledge to a for-profit corporate entity, who have a duty to their shareholders to use their position as a majority data holder in the worldwide map data market to increase the value of their company. This means that the data that you ...


17

I would recommend looking into TileMill which is made by the same people that were workign on Maps On A Stick. TileMill was either part of Maps On A Stick, or is what Maps On A Stick became - something like that. I forget the connection. Anyway... TileMill will let you load geographic data, style it how you like and then create a set of PNG map tiles for a ...


16

Osm_id is unique only within object type. It is easy to test with the following links http://www.openstreetmap.org/way/40000000 http://www.openstreetmap.org/node/40000000 The current OSM statistics show these numbers: Number of nodes 2412050198 Number of ways 241029453 Number of relations 2658037 Whole lot of the oldest nodes have already been ...


16

FYI... I believe this has changed for OL3 V3.5.0, so gcarrillo's answer would be: new ol.layer.Vector({ title: 'added Layer', source: new ol.source.Vector({ url: 'mygeojson.json', format: new ol.format.GeoJSON() }) }) You can see the changes here: https://github.com/openlayers/ol3/blob/master/changelog/upgrade-notes.md#...


15

QGIS is now able to read .pbf files with Add vector layer, but the data size will most probably kill QGIS with most of the available files. Try ogr2ogr -f SQLite my.sqlite some.pbf in the OSGEO4W shell to convert the pbf into a spatialite database, and connect to that in QGIS.


15

I found downloading OSM data using the plugin and going through the import and export motions very tedious. That's why I wrote up a different solution: http://anitagraser.com/2014/05/31/a-guide-to-googlemaps-like-maps-with-osm-in-qgis/ Summary: Raw OSM files can be quite huge. That’s why it’s definitely preferable to download the compressed binary .pbf ...


15

Using Nominatim for for Autocompletion might be not the best idea. If you using the osm.org nominatim Server the usage policy forbid using Nominatim for Autocompletion: Auto-complete search: This is not yet supported by Nominatim and you must not implement such a service on the client side using the API. Also it is not really useful to use Nominatim for ...


15

There is now a plugin called QuickMapServices. It provides map layers really easily : Add the plugin Chose the plugin from the Plugins Window Add a layer Now You can add OpenStreetMap layer from the Web tab.


14

Are all those advantages real? It can actually do those things, if that's what you mean. It takes work from you to set the data up properly. Isn't pgRouting a kind of a blackbox? There are just a few tutorials on how to use it, and even these tutorials introduce even more unanswered questions. Isn't it simpler to build the desired [Goal] system ...


14

In addition to the other excellent comments here, the biggest advantage I see to OSM data is two aspects of ease of access: Editing is far more straightforward, particularly with a large area that is previously unmapped, or (worse yet) badly mapped. JOSM, QGIS and other tools let you update large areas, correct or add data in bulk. Working on areas here in ...


13

For a simple way to do this starting with QGIS you could use QGIS Mapserver which can serve maps that you design using the normal QGIS interface. Alternatively you might want to go with GeoServer which is Java based and probably easier to install. Since both programs serve maps using open standards if you start with one and need to switch later there is no ...


13

OpenLayers uses the term 'EPSG:4326' to mean the Plate Caree projection. Referring to 'WGS84' and EPSG:4326 as a projection has been common for so long that it is a source of confusion. This short-hand has been going on since before Google and OpenLayers came on to the scene. For instance, ESRI have been fudging the terms for as long as I can remember. ...


13

No, they don't store every tile. There are several reasons for this: Size: Storing all tiles for all zoom levels would require more than 50 TB storage (source: Tile Disk Usage) Gain: Typically, only 1.79% of all tiles are actually viewed since many just contain water or other uninteresting regions (source: Tile Disk Usage) Computational costs: Pre-rendering ...


13

Leaflet is free ($) and open, with a minimal requirement of keeping the license should you redistribute it. Leaflet is a library that lets you display - and more - data. It is not a data provider. Mapbox, OSM and others are data providers/distributors and have their own restrictions / attribution requirements. So to answer your question, yes, Leaflet is ...


12

The best accuracy is obtained with ellipsoidal models. In the interests of simplicity you want to avoid those when you have to code distances yourself. We pay a price: given that the earth's flattening is about 1/300, using a purely spherical model can potentially introduce a relative distance error of up to 1/300 for very long routes: about 3000 parts per ...


12

To display labels on QGIS you can click on the menu on "Layer"->"Labelling". Then you can choose the field name to display on your label. On recent versions of QGIS you can add modifiers and functions to the field content. Then you set the options for the way it will be rendered : color, size, buffer... You can see the data fields content with the ...


12

Looks like you found something to work with in the end and I hope by now you have a solution. I recently had a similar issue to yourself so I set about creating my own QML styles for OSM Shapefiles. You can find them on my github here: https://github.com/charleyglynn/OSM-Shapefile-QGIS-stylesheets


11

Unless you have used the -x switch then the database that osm2pgsql creates won't include any contributor information. The main use for those databases is rendering which doesn't normally need to know who created an object, and including that information makes the database much larger, so it is normally left out. That information is in the planet file ...


11

What we really have to find out here are the projections of your input data. City data The Shapefile comes with a .prj file that is perfectly interpreted by QGIS. Don't change the layer settings! OSM data If you are using OSM vector data, they are in WGS84 Geographic coordinates (EPSG:4326). Only the raster tiles are in Web Mercator (EPSG:900913). Open ...


11

OpenLayers.js: i would recommend you to download the lib and link it to your application server. This way you can have total control over its URL and content. "insecure content" warnings: that happened to me too. In OpenLayers 2.13.1, when you instantiate an OpenLayers.Layer.OSM, it is configured by default for HTTP. From OpenLayers.Layer.OSM doc: url {...


11

Every OSM object follows this coding scheme in order. Type of object (node/way/relation) Id Version of object so if the type is different then two or more objects can have the same id and they will refer to different objects. But if type and id are same and version is different then it represents different versions of the same object. In the osm api, ...


Only top voted, non community-wiki answers of a minimum length are eligible