R/fwPolygonize.R

Defines functions fwPolygonize

Documented in fwPolygonize

# not tested
fwPolygonize <- function(x, options=NULL) {
	fwp <- paste('python ' , fwPath(), 'gdal_polygonize.py', sep='')
	x <- .getFilename(x)
	format='ESRI Shapefile'
	out <- extension(rasterTmpFile, '.shp')
	fullcall <- paste(fwp, shQuote(x), '-f', format, shQuote(out), options)
	system(fullcall)
	fn <- extension(basename(out), "")
    vec <- readOGR(dirname(out), fn)
    return(vec)
}

Try the rasterExt package in your browser

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

rasterExt documentation built on May 2, 2019, 4:49 p.m.