| GSShapefileDataStore {geosapi} | R Documentation |
Geoserver REST API ShapeFileDataStore
Description
Geoserver REST API ShapeFileDataStore
Geoserver REST API ShapeFileDataStore
Format
R6Class object.
Value
Object of R6Class for modelling a GeoServer Shapefile dataStore
Super classes
geosapi::GSRESTResource -> geosapi::GSAbstractStore -> geosapi::GSAbstractDataStore -> GSShapefileDataStore
Methods
Public methods
Inherited methods
geosapi::GSRESTResource$encode()geosapi::GSRESTResource$getClassName()geosapi::GSRESTResource$print()geosapi::GSAbstractStore$setDescription()geosapi::GSAbstractStore$setEnabled()geosapi::GSAbstractStore$setType()geosapi::GSAbstractDataStore$addConnectionParameter()geosapi::GSAbstractDataStore$decode()geosapi::GSAbstractDataStore$delConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameter()geosapi::GSAbstractDataStore$setConnectionParameters()
Method new()
initializes a shapefile data store
Usage
GSShapefileDataStore$new( xml = NULL, name = NULL, description = "", enabled = TRUE, url )
Arguments
xmlan object of class xml_node-class to create object from XML
namecoverage store name
descriptioncoverage store description
enabledwhether the store should be enabled or not. Default is
TRUEurlurl
Method setUrl()
Set the spatial files data URL
Usage
GSShapefileDataStore$setUrl(url)
Arguments
urlurl
Method setCharset()
Set the charset used for DBF file.
Usage
GSShapefileDataStore$setCharset(charset = "ISO-8859-1")
Arguments
charsetcharset. Default value is 'ISO-8859-1'
Method setCreateSpatialIndex()
Set the 'Create Spatial Index' option
Usage
GSShapefileDataStore$setCreateSpatialIndex(create = TRUE)
Arguments
createcreate. Default is
TRUE
Method setMemoryMappedBuffer()
Set the 'Memory Mapped Buffer' option
Usage
GSShapefileDataStore$setMemoryMappedBuffer(buffer = FALSE)
Arguments
bufferbuffer. Default is
FALSE
Method setCacheReuseMemoryMaps()
Set the 'Cache & Reuse Memory Maps' option.
Usage
GSShapefileDataStore$setCacheReuseMemoryMaps(maps = TRUE)
Arguments
mapsmaps. Default is
TRUE
Method setDefautConnectionParameters()
Set default connection parameters
Usage
GSShapefileDataStore$setDefautConnectionParameters()
Method clone()
The objects of this class are cloneable with this method.
Usage
GSShapefileDataStore$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
GSShapefileDataStore$new(name = "ds", description = "des",
enabled = TRUE, url = "file://data/shape.shp")