Tag Info

Hot answers tagged

5

If you want to use a postgis database with Openstreetmap data, you have to populate it with osm2pgsql, not osmosis. That is the only way to get polygons out of Openstreetmap multipolygon relations and closed ways in a format that GIS software can understand. Alternatively, you can use GDAL ogr2ogr to save OSM data into a spatialite database. Once you have ...


4

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: ...


4

Don't trust Google Maps or satellite imagery if it comes to an offset of a few hundred meters, especially in hilly areas. Mapbox might use different satellite sources (like bing), which might be better aligned or was simply the basis for OSM digitizing. To decide which is right and wich is wrong, take official digital datasources as a reference. For usage ...


3

The following Overpass API Query will return the center of your building: [out:json]; way(292833530); out center meta;


3

Nodes don't have any order themselves. Keep in mind that a single node can be part of multiple ways. Therefore each node can have a different position for each way it belongs to. Hence you have to query for the way, too, to get the order of its nodes: way(35565161); out body; >; out body; or way(35565161); (._;>;); out body; See the result on ...


3

Natural Earth might offer the data you need on a worldwide scale. For lower zoom levels, the Openstreetmap rendering toolchain uses that source too, because it is much faster than querying the global database.


2

I think JasonT is on the right track (excuse the pun). Note, however, it is the concept of a buffer that you want, not to actually create a buffer. If you were using PostGIS (or similar software/libraries), you'd use ST_DWithin() to reject public road points that are too close to your GPS points.


2

Assuming you are talking about a tile sever: Any browser Marble QLandkarteGT Various other software from the list of desktop software for OSM


2

Try the following queries: # read all nodes with amenity=atm or atm=yes, ignore ways and relations osmosis --read-xml data.osm --tf accept-nodes amenity=atm --tf reject-ways --tf reject-relations --write-xml amenity_atm_nodes.osm osmosis --read-xml data.osm --tf accept-nodes atm=yes --tf reject-ways --tf reject-relations --write-xml atm_yes_nodes.osm # ...


2

I found a different query : osmosis --read-pbf myfile.pbf --node-key-value keyValueList='amenity.atm' --write-xml atm.osm I got a 250ko xml file with all the atm. Hope it can help other peolple


2

You are only inspecting osm_id field. It seems you didn't inspect your multipolygons table. On a local use case, I do : ogrinfo -so france.simple.spatialite multipolygons It returns FID Column = OGC_FID Geometry Column = GEOMETRY osm_id: String (0.0) osm_way_id: String (0.0) name: String (0.0) type: String (0.0) ... So the identifiers are not only ...


2

There have been similar questions at help.openstreetmap.org with different solutions, see: https://help.openstreetmap.org/questions/7920/mapnik-street-name-generation https://help.openstreetmap.org/questions/21784/render-place-name-in-two-languages-with-mapnik ...


2

using arcgis editor for OSM, you can auto extract features and symbolize it, also it allows you to extract information to table. http://www.esri.com/software/arcgis/extensions/openstreetmap


2

You just need to follow the official sample Localized OpenStreetMap. You will just have to copy/paste the referenced sample in a new html file. Then, if your tiles "root" is located at http://localhost/osm/, replace http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png with http://localhost/osm/{z}/{x}/{y}.png Save and it should work by opening the ...


2

You can by using ol.source getClosestFeatureToCoordindinate() and feature get(). Assuming your OpenStreetMap data is loaded into ol.source.Vector called osm. map.on('click', function(event) { var osm_id = osm.getClosestFeatureToCoordinate(event.coordinate).get('osm_id'); window.alert(osm_id); )}


2

Returning objects at a given location is possible via Overpass API. Unfortunately I don't have a full example. But if nobody else comes up with an example I can at least provide you some helpful links: How to build a custom POI map with OpenLayers and Overpass API Various example applications using OpenLayers and Overpass API


1

As already commented: If you need to estimate better speeds for every road from your taxi tracks that is completely doable with GraphHopper and this open source map matching component for it.


1

Alternatively, you can try osmfilter ... some people say it is easier to use, and also faster. Please have a closer look at its parameter definition in the OSM wiki ... Try your queries first on a small raw OSM data file, to test how to include and exclude OSM elements you need.


1

QGIS print composer in > 2.6 can create georeferenced output as described in https://docs.qgis.org/2.6/en/docs/user_manual/print_composer/print_composer.html#creating-output If you need to export your layout as a georeferenced image (i.e., to load back inside QGIS), you need to enable this feature under the Composition tab. Check [checkbox] World file on ...


1

I'm the author of this particular code, but I'm not sure what could cause this. Do you have the latest Tilemill version? Maybe you could try using an older openstreetmap-carto version, for example 2.28.0: https://github.com/gravitystorm/openstreetmap-carto/releases/tag/v2.28.0 Also, does duplicating the code, like this, help by any chance? #text-poly { ...


1

So after some research I decided to stick with the OSM metadata. I found the Overpass API, which is basically a query language, which I managed to understand reading this: http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL and testing it here http://overpass-api.de/query_form.html I ended up with this query: way ...


1

Google maps roads API can do that, if a non-OSM solution is ok with you. See snapToRoad method which returns the GPS points snapped to the nearest Road. You can take the place id from the response and use Google Maps Places API to get corresponding Road name. https://developers.google.com/maps/documentation/roads/snap


1

I realized I had omitted another good link for you. There is an interesting blog by one of the ESRI developers involved in the HPC stuff (Mansour Raad). I hadn't visited it for a while, but it turns out he actually wrote an article about invoking a Spark job from within ArcGIS for Desktop using ArcGIS Geoprocessing tools. There is code samples as well. I ...


1

There are a couple of things coming to my mind here: First, and foremost, why you feel the need to use an unproven HPC routing solution to do something for which the OSM community already developed proven and tested solutions? Routing on OSM data has been implemented as several Open Source projects (See http://wiki.openstreetmap.org/wiki/Routing. Even ESRI ...


1

I would suggest another approach. If you do not need vector data only OSM as a base map which looks the same as http://www.openstreetmap.org maybe you could create your own OSM service using Mapproxy. I know it is not perfect, but maybe you could give it a try. First you need to install Mapproxy. Pre-seed all zoom levels of OSM for particular area and then ...


1

I forgot to add "f:" to the location my @layers = ('file:///f:/Tiles/!z/!x/!y.png');


1

Your question is quiet complex and as others say it's highly recommended to have a look at the 3D OSM Wikipages before. So to splitup your problem you need: JS webmap with 3D abilities for the clientside OSM 3D processor on the serverside OSM custom API for your custom CRUD operations on objects OSM database As you see, it's getting complex. You might ...


1

The AGEB is part of the National Geostatistical Framework (abbreviated as MGN in Spanish) it's not an official administrative level so you're right in that it's not used for administrative purposes but for statistical and census geo-referencing purposes, however, it's so heavily used for research that it would make sense to have the MGN levels mapped to OSM ...


1

I am not sure if this is helpful, but a suggestion for an algoritm to process OSM multipolygon into into proper GIS multipolygons is given here http://wiki.openstreetmap.org/wiki/Relation:multipolygon/Algorithm Helpful reading regarding boundaries, enclaves and exclaves: http://wiki.openstreetmap.org/wiki/Relation:boundary Especially the last example is ...



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