I have a large SpatialPolygonsDataFrame
that describes a species distribution. It has four main features for different parts of the species range (e.g. breeding area, wintering area etc).
Each of the four features is made up of many polygons that together cover the (sometimes disconnected) region(s) that particular feature covers. When I do sp::coordinates(my_data)
I get four sets of coordinates:
[,1] [,2]
0 58.03994 43.18015
1 73.65654 29.37278
2 52.59073 37.45488
3 68.26932 36.04832
Presumably, each one relates to one of the four features but I am unsure exactly what these coordinates are. Are they a centroid value of some kind? I notice they are identical to the labeling coordinates within the SpatialPolygonsDataFrame
(labpt). Has sp
taken the values from there? Or are they calculated from the polygons within the SpatialPolygonsDataFrame
? Will these values always fall within a polygon for each feature, or could they fall outside the polygons themselves (as I think could happen if a centroid was calculated just on the bounding box)?
Thank you for any help or insight provided. Sorry if my questions seem confused - I am new to working with this kind of spatial data!