openstreetmap

Protobuf-net Deserialize Open Street Maps

拜拜、爱过 提交于 2019-12-04 06:48:55
For the life of me I cannot deserialize the protobuf file from Open Street Maps . I am trying to deserialize the following extract: http://download.geofabrik.de/osm/north-america/us-northeast.osm.pbf to get Nodes and I am using http://code.google.com/p/protobuf-net/ as the library. I have tried to deserialize a bunch of different objects but they all come up null. The proto files can be found here: http://trac.openstreetmap.org/browser/applications/utils/export/osm2pgsql/protobuf Any suggestions? Right; the problem is that this isn't just protobuf - it is a hybrid file format ( defined here

Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library

大兔子大兔子 提交于 2019-12-04 05:57:15
When online access to the internet is not possible, I would like the (offline) HTML5 app show an OSM map via an OSM file. Can you give an example of how I can show in an offline Html5 app OSM tiles that are loaded from an offline OSM map file like Mapsforge / Geofabrik etc? Example: via the openstreetmap.org I first exported a small part of a map. How can I show this downloaded OSM map in the Html5 offline webapp. Yes, it's possible to do this in Leaflet, or any other mapping library. All you have to do is convert the OSM file into a set of tiles, then point your tile layer to the locally

How do I activate a feature + popup when clicking outside of a map in Openlayers?

烈酒焚心 提交于 2019-12-04 05:26:21
I'm re-parsing the KML that's already been loaded onto the map similar to the example here: http://openlayers.org/dev/examples/sundials.html and turning it into a clickable list that will center the map on the point clicked, and display the popup window for it. This was really easy to do in Google Maps, but I can't find any similar Openlayers examples. Is there any easier way to do this? Something built-in that I'm missing? HTML : <ul id="locationTable"> </ul> JS: htmlRows = ""; for(var feat in features) { // Build details table featId = features[feat].id; // determine the feature ID title =

Get height of a building from a maps API

让人想犯罪 __ 提交于 2019-12-04 03:54:31
It's any public maps API (google, microsoft, openstreet...) that returns the height of the roof for certain points? Imagine: you request some address and the API returns the coordinates, some information and the height of the building, if available. OpenStreetMap has a height tag and various other building related tags like building:levels from which you could estimate the height. However note that currently most buildings lack those tags as they aren't widely in use so far. Still you could give it a try and request all buildings around a specific point or area using Overpass API / overpass

User-Agent for osmdroid

不问归期 提交于 2019-12-04 03:50:23
问题 I tried to put the user agent (cf https://github.com/osmdroid/osmdroid/wiki/Important-notes-on-using-osmdroid-in-your-app), but when I put the line OpenStreetMapTileProviderConstants.setUserAgentValue(BuildConfig.APPLICATION_ID); Android studio is telling me that setUserAgentValue is depreciated. What can I do to solve that ? For now when I run the app I have a grid with no map. Thanks you very much in advance ! 回答1: It's deprecated because it's been moved to another location which

App OpenStreetMap for Android & iOS [closed]

眉间皱痕 提交于 2019-12-04 03:11:42
I would like to do a mobile native app (Android & iOS) with OpenStreetMap. I need to work with maps offline for trekking. I read about OSMDroid, MapsForge for Android, but I need to do in iOS too. Could you recommend me some libraries, tips etc for these mobile OS? Thank you The OSM "stackexchange like" help might be a better place for this question. See for example: https://help.openstreetmap.org/questions/8066/ios-android-sdk Check also the OSM wiki: https://wiki.openstreetmap.org/wiki/Frameworks for possible alleys to explore. If you are ok with a commercial library check out skobbler's OSM

I get an error saying socket bind failed for: /var/run/renderd/renderd.sock if i am a regular user else everything works fine?

懵懂的女人 提交于 2019-12-04 02:59:15
问题 I am trying to manually build a map server as per instructions on switch2osm.org. I have configured everything. I have a database mayank owned by user mayank and I am trying to use renderd but i get this error socket bind failed for: /var/run/renderd/renderd.sock. Now if i switch to root and do the same it runs perfectly no direct permission issues because i have changed the owner for the directories recursively. But there might be some intermediate permission issues. I can not run it as root

GraphHopper vehicle=car works but foot or bike don't work

放肆的年华 提交于 2019-12-04 01:24:35
问题 I have an issue with the GraphHopper routing engine stable version 0.5 I can get directions when using the vehicle=car , but this fails with bike and foot . Here is an example of a roughly 3-minute walk on GraphHopper Maps: This yields a result on the map, which is great. I have used the exact same coordinates when running this locally, to obtain the JSON data as follows: http://localhost:8989/routes?point=-33.916567%2C18.417914&point=-33.917584%2C18.418935&locale=en-US&vehicle=foot This

Drawing upon openstreetmap in python

↘锁芯ラ 提交于 2019-12-04 00:47:18
What I want to do is to generate a static image (e.g. a png) using python and using openstreetmap tiles as a background. Mathplotlib and Basemap is almost what I'm looking for. The problem is being able to use OSM tiles as background. I'm not pleased by the approach suggested in http://stevendkay.wordpress.com/2010/02/24/plotting-points-on-an-openstreetmap-export/ The closest I found is in this answer but using R, and not python Plotting points from a data.frame using OpenStreetMap Did I miss any obvious and easy solution? Thanks for your help EDIT : this questions suggests many tools, but

OSM Data parsing to get the nodes with child

杀马特。学长 韩版系。学妹 提交于 2019-12-03 21:51:12
问题 I download Open Street Map data for a small region, I want to filter the data to get the nodes with special category. Here is sample of the OSM data <node id="505126369" lat="31.2933856" lon="34.2687443" user="JumpStart International" uid="125156" visible="true" version="1" changeset="2568758" timestamp="2009-09-22T13:05:10Z"/> <node id="505126372" lat="31.2682934" lon="34.2745680" user="JumpStart International" uid="125156" visible="true" version="1" changeset="2568758" timestamp="2009-09