Tag Info

New answers tagged

0

There's possibly a couple of things going on here: If you're using the default style then you'll be loading the vector data from Mapbox. You'll probably want to be using a local datasource which is harder to setup (in comparison to Tilemill) but not impossible If you are using a local tile source, then you'll need to edit the mapnik XML first - mapbox ...


1

You can also try to translate your lines via SQL query, by following an example similar to the use case done here with points: WITH q AS (SELECT cartodb_id, the_geom_webmercator FROM twain WHERE name = 'New Orleans, LA, US'), m AS (SELECT count(*) n, array_agg(cartodb_id) id_list, the_geom_webmercator FROM q GROUP BY the_geom_webmercator), ...


1

Based on the screenshot, you are most likely using ArcGIS. In that case, I strongly recommend you to not use any shapefiles as the source of your routing network, but use ESRI's free "ArcGIS Editor for OpenStreetMap", which is a very useful ModelBuilder toolbox with tools for OpenStreetMap data. It has build-in tools for downloading the required data, and ...


0

Try MapBox-gl, it's in preview phase and has full vector support written in C++ and OpenGL ES.


1

To load in your own data use the gpx file support: Go to Map screen. Tap device menu button. Tap "Map Layers" Check "GPX track". A list of tracks will appear, named with the track starting date and time. Check the desired track to view. Tap OK. You will return to the map screen and zoom to the start of the track. source: ...


1

You should stop using the 9.2 version and switch to using the ArcGIS Editor for OpenStreetMap for 10.2. I was using it for some time now and was able to process multiple OSM datasets into routable networks with no problems. There is a very detailed documentation here on GitHub.


1

The costs you mention are from the Workshop (not the documentation and they are pretty much arbitrary. They were just set like this to give an example how to modify costs depending on road classes. OSRM defines its "costs" in the profile files in the profiles directory, for example for car: ...


3

Natural is a reserved keyword in PostgreSQL see full list and it has a special meaning in SQL JOIN "a shorthand for a USING list that mentions all columns in the two tables that have the same names" Write your query as SELECT "natural" FROM ... and it should work.


-3

Mind to share your location you want to shared at http://crozmap.com ? You can shared location in listing form by category you decide it. like this : http://crozmap.com/@amazingearth


1

OSM attributes can vary a lot, so attributes used in osm2pgrouting are commonly used and available in general. Because there can be so many different attributes, it's not possible (and not a good idea) to import them all. There are tools, which can do this better, for example osm2pgsql or Imposm. osm2pgrouting imports the osm_id attribute, so you should be ...


1

ArcGIS Runtime SDK for Android supports offline geocoding, reverse geocoding, and routing. The API is the same for online & offline, you only need to initialize the task, e.g. RouteTask, for local route or online route. The Locator abstract class is used for creating offline/online geocoders. Here is a SDK sample source code to investigate


3

As BradHards already mentioned you'll need to render your own map tiles. On help.openstreetmap.org there is a list of many opportunities: https://help.openstreetmap.org/questions/136/how-do-i-render-my-own-maps-for-my-website. A similar post on gis.stackexchange: How would I draw and visualize custom maps based on OSM data?


1

In my opinion it makes little sense to try use OSM data with the MMQGIS geocoder since the geocoder was designed for completely different data. On the other hand, services like Nominatim already do really good geocoding with OSM.


0

You can't do it in one query, but, you can get Nominatim place_id and use details.php http://nominatim.openstreetmap.org/details.php?place_id=73626440 and parse highway information. Pilkington Avenue (Type: highway:residential, way 218846952, 15, 0 GOTO) But, Nominatim's wiki says: Currently the details page (details.php) creates a high load on the ...


0

It appears to be undocumented, but you can put lat,lon in the q parameter for search.php and it seems to function as a reverse geocoder and return type information. Try pasting lat,lon into the query box on http://nominatim.openstreetmap.org


0

I assume you have your basic stylesheet and the relevant hillshading already set up - otherwise see the github page for your stylesheet (e.g. https://github.com/hotosm/HDM-CartoCSS) #!/usr/bin/python from datetime import datetime from subprocess import call import ConfigParser import math import dateutil.tz roughLatRadius = 110574 roughLonRadius = 111111 ...


0

Try shapelib .You will find Java for basic Shapefile operations.For advanced operations you may want to try JTS .http://www.openjump.org/ is another Java based tool.All these are Desktop solutions.Plenty of options are listed out here


1

I think you're on the right track, but my reading of your current problem could be solved - and I mean this in good spirits - by doing the pgRouting workshop: http://pgrouting.org/documentation.html -- see the workshop and tutorials part. The value here is you'll get a good sense of what you can do with your MapZen extract, how to use OSM2PGRouting, how to ...


1

Here is a list: Create a simple in-memory graph with nodes and edges. Apply A* to it (there are many examples on the web) Then look into the OSM data structure and build a simple parser (or reuse existing) to fill your in-memory graph then run A* on it via nodeIDs or lat/lon for start and end location create the address search which returns a nodeID or ...


1

Streets data are the most important part of your project. You have to get vector data with few requirements: it must be a complete network, without gaps and isolated streets each street beetween two nodes should be a single object, it should start and end in particular node, you can even split streets to straight lines (each single straight line is single ...


1

If you have to implement your own, then read here: http://en.wikipedia.org/wiki/A*_search_algorithm That way you learn the most. But if you start from scratch and want to implement ALL steps on your own, then it is a major task you are looking at.


2

This Overpass-Turbo query returns all nodes with an osm-tag in your selected bbox: node({{bbox}})[~"."~"."]; out meta;


0

See here, at the developer's blog: http://blog.kartena.se/tag/proj4leaflet/


4

I'm not familiar with programming in JavaScript but in the OpenStreetMap Wiki there is a section describing "Mercator". Following this link you'll find a sample code snippet to tranform from lat long to mercator. I actually don't know if it's correct because I did not test the code.


0

If you intend to do routing on a Network Dataset in ArcGIS for Desktop using OSM data, you should really have a look at ESRI's Open Source and free "ArcGIS Editor for OpenStreetMap". It contains specially designed tools to create a routable Network Dataset from OpenStreetMap data, that deals with the specifics of OSM data in this area. ArcGIS Editor for ...


1

Depending on your configuration, setting wtr.finalMask=bike rtr.supportedRouteClazzes=bicycle filters all cycleways and adds ways referenced by Bicycle-Relations. You'll find the extra info in the meta-column of the *_4pgr-PostGIS-Table. In order to modify costs, you'll have to overwrite the DefaultJoinFilter.validate(Way way) -method.


1

I finally solved the problem with the following code: I left the code (almost) as it was before (especially the proj4) and as it is in the question. I then added the following: lat_min = 47.975 lon_min = 7.8 lat_max = 48.0 lon_max = 7.875 x_min = 6378137.0 * num * lon_min a = lat_min * 0.017453292519943295; y_min = 3189068.5 * math.log((1.0 + ...


2

The ArcGIS network analyst extension needs a properly prepared network dataset (graph) for routing. Ordinary OpenStreetMap data sets are not routable because they are simple linestrings. Take a look at the OSM2NetwordDataset tool by Eva Peters. This tool creates a routable network dataset and takes turn restrictions (from OSM relations), oneway roads and ...



Top 50 recent answers are included