openstreetmap

Render a map from Openstreetmap data with an open-source 3D engine? [closed]

半世苍凉 提交于 2019-12-12 08:51:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Rendering a 3D-map from an Openstreetmap data can be pretty cumbersome. But what if the requirements are less demanding than rendering any city of the world in 3D? What if I just need to render only a certain city limited by particular boundaries? There should not be a lot of polygons to render, especially if I

Protobuf-net Deserialize Open Street Maps

与世无争的帅哥 提交于 2019-12-12 08:49:28
问题 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

AsyncTask not executing properly according to logic

假如想象 提交于 2019-12-12 05:52:55
问题 I'm having problems trying to download specific tiles for OSM in different zoom levels, based on a given set of places with their latitude and longitude values. What I am trying to do is to determine the MapTile number for the top/bottom left and top/bottom right corners, and loop the numbers to download the tiles. For now I am trying to download zoom levels 1 above and 1 below the given zoom level in the constructor. public class MapDownload extends AsyncTask<String, Void, String>{ int zoom;

Using Offline of Open Street Map in my app

时光毁灭记忆、已成空白 提交于 2019-12-12 05:17:34
问题 I already import open street map Library(link of GitHub) in my application and it works completely true but i want to have this map in offline mode(when internet connection is not available user can work with the map). I saw this but i couldn't get it. please help me , thank you for your time. 回答1: First of all, welcome to osmdroid. There's a wealth of documentation on the wiki at https://github.com/osmdroid/osmdroid/wiki In fact, there's a whole article on offline maps at https://github.com

Java based OSM tile rendering in JavaFX

送分小仙女□ 提交于 2019-12-12 04:58:09
问题 Does anyone know of a JavaFX component which can render tile-based maps from e.g. OpenStreetMap directly from Java - i.e. not using the WebEngine? 回答1: Gluon has Maps, an open source project that you can find here. It uses OpenStreetMap, and it has a JavaFX control: the MapView . See a quick demo here. @Override public void start(Stage stage) throws Exception { MapView view = new MapView(); view.setCenter(new MapPoint(50, 0)); view.setZoom(5); Scene scene = new Scene(view, 600, 350); stage

not able to build mod_tile on openSUSE

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:53:34
问题 i tried to build the mod_tile as in the link then i was getting the same error and tried came got the fix from this forum i exported these export CXXFLAGS="$(mapnik-config --cflags)" export LDFLAGS="$(mapnik-config --ldflags)" adding #include at the top of src/gen_tile.cpp and changed the Makefile with --std=gnu++11 and i'm new to the linux and the cpp Making all in iniparser3.0b make[1]: Entering directory `/root/src/mod_tile/iniparser3.0b' make[1]: Nothing to be done for `all'. make[1]:

Is it possible to get speed limit data using OSMBonusPack?

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:48:23
问题 I've been trying to develop speed limit application & have tried many different approaches to get done . I have used Overpass APIs & it did good but it did not have speed limit information for few of locations around Europe & also installed Velociraptor which uses OSM map & HERE Maps APIs still they failed to get data . Here is screenshot of Velociraptor app : Screenshot Image . Yesterday I came across osmbonuspack & it looks promising as it allows us to choose from 3 best routing services

How to enable horizontally world repeat in google maps?

本小妞迷上赌 提交于 2019-12-12 03:59:07
问题 I am using Google maps (via OpenStreetMap) and need to have world repeated horizontally. I thought its by default, but it is not. var map; map = new google.maps.Map(element, { center : new google.maps.LatLng(mapa_start_X, mapa_start_Y), zoom : mapa_start_Z, mapTypeId: "OSM", mapTypeControl: false, streetViewControl: true }); map.mapTypes.set("OSM", new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { return "http://tile.openstreetmap.org/" + zoom + "/" + coord.x + "/" + coord.y

Error while parsing a very large (10 GB) XML file in R, using the XML package

对着背影说爱祢 提交于 2019-12-12 03:49:54
问题 Context I'm currently working on a project involving osm data (Open Street Map). In order to manipulate geographic objects, I have to convert the data (an osm xml file) into an object. The osmar package lets me do this, but it fails to parse the raw xml data. The error Error in paste(file, collapse = "\n") : result would exceed 2^31-1 bytes The code require(osmar) osmar_obj <- get_osm("anything", source = osmsource_file("my filename")) Inside the get_osm function, the code calls ret <-

Query the OSM data using Node.js

不问归期 提交于 2019-12-12 03:47:36
问题 Here I'm trying to query the hospitals from osm database using overpass and openlayer by the following code <script src="http://openlayers.org/api/2.11/OpenLayers.js"></script> <script src="http://openstreetmap.org/openlayers/OpenStreetMap.js"></script> <script src="http://overpass-api.de/overpass.js"></script> <script> var lat = 8.4967; var lon = 76.9493; var zoom = 15; var data_url = "http://overpass-api.de/api/interpreter?data=node[amenity=%22hospital%22];out+skel;"; var map; function init