Skip to content
Prev 27920 / 29559 Next

Match coordinates to regional polygon

On Tue, 10 Mar 2020, Miluji Sb wrote:

            
Apart from rgdal, the remainer are pure distraction. Parsimony is 
important.
This is the full GADM world map of admin units at level 2:
[1] 45962    13
This is a 0.5 degree world grid
min    max
lon -179.75 179.75
lat  -89.75  89.75
cellcentre.offset cellsize cells.dim
lon           -179.75      0.5       720
lat            -89.75      0.5       360
min    max
lon -179.75 179.75
lat  -89.75  89.75
plot(pts[!is.na(pts_district$GID_0),], axes=TRUE)

looks very much like world land mass to me. Oceans are big, your polygons 
omit Antarctica, and Plate Carree area (0.5x0.5 degree squares) is 
misleading.

Hope this clarifies,

Roger