A Shapefile Layer.
You can create a Shapefile Layer by passing the .shp file:
Shapefile shp = new Shapefile('states.shp')
Fields inherited from class | Fields |
---|---|
class Layer |
filterFactory |
Type | Name and description |
---|---|
static Directory |
dump(java.util.Map options = [:], java.io.File dir, Layer layer) Dump the Layer which may contain more than one Geometry type into a Directory of Shapefiles |
static Directory |
dump(java.util.Map options = [:], java.io.File dir, Cursor cursor) Dump the Cursor which may contain more than one Geometry type into a Directory of Shapefiles |
java.io.File |
getFile() Get the Shapefile's File |
static Shapefile |
unzip(java.util.Map options = [:], java.lang.Object file) Unzip the zip file and return a Shapefile if possible |
java.io.File |
zip(java.util.Map options = [:]) Create a zip file with all of the Shapefile's files |
Methods inherited from class | Name |
---|---|
class Layer |
add, bounds, bounds, buffer, buffer, clip, collectFromFeature, collectFromFeature, count, count, delete, dissolve, dissolve, eachFeature, eachFeature, erase, filter, first, getBounds, getCount, getCursor, getCursor, getFeatures, getFeatures, getFormat, getMapLayers, getName, getProj, getRaster, getWriter, histogram, identity, interpolate, intersection, merge, minmax, newname, plus, queueModified, readFeatures, reproject, reproject, reproject, round2, setDefaultSymbolizer, setProj, split, split, symDifference, toString, transform, union, update, update, update, withWriter |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a Shapefile Layer from a File
file
- The Shapefile file (*.shp)Create a Shapefile Layer from a File
file
- The Shapefile file (*.shp)Dump the Layer which may contain more than one Geometry type into a Directory of Shapefiles
options
- The optional named parameters:
dir
- The File where the Shapefiles will be writtenlayer
- The Layer to turn into ShapefilesDump the Cursor which may contain more than one Geometry type into a Directory of Shapefiles
options
- The optional named parameters:
dir
- The File where the Shapefiles will be writtencursor
- The Cursor to turn into ShapefilesGet the Shapefile's File
Unzip the zip file and return a Shapefile if possible
options
- The optional named parameters
file
- The zip File or file nameCreate a zip file with all of the Shapefile's files
options
- The optional named parameters