| rpygeo.build.env {RPyGeo} | R Documentation |
Set up a geoprocessing environment for ArcGIS/Python scripting
rpygeo.build.env(modules = "arcgisscripting",
init = "gp = arcgisscripting.create()",
workspace = NULL, cellsize = NULL, extent = NULL,
mask = NULL, overwriteoutput = 0, extensions = NULL,
python.path = "C:\software\Python24",
python.command = "python.exe")
rpygeo.env
modules |
(Do not modify!) Name of Python module for ArcGIS geoprocessing. |
init |
(Do not modify!) Python code for initializing the Python geoprocessor. |
workspace |
Path of ArcGIS workspace (or name of geodatabase) in which to perform the geoprocessing. |
cellsize |
Default cellsize (default: maximum(?) of inputs - see ArcGIS documentation). |
extent, mask |
Datasets or character strings defining the analysis extent and mask - see ArcGIS documentation. |
overwriteoutput |
Overwrite existing ArcGIS datasets (=1)
or not (=0 - default)? |
extensions |
Names of extensions to be used in geoprocessing;
it is usually not necessary to specify this here.
Possible values: "Spatial","3d","geostats","network",
"datainteroperability". |
python.path |
Where to find the Python interpreter (depends on Python version). |
python.command |
Name of the Python command line interpreter executable. |
See ArcGIS documentation. This geoprocessing environment reflects only a small fraction of the ArcGIS environment settings. Future releases of this package may include more than the properties listed above.
A list whose components are exactly the arguments passed to
the rpygeo.build.env function.
Alexander Brenning
# Everything in this workspace will be masked with DEM extent
# and have a cellsize of 100m:
## Not run: env.lo <- rpygeo.build.env( mask="clip", cellsize=100 )
# and this is for high-resolution output:
## Not run: env.hi <- rpygeo.build.env( mask="clip", cellsize=1 )
# Slope from different DEMs at different target resolutions
# (which may be different from the original DEM resolution):
## Not run: rpygeo.Slope.sa("srtm-dem","slope-lo",env=env.lo)
## Not run: rpygeo.Slope.sa("laser-dem","slope-hi",env=env.hi)