openstreetmap

overpass-api ways query include coordinates

青春壹個敷衍的年華 提交于 2019-12-10 10:56:08
问题 I'm trying to query Hotels in a specific area. Unfortunately I need to query nodes and ways, because some Hotels are only stored as way and some as nodes. http://overpass.osm.rambler.ru/cgi/interpreter?data=%28way[tourism~hotel]%28around:5000,50.10707,8.76040%29%29;out; The result of a way-query doesn't contain any coordinates, only lots of node-refs: <nd ref="1438833423"/> Is there a way also to include the coordinates of the nodes in the output or do have to start lots of additional queries

Self hosting GraphHopper Directions API

眉间皱痕 提交于 2019-12-10 04:24:42
问题 We are looking for an offline routing and reverse geocoding service. GraphHopper advertises that its Directions API can be self-hosted: GraphHopper Directions API Self-Hosting / On-Premises The Directions API comes as a cloud service where you pay on-demand. The API is also available as on-premises solution (self-hosted), which gives you maximum performance, customization possibilities, independence; all in your hands! After installing GraphHopper on my local instance as per these

Import osm data in Docker postgresql

江枫思渺然 提交于 2019-12-09 23:20:15
问题 i am trying to use Docker. So i installed in Docker postgresql image. Until now, when i imported osm data into postql i used this command: psql -U postgres mydb CREATE EXTENSION postgis; osm2pgsql -U postgres -d mydb -s -S ./osm_stylesheet /home/ramnikov/Downloads/hessen-latest.osm How can i do the same inside Docker after this command $ sudo docker exec -it postgresql sudo -u postgres psql or before this command ? Tnx Andrey 回答1: You can execute osm2pgsql outside of Docker: -H|--host

Animating markers on OpenStreet Maps using osmdroid

前提是你 提交于 2019-12-09 07:05:12
问题 I'm using the google Maps marker animation logic given here. My marker gets animated,but after each marker.setPosition(newPosition); I need to call mapView.invalidate(); which refreshes the map resulting in very sluggish animation. Is there any workaround? 回答1: The next solution is working correctly for me: import org.osmdroid.api.IGeoPoint; import org.osmdroid.api.IMapController; import org.osmdroid.util.GeoPoint; import org.osmdroid.views.MapView; import org.osmdroid.views.Projection;

QGis: How to import svg or raster images into Quantum GIS?

断了今生、忘了曾经 提交于 2019-12-09 05:54:51
问题 these vector or raster files being classic files without geocoordinates. They are lat/long projection, I want to import them into QGIS, scale them up/down, place them to their right place, and they become reusable shp or raster geocoordinated layers. Edit: I'am from the wikipedia Graphic Lab>Map workshop, we want to work more using GIS. We litteraly have hundreds maps to migrate to GIS technologies.... File:Chinese_plain_5c._BC-en.svg File:Vignobles_basse_loire.svg 回答1: Partial Solution: load

Mapbox GL using external maps

只谈情不闲聊 提交于 2019-12-09 05:50:53
问题 I want to use Mapbox GL in my Android application. This service is going to be released soon and I have a tricky question about using the renderer. I like the renderer itself, but I really want to use my own maps data in the application (not the data, offered by Mapbox and which is paid). For instance, I want to parse OpenStreetMaps data on my own, customise it somehow and then put inside of a renderer to show it in my application. And now the question: is it possible to use my own maps data

OSM - Show current location with custom icon

微笑、不失礼 提交于 2019-12-08 14:29:42
Can anyone tell me how can I show my current location on OSM map with custom icon? With default person icon :: MyLocationNewOverlay myLocationoverlay = new MyLocationNewOverlay(mapView); myLocationoverlay.enableFollowLocation(); myLocationoverlay.enableMyLocation(); mapView.getOverlays().add(myLocationoverlay); With custom icon :: MyLocationNewOverlay myLocationoverlay = new MyLocationNewOverlay(mapView); myLocationoverlay.enableFollowLocation(); Drawable currentDraw = ResourcesCompat.getDrawable(getResources(), R.mipmap.ic_launcher, null); Bitmap currentIcon = null; if (currentDraw != null) {

Read cities and streets into a database without api

一曲冷凌霜 提交于 2019-12-08 10:49:07
问题 I managed to download and extract an osm-file into a mysql-database, like: osmosis --read-xml myfile.osm --write-apidb dbType="mysql" host="localhost" database="osm" user="osm" What I now need is a way to get only cities and their streets into the database and query them. So how do I limit the data passed from the osm-file to the database to cities and streets? I don't need any additional data. I do not want to use any only APIs or services. 回答1: Osmosis supports so-called data manipulation

Having trouble connecting to OpenStreetMap

ぐ巨炮叔叔 提交于 2019-12-08 07:32:50
问题 I have recently delved into playing around with the OpenStreetMap package but I cant seem to be able to download tiles eg conf.map = openmap(c(60,-90),c(-45,45),type="osm") will give me this error Could not open Bing aerials attribution metadata. failed loading 3/2/2 Connection timed out: connect I am not sure if this is a port issue as it is not my PC or if it is an issue with OSM but I couldn't find a solution anywhere and couldn't even find the port OSM uses to download map tiles. If

Disable scrolling in Osmdroid map

纵然是瞬间 提交于 2019-12-08 06:04:00
问题 I have an Osmdroid MapView. Even though I have set mapView.setClickable(false); mapView.setFocusable(false); the map can still be moved around. Is there a simple way to disable all interactions with the map view? 回答1: I've found a solution. You need to handle the touch events directly by setting a OnTouchListener . For example, public class MapViewLayout extends RelativeLayout { private MapView mapView; /** * @see #setDetachedMode(boolean) */ private boolean detachedMode; // implement