openstreetmap

Route not found that should be routable on own Graphhopper installation

孤街浪徒 提交于 2019-12-12 03:14:38
问题 The Problem : On my Graphhopper (GH) installation, there are some cases that are not routable, that should be routable in my opinion. The same route is routable on the GH Demo version, while my installation uses the latest GH code. Examples : This route is plannable on GH demo server while I'm getting a "not found" error on my machine. Though when I call the second point in the locationIndex : LocationIndex index = hopper.getLocationIndex(); QueryResult qr = index.findClosest( place.lat,

Adding in Maps to Silverlight Project

a 夏天 提交于 2019-12-12 02:08:51
问题 Im wanting to know if there is any commercial free map display options for Silverlight projects these days? I tried to run DeepEarth and it just wouldnt play for me in SL5. Im keen to run OpenStreetMaps so we can deploy it commercially without licensing issues. Any advice would be appreciated. Thanks 回答1: I use bing maps , http://msdn.microsoft.com/en-us/library/cc980922.aspx http://www.microsoft.com/maps/isdk/silverlight/ <UserControl x:Class="MapControlInteractiveSdk.Tutorials

How to query all shops around a certain longitude/latitude using osm-postgis?

删除回忆录丶 提交于 2019-12-12 00:16:51
问题 I loaded the map of city Munich (from openstreetMap) into postgis with tool osm2pgsql -s modus now how could I get all shops around a certain point, say (a,b), within 100 meters, in a most efficient way I know it is something like select name, shop from planet_osm_point where ST_DWithin(? ,ST_Point(a,b):geometry, 100) thanks a lot 回答1: You query is already a correct and efficient way to query the data you need. You only need one adjustments: The function St_Point returns a geometry without

OpenStreetMap - java library to handle offline map

偶尔善良 提交于 2019-12-11 19:20:12
问题 I need to create an application that would run on a linux system. Basically, I want to achieve something like Google Maps, but with much less functionality. The application needs to be able to do the followings: open and display offline maps, as there won't be any internet connection there will be a static route, like a railway, that has to be displayed, it won't change there will be one dynamically changing point, it should be updated I never really developed this kind of an application, I

Trying to retrieve road speed limit from drivers current location

℡╲_俬逩灬. 提交于 2019-12-11 15:48:54
问题 I am trying to retrieve current speed limit of a given road location data is passed to the Open Street Maps api every 2-3 seconds as the vehicle is in motion. I have tried the code below using [around] however it only outputs results when the radius is at least 2500 metres i am seeking to have a an area that is closer to 10 meters to determine the current speed limit of the vehicles location. If there is an alternative endpoint to achieve the above so that is more robust and responsive please

Too many open processes when using multiprocessing. How close earlier processes?

拟墨画扇 提交于 2019-12-11 14:21:00
问题 I'm new to multiprocessing and need it for processing OpenStreet data. I use Python 3.5. I'm aware that there are some questions touching the topic. But I would prefer a solution with the Process class. Of course, other suggestions are welcome. import overpy api = overpy.Overpass() result = api.query("""area[name="Aachen"]->.a;(rel(area.a)["building"];way(area.a)["building"];);(._;>;);out;""") import multiprocessing as mp def transfer(i,send_end): way = result.ways[i] bldg = {'id':way.id,

Render or not to render? Building a tile server

允我心安 提交于 2019-12-11 13:44:08
问题 So here I come with my first Stackoverflow question:) It's been already some days spent on building my own tile server. As many others I followed instructions written on switch2osm site and unfortunately got no luck. When I run command renderd -f -c /etc/renderd.conf it seems to start to prepare itself but then it stops without any error and nothing happens. The last message it shows is: renderd[4226] <Debug>: Using web mercator projection settings and ... silence! Please help me, I'm going

OSM routing (OSRM): do I need to duplicate all data for different profiles?

十年热恋 提交于 2019-12-11 13:02:31
问题 I use OSRM and would like to allow the user to select from different routing profiles (e.g. car / foot). The documentation states that I can define the profile during the extract and prepare process. Does this mean that I have to run seperate instances for each profile, each with its own .osrm file? (this is an issue because I run it for a dataset covering large areas (~100GB). 回答1: Yes, as of today OSRM doesn't support multiple profiles. 来源: https://stackoverflow.com/questions/35397627/osm

How to display Route on my OSM application

ⅰ亾dé卋堺 提交于 2019-12-11 08:22:46
问题 In log 02-19 14:41:29.151 10336-10336/com.example.app E/BONUSPACK﹕ OSRMRoadManager::getRoad: request failed. 02-19 14:41:29.151 10336-10336/com.example.app I/System.out﹕ 2 and I have route.gpx file but i don't know how to use it GeoPoint startPoint = new GeoPoint(48.13, -1.63); mapView = (MapView) findViewById(R.id.mapview); mapCTRL = (MapController) mapView.getController(); mapCTRL.setZoom(13); mapView.setBuiltInZoomControls(true); mapCTRL.setCenter((new GeoPoint(startPoint))); RoadManager

Download data from Natural Earth and OpenStreetMap for Cartopy

二次信任 提交于 2019-12-11 07:36:01
问题 I'm trying to use cartopy to plot several maps and I want to use them offline. Cartopy has a data directory, import cartopy.config cartopy.config {'data_dir': '/home/user/.local/share/cartopy', 'downloaders': {('shapefiles', 'gshhs'): <cartopy.io.shapereader.GSHHSShpDownloader at 0x7f3ee33ee7d0>, ('shapefiles', 'natural_earth'): <cartopy.io.shapereader.NEShpDownloader at 0x7f3ee33ee710>}, 'pre_existing_data_dir': '', 'repo_data_dir': '/home/user/bin/virtualenvs/mobi/local/lib/python2.7/site