Skip to content
Prev 27418 / 29559 Next

[FORGED] Create a Spatial Weight Matrix based on road distance

Dear Rolando,


As previous members of the list asked you, it will be nice if you can
provide a reproducible example. Something like Roger has just done (with
command lines), but including your original data. In that way is always
easier to provide help.

 With the command: osrmTable, you are going to obtain the travel time
between points of your domain. In this case, I assume are the centroids of
your polygons. But no distances (what you were talking about). Since the
OSRM is only an interface, it only allows you to perform some few
calculations (since the algorithm to perform these calculations is on the
same web page). That is probably the reason why you are having this error
(I already warn you about this). If you have massive calculations, then I
will recommend you to download the app directly and run it on your
computer.

To get the distance in the manual says you should put as an argument the
distance, something like:

dists <- osrmTable(loc = muns13, measure = "distance")

You have to think this app is an emulator of google maps, that can give you
the shortest path and travel times according to different travel options,
although their primary goal is to cartography all
roads/ways/channels/railways etc., and make them freely available. please
visit
http://project-osrm.org/  (for the engine) and
https://www.openstreetmap.org/
<https://www.openstreetmap.org/#map=12/52.1710/5.2956> for the cartography.

 Andres D.
TU-Delft
Associate Researcher

El lun., 24 jun. 2019 a las 9:58, Roger Bivand (<Roger.Bivand at nhh.no>)
escribi?:

  
    

Thread (24 messages)

Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 20 Rolf Turner Create a Spatial Weight Matrix based on road distance Jun 20 Adrian Baddeley Create a Spatial Weight Matrix based on road distance Jun 20 Andres Diaz Loaiza Create a Spatial Weight Matrix based on road distance Jun 21 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 22 Rolf Turner Create a Spatial Weight Matrix based on road distance Jun 22 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 22 Rolf Turner Create a Spatial Weight Matrix based on road distance Jun 22 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 22 Rolf Turner Create a Spatial Weight Matrix based on road distance Jun 22 Juan Pablo Carranza Create a Spatial Weight Matrix based on road distance Jun 22 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 22 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 22 Juan Pablo Carranza Create a Spatial Weight Matrix based on road distance Jun 22 Rolf Turner Create a Spatial Weight Matrix based on road distance Jun 23 Roger Bivand Create a Spatial Weight Matrix based on road distance Jun 23 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 23 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 23 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 23 Roger Bivand Create a Spatial Weight Matrix based on road distance Jun 24 Andres Diaz Loaiza Create a Spatial Weight Matrix based on road distance Jun 24 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 26 Danlin Yu Create a Spatial Weight Matrix based on road distance Jun 27 Rolando Valdez Create a Spatial Weight Matrix based on road distance Jun 27