【问题标题】:How can I label Thiessen (Voronoi) polygons如何标记泰森(Voronoi)多边形
【发布时间】:2014-12-07 07:20:23
【问题描述】:

我想用点属性(在本例中为站名和站号)标记 Voronoi 多边形。为了创建 Voronoi 多边形,我使用了来自 this topic 的函数。

我的站数据文件(shapefile)在here

pts <- readOGR(dsn = ".", layer="rainfallStations")

thiessen.pol <- voronoipolygons(pts)
proj <- CRS('+proj=longlat +ellps=WGS84')
proj4string(thiessen.pol) <- proj

【问题讨论】:

    标签: r plot gis


    【解决方案1】:

    你可以textcoordinates,例如:

    plot(thiessen.pol)
    text(coordinates(thiessen.pol), labels=pts$STA_NUMBER, cex=0.9)
    

    【讨论】:

    • 如何将属性(站号和名称标签)添加到 thiessen.pol 属性表?
    • @Nahm - 你可以试试thiessen.pol@data &lt;- pts@data
    猜你喜欢
    • 2014-04-05
    • 2017-06-25
    • 2012-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多