openstreetmap

Not able build apache mod_tile in openSuse error: Could not find apxs on the path

妖精的绣舞 提交于 2019-12-01 17:42:53
I want to run a tiles server with OSM data i want to install mod_tile so i followed the mod_tile setup But when i do the ./configure It says checking for getloadavg... yes checking for apxs... no checking for apxs2... no checking for /opt/local/apache2/bin/apxs... no configure: error: Could not find apxs on the path. any idea what went wrong? According to the Internets you need to install apache2-devel . The apx binary should then be located under /usr/bin/apxs2 or /usr/sbin/apxs2 . Note: For building a tile server you should follow the guide on switch2osm . For Ubuntu sudo apt-get install

Not able build apache mod_tile in openSuse error: Could not find apxs on the path

戏子无情 提交于 2019-12-01 17:36:45
问题 I want to run a tiles server with OSM data i want to install mod_tile so i followed the mod_tile setup But when i do the ./configure It says checking for getloadavg... yes checking for apxs... no checking for apxs2... no checking for /opt/local/apache2/bin/apxs... no configure: error: Could not find apxs on the path. any idea what went wrong? 回答1: According to the Internets you need to install apache2-devel . The apx binary should then be located under /usr/bin/apxs2 or /usr/sbin/apxs2 . Note

Streetnames openstreetmaps more readable on Android

一个人想着一个人 提交于 2019-12-01 14:46:58
I've build an Android APP with offline map data using Openstreetmaps and OsmDroid. On a device with MDPI 320x480 pixels the map looks OK, but on a device with a HDPI screen with 480x800 pixels the street names are small and a little bit harder to read them. My map data till zoom level 18, the maximum I could download and use with Mapnik tile source, is loaded as a zip-file from the SD-Card. My local maps are from a defined region of Brussels (Belgium). A screenshot of an MDPI device with 320x480 pixels: A screenshot of an HDPI device with 480x800 pixels: If you see these views in the app on

Streetnames openstreetmaps more readable on Android

孤者浪人 提交于 2019-12-01 13:19:45
问题 I've build an Android APP with offline map data using Openstreetmaps and OsmDroid. On a device with MDPI 320x480 pixels the map looks OK, but on a device with a HDPI screen with 480x800 pixels the street names are small and a little bit harder to read them. My map data till zoom level 18, the maximum I could download and use with Mapnik tile source, is loaded as a zip-file from the SD-Card. My local maps are from a defined region of Brussels (Belgium). A screenshot of an MDPI device with

Add marker to OSMdroid 5.5 map

强颜欢笑 提交于 2019-12-01 11:15:13
I want to add markers to my OSMdroid map. I am using OSMdroid version 5.5 . The official tutorial suggests the following code: //your items ArrayList<OverlayItem> items = new ArrayList<OverlayItem>(); items.add(new OverlayItem("Title", "Description", new GeoPoint(0.0d,0.0d))); // Lat/Lon decimal degrees //the overlay ItemizedOverlayWithFocus<OverlayItem> mOverlay = new ItemizedOverlayWithFocus<OverlayItem>(items, new ItemizedIconOverlay.OnItemGestureListener<OverlayItem>() { @Override public boolean onItemSingleTapUp(final int index, final OverlayItem item) { //do something return true; }

Viewing maps with PyQt4 QWebView using python 3

时光总嘲笑我的痴心妄想 提交于 2019-12-01 09:14:52
I am building a program that can show a map with a markers according to specific coordinates from a database, so the process is: Get the map from osm using (folium) Add the marker Save the map as HTML Show the map.html in QWebView. But this way is not practical if the coordinates are always changing e.g(vehicles tracking system). Is there anyway that could allow me to add or update markers on the map avoiding the previous process, without having to create the map.html file then load it to QWebView then showing it every time . thanks Some time ago I had created a small library to show markers

Get type of terrain by coordinate

陌路散爱 提交于 2019-12-01 08:32:24
I'm looking for a solution to be able determine landscape type by a given coordinate, for example check if current position is water/forest/town/road and so on. I found google.maps.MapTypeStyleElementType object specification in the Google Maps specification, but not sure if it could help me or not. Probably, there are some another Maps API with such functioality? Or maybe I should refer to the different types of offline maps? Nope, the link you send is just for styling the proper features, not to tell which feature is at a given coordinate. If you are interested in landscape, then Corine Land

Add marker to OSMdroid 5.5 map

馋奶兔 提交于 2019-12-01 08:21:09
问题 I want to add markers to my OSMdroid map. I am using OSMdroid version 5.5 . The official tutorial suggests the following code: //your items ArrayList<OverlayItem> items = new ArrayList<OverlayItem>(); items.add(new OverlayItem("Title", "Description", new GeoPoint(0.0d,0.0d))); // Lat/Lon decimal degrees //the overlay ItemizedOverlayWithFocus<OverlayItem> mOverlay = new ItemizedOverlayWithFocus<OverlayItem>(items, new ItemizedIconOverlay.OnItemGestureListener<OverlayItem>() { @Override public

How to use leaflet slider along with markercluster in Javascript?

此生再无相见时 提交于 2019-12-01 06:37:25
i am making a map that uses a slider to show or hide markers, and i want to add clustering functionality, each one alone works perfectly, but i want the slider to show the markers, and in case of markers very close to use a cluster. the problem is that both, the individual and the marker clusters are showing, i want the shown markers to cluster not clusters being there all the time <script type="text/javascript"> var sliderControl = null; //creating layers var cities = new L.LayerGroup(); var mbAttr = 'Map data © <a href="http://openstreetmap.org">OpenstreetMap</a> contributors, ' + '<a href=

Is it possible to fit a coordinate to a street in OSMnx?

为君一笑 提交于 2019-12-01 06:34:44
OSMnx provides solution to calculate the shortest path between two nodes, but I would like to the same with points on streets (I have GPS coordinates recorded from vehicles). I know there is also a method to get the closest node, but I have two question for this problem of mine. i) When closest node computed is the street where the point is also taken into consideration? (I assume not) ii) If I wanted to implement something like this, I like to know how a street (edge) is represented as a curve (Bézier curve maybe?). Is it possible to get the curve (or the equation of the curve) of an edge? I