Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
包中 SpatialPolygon 对象的 labpt 插槽sp在文档中模糊定义为显示多边形标签的点。我想知道它背后的计算以及它的属性是什么。通常我们确定它会在多边形中还是像质心一样它可以在多边形之外?
sp
我在rgeos包中找到了一个计算类似名称对象的函数,但无法确定它是否真的是 sp 使用的函数。
rgeos
它是多边形的质心,具有较小的适应能力,这在对实际从对象中提取的问题的回答中也有所描述。coordinates()labptSpatialPolygon
coordinates()
labpt
SpatialPolygon