Using R MODIS package from CRAN (version 1.1)
Code:
#Works#
library(MODIS)
getTile("Maldives")
#Doesn't Work#
getTile("Philippines")
I get error: Error in createPolygonsComment(p) : rgeos_PolyCreateComment: orphaned hole, cannot find containing polygon for hole at index 1 #
Yes, I checked that the Philippines is spelled correctly.
From the developer:
https://github.com/MatMatt/MODIS/issues/34
This should be fixed in the dev version of modis package on github now.
Cheers.