New answers tagged openstreetmap
0
The "associatedStreet" relation links streets and buildings/ways together: http://wiki.openstreetmap.org/wiki/Relation:associatedStreet
2
You could use an XYZ layer in Openlayers. This layer should be used in OpenLayers, whenever you have tiles arranged by a standard XYZ grid. This tileset format has been popularized by OSM & then Mapbox.
A Sample is presented here: http://openlayers.org/dev/examples/mapbox.html
For an OSM-like layer you should set the property sphericalMercator: true, ...
0
If the problem depends on the browser you use, it might well be a question of Same Origin Policy.
See http://romkey.com/2011/04/23/getting-around-same-origin-policy-in-web-browsers/
for some hints.
0
I saw a presentation (PDF) at GISRUK'13 that made use of Routino to solve a similar problem. It makes use of the OpenStreetMap road network but I think you should be able to change that if you install it locally. But for your size of problem you could probably script the solution using the web api.
0
The vertices_tmp table should be created by the assign_vertex_id() function, e.g.:
SELECT assign_vertex_id('ways', 0.00001, 'wkb_geometry', 'uid');
This will populate the "ways" table with vertex id for source and target ends of the road links got from the vertices_tmp table.
Should the command be run as the "postgres" user who owns the public schema ...
0
Take a look at the solution at:
http://www.mapdotnet.com/index.php/developers-center/easyblog/entry/offline-support-for-rim-html5-mapping
On this page there is a link to a Visual Studio 2012 project you can download which provides offline mapping support for Windows 8 - but since it uses Phonegap, it can also target Windows 8 phone, iOS, android using ...
0
I was looking for the same information and found the following:
https://www.gov.uk/government/organisations/department-for-transport/series/road-congestion-and-reliability-statistics
https://www.gov.uk/government/statistical-data-sets/free-flow-speeds-statistical-tables-index
...
1
You need to create a wrapper script to achieve this
#!/bin/sh
MAPSERV="/path/to/my/mapserv"
MAPFILE="/path/to/my/mapfile.map"
if [ "${REQUEST_METHOD}" = "GET" ]; then
if [ -z "${QUERY_STRING}" ]; then
QUERY_STRING="map=${MAPFILE}"
else
QUERY_STRING="map=${MAPFILE}&${QUERY_STRING}"
fi
exec ${MAPSERV}
else
echo "Sorry, I only understand ...
0
You could use a marker layer with a image for easy rendering if you only want a simple marker.
Also you will need to center the map to the desired location. With a OpenLayers.Layer.Vector you can do it easily:
(OpenLayers.Map).zoomToExtent( (OpenLayers.Layer.Vector).getDataExtent() );
To make the "follow" thing you will need a timer to update the ...
1
This basically depends about experience with libraries. OpenLayers is a one large size file library with lots of classes for several use cases. Leaflet is smaller so it has less features.
Tracking of the drivers cars using a tablet through my web app.
If you intend to use tablet devices you can also switch to native APIs of your system like Android and ...
1
Your question is very open ended and doesn't really have a definitive answer. You should check out this question for some good arguments for and against.
A lot of people use OpeLayers because of the huge amount of flexibility, but some people avoid it because it can be quite big (it should be pointed out that you can deploy 'Lite' versions). On the leaflet ...
0
I think the only part of the code missing is the center on the point, right?
If the layer has only that point, you can zoom to the layer extent.
If the layer has more than one point, you can zoom to the coordinates.
0
As such, the .osm format is a very simple format. It just contains the various nodes, and then the ways that are formed from these nodes. You could whip up some custom code which does this, quite easily.
Additionally, there are quite a few libraries/projects which can be used to convert from .osm format to shapefiles; Many of them have been linked on this ...
2
The Id editor is basically calling the OpenStreetMap API, and requesting the data in osm's xml format.
It basically makes a request like: http://www.openstreetmap.org/api/0.6/map?bbox=xmin,ymin,xmax,yamx
Once the data is received by the client, it is rendered using the connection.loadTiles function in id.js. The deployment code is hard to read, but you ...
1
I'm assuming that Osmosis and osm2pgsql create tables in the database with the PostGIS spatial columns. So, you should be able to either consume those tables as query layers, or register those tables as feature classes. If you register them as feature classes, applying the updates should just update the data in the table. This isn't a problem as long as ...
0
Regarding your question: "how can i convert an osm database into a graph data", you can also use osm2po. Among other things, it will create a postgreSQL input file from raw OSM. OSM road networks are not routable in the basic form: there are some junctions/intersections that need attention and the road speeds need to be determined from the given road ...
1
The new GDAL Version 1.10 supports Openstreetmap data:
http://www.gdal.org/ogr/drv_osm.html
If you are on Windows, you can get GDAL 1.10 precompiled from http://www.gisinternals.com/sdk/.
OSGeo4W does not yet have the 1.10 version.
2
Mapnik itself is basically just a rendering engine. As I understand, it can be used to render anything from tiles, to 8.5"x11", and even plotter-sized PDFs. To describe it very simply, Mapnik takes your data inputs, a spatial boundary, and a set of symbology styles (either hard-coded or an XML source), then it renders the map (potentially just a simple tile) ...
1
You could always 'cheat' and pull the layer from the pixel point on the rendered image that's returned (if you're using an html5 browser and tags). Then pull out the R, G,and B pixel values to reverse-determine the number...
1
If you look at the various data sources , you will see that OSM matches very well with Google's Satellite View. You can check it with this excellent tool from GeoFabrik. Just mouse over various locations, and you will also see the mouse location on the other map.
...
0
There were a couple of Issues that need to be tackled, before we use the ArcGIS Server's WMS service on top of OpenStreetMaps.
We need to call the WMS service in OSM's projection, i.e. EPSG:3857
We need to make sure that the WMS service is transparent. This was done by using layer options, where we requested images in png format, and with a ...
2
gis-lab.info has a tutorial on using the network analysis library in QGIS using Python. It's not in English but Google Translate should be able to make it comprehensible. Good luck!
0
If the enclaves from the polygon country layer are true "donut holes" then ST_Intersects() should work as you expect. i.e. (you probably already have a spatial index on the countries?)
update planet_osm_point p set country=
(SELECT distinct poly.name
from planet_osm_point point inner join planet_osm_polygon poly
on ...
0
You need to use a vector layer with OpenLayers.Format.OSM
This page on the OSM Wiki has a wonderful example:OpenLayers osm file example
0
Ok the answer was plain simple, the correct syntax for API Overpass is the following.
You just have to add this line <recurse type="up"/> so that upper relations are also included.
<osm-script>
<query type="way">
<has-kv k="highway" ...
0
The log reports Prefix:extract Ways:0 Relations:0, so there must be sth. wrong. Don't ask me when, but in one of the prior versions I fixed the case where no relations exist. But a source without ways cannot be valid. It seems that your extract is not that big, so can you compress and send it to my email-addi?
Anyway, why don't you download france.osm.pbf? ...
Top 50 recent answers are included

