Value of coordinates() for a SpatialPolygonsDataFrame object?
问题 I am trying to get a pseudo barycenter for polygons in a spatial polygon dataframe. Today I stumbled upon the coordinates function that actually returns something for a SpatialPolygonsDataFrame . Unfortunately I found nothing in the help of coordinates about the value for SpatialPolygonsDataFrame . Could somebody tell me what these coordinates are? 回答1: It is the polygon centroid. The source code is found here, look for function FindCG . The equations computed are equivalent to those found on