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 Params | Return Type | Name and description |
|---|---|---|
|
static Directory |
dump(Map options, File dir, Layer layer)Dump the Layer which may contain more than one Geometry type into a Directory of Shapefiles
|
|
static Directory |
dump(Map options, File dir, Cursor cursor)Dump the Cursor which may contain more than one Geometry type into a Directory of Shapefiles
|
|
File |
getFile()Get the Shapefile's File
|
|
static Shapefile |
unzip(Map options, java.lang.Object file)Unzip the zip file and return a Shapefile if possible
|
|
File |
zip(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, fromGeometries, fromGeometry, 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 |
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 name