Tag Info

Hot answers tagged

5

You will have to create a new one. Nominatim requires a different database scheme than your rendering stack because it needs to perform really different queries. Using the same database for rendering and geocoding would be very inefficient, if possible at all.


4

I found the solution here: http://postgis.net/docs/UpdateGeometrySRID.html --This will change the srid of the roads table to 3857 from whatever it was before UpdateGeometrySRID(varchar table_name, varchar column_name, integer srid); So for my database the table name was 'planet_osm_line' and the column that contains the srid and geometry is 'way'. the ...


3

{{nominatimArea}} is the old name for {{geocodeArea}} which in turn is a query extension provided by overpass-turbo and not supported by Overpass API directly. If you want to perform this query with Overpass API then you have to replace it with the actual area ID. Note that overpass turbo is able to convert this query to an Overpass API compatible query ...


3

In qgis you can use the mmqgis plugin to geocode addresses. How to use this plugin can be found here: http://michaelminn.com/linux/mmqgis in the chapter Geocode Tools


2

You are going to split at each point? This may produce tons of data! Yes, osm2po can do that. Usually osm2po splits at intersections or at important nodes such as levelcrossings if necessary. The trick is, to give these nodes an importance. Namely, by setting the Node-Clazz >0. A good example of how to do it you'll find inside the plugins-source-zip. ...


2

What you should look for is called 'Map Matching'. I've opened sourced my idea based on GraphHopper very recently here so it is still in a VERY early shape, please give feedback via providing data or creating issues etc.


2

Looks like you may not have GDAL installed, ogr2poly.py will not work without it. Download either the 32-bit or 64-bit GDAL installers, depending on your system. You need to install the GDAL core, and then the GDAL Python bindings.


1

Your problem is the -W argument in your prompt. This argument does not take any input, but forces a prompt for the postgres user's password. So to solve your problem remove postgres after the -W argument. osm2pgsql -cGsW -d osm -U postgres -H localhost -S /usr/local/share/osm2pgsql/default.style /Users/asmaa/SIG/Projet_SIG/campus.osm


1

JOSM has the feature to define custom map styles: http://josm.openstreetmap.de/wiki/Styles


1

since the road named I5 is segmented in OSM, you have to query the ref value instead of the id of a segment: /* This has been generated by the overpass-turbo wizard. The original search was: “ref="I 5"” */ [out:json][timeout:25]; // gather results ( // query part for: “ref="I 5"” node["ref"="I 5"]; way["ref"="I 5"]; relation["ref"="I 5"]; ); // ...


1

Ok, problem solved. Like I said early, the problem was in the resolutions, or better, in the zoom. If you use a max resolution or an array of resolutions(along with restricted extent), OpenLayers will ask to the server for the first set of tiles, which is not what I wanted. To fix the problem, you must tell the server that you want to start from the set of ...


1

You can read WKB as many other geo formats using JTS and add this data onto osm map as vector overlay. As example GeoJson Layer from MapBox SDK


1

QGIS is now able to read .pbf files with Add vector layer, but the data size will most probably kill QGIS with most of the available files. Try ogr2ogr -f SQLite my.sqlite some.pbf in the OSGEO4W shell to convert the pbf into a spatialite database, and connect to that in QGIS.


1

There is no builtin functionality for this in Leaflet, and no plugin to do it that I am aware of either. You could maybe produce something like it with some CSS transform3d hack, but it would likely look pretty horrible. In general, I think OpenLayers 3 might be more suited for pseudo-3d functionality. I have not used OpenLayers 3 myself, though.


1

Couldn't find anything about OSM mapping for AGB's however I found this PowerPoint that explains what these AGB's are, it states: Google translates this to: The Geostatistical Framework, is a system designed by INEGI to reference the statistical information generated by the different census projects or surveys, with appropriate geographic locations. ...


1

As long as you have the data in OpenStreetMap format (i.e., you created it in JOSM, and exported as .osm), you should be able to load it into any tool that works with OSM data. I'd take a look at OpenTripPlanner, which has a heavy transit focus but should also work for simple walk trips. You should be able to build a graph file that is then loaded into an ...


1

You could do some processing before with osmconvert (http://wiki.openstreetmap.org/wiki/Osmconvert) or osmosis. Basically you cut the area you're interested (clip based on bbox) in from the two extracts, then merge the two resulting files to have a single file. Then you can convert this file in spatialite, probably faster than doing on the complete file! ...


1

You can do this with the QGIS plugin QuickOSM. You can also grab the query from the QuickOSM-gui and use that for querying the Overpass-API (you just need to paste the XML to the editor and run the script..) which will allow you to export the search result as GeoJSON or osm-file. See the last picture with a query comprising all OSM-Data within a given ...


1

Here is an original but older Code of the PgRoutingWriter. https://github.com/pgRouting/pgrouting-contrib/blob/master/plugin-osm2po/PgRoutingWriter.java



Only top voted, non community-wiki answers of a minimum length are eligible