R/ReadPoly.R

Defines functions ReadPoly

Documented in ReadPoly

data(GPS, envir=environment())
data(CH1903, envir=environment())


ReadPoly <-
function(shapefile, proj = GPS, fix.holes = TRUE, ID = NULL)
{
  polys <-  readShapePoly(shapefile, proj4string = proj, IDvar = ID, repair=TRUE, delete_null_obj=TRUE)
  if (fix.holes) {
    polys <- fix.holes(polys)
  }
  return(polys)
}

Try the geospacom package in your browser

Any scripts or data that you put into this service are public.

geospacom documentation built on May 2, 2019, 7:23 a.m.