在R中创建道路网络数据集 [英] creating road network datasets in R
问题描述
我有一个包含道路的线shapefile,我想用它来创建网络数据集.在ArcGIS中,我可以使用Network Analyst扩展程序(请参见
I have a line shapefile containing roads, and I'd like to use it to create a network dataset. In ArcGIS, I'd do this with the Network Analyst extension (see here).
是否存在具有等效功能的R包?我已经检查了 Bivand的Cran任务视图用于空间分析数据,我在SO和 GIS SE 上进行了一些搜索,但我尚未找到任何好的线索.我还浏览了Bivand等人(2013)应用R进行空间数据分析.
Is there an R package with the equivalent functionality? I've checked out Bivand's Cran Task View for the analysis of spatial data, and I've searched a bit on SO and the GIS SE, but I haven't found any good leads. I've also looked through Bivand et al.'s (2013) Applied Spatial Data Analysis with R.
我已经使用R一段时间了,但没有用于空间数据处理和分析.对于任何有关其他资源的包装建议或技巧,我将不胜感激.
I've been using R for a while, but not for spatial data processing and analysis. I'd appreciate any package suggestions or tips about other resources.
推荐答案
您可以检查shp2graph
软件包.它允许输入SpatialLines
或SpatialLinesDataFrame
(即通过maptools
库中的readShapeLines
函数加载的线shapefile)来创建网络.然后通过功能points2network
将点数据集集成到现有网络中.例如,这些点可以是城市质心的坐标.然后,通过igraph
程序包,您可以分析网络.
You could check the shp2graph
package. It allows to input a SpatialLines
or SpatialLinesDataFrame
(ie. a lines shapefile loaded through the readShapeLines
function in the maptools
library) to create a network. And then through the function points2network
integrate a points data set into an existing network. For example, these points could be the coordinates of city centroids. Then, through the igraph
package you could analyze the network.
这篇关于在R中创建道路网络数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!