class GeoScript extends java.lang.Object
The GeoScript class contains category methods.
You can easily create a Point from a list:
use(GeoScript) { Point pt = [1,2] as Point }
or a LineString from a list or lists:
use(GeoScript) { LineString line = [[1,2],[2,3],[3,4]] as LineString }
Constructor and description |
---|
GeoScript() |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.Object |
asType(java.util.List list, java.lang.Class type) Convert a List of numbers to a GeoScript Geometry. |
|
static java.lang.Object |
asType(java.io.File file, java.lang.Class type) Convert a File to GeoScript Layer |
|
static java.lang.Object |
asType(java.lang.String str, java.lang.Class type) Convert a String to a GeoScript object (Color, Projection, Geometry, Workspace, Expression, Geodetic) |
|
static java.lang.Object |
asType(Map map, java.lang.Class type) Create a GeoScript Workspace from a Map |
|
static java.io.File |
download(Map options, java.net.URL url, java.io.File file) Download a URL to a File |
|
static java.lang.String |
getVersion() Get the GeoScript version |
|
static java.lang.Object |
unwrap(java.lang.Object obj) Convert a GeoScript object to a GeoTools object if possible |
|
static java.io.File |
unzip(java.io.File zipFile, java.io.File dir) Unzip the Zip File into a Directory |
|
static java.lang.Object |
wrap(java.lang.Object obj) Convert a GeoTools Object to a GeoScript Object if possible |
|
static java.io.File |
zip(java.util.List<java.io.File> files, java.io.File zipFile) Zip a List of Files |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Convert a List of numbers to a GeoScript Geometry.
list
- A List of numberstype
- The Geometry ClassConvert a File to GeoScript Layer
file
- The Filetype
- The GeoScript Layer classConvert a String to a GeoScript object (Color, Projection, Geometry, Workspace, Expression, Geodetic)
str
- The Stringtype
- The GeoScript classCreate a GeoScript Workspace from a Map
map
- The Maptype
- The GeoScript Workspace classDownload a URL to a File
options
- Optional named parameters:
url
- The URLfile
- The FileGet the GeoScript version
Convert a GeoScript object to a GeoTools object if possible
obj
- The potential GeoScript objectUnzip the Zip File into a Directory
zipFile
- The Zip Filedir
- The output DirectoryConvert a GeoTools Object to a GeoScript Object if possible
obj
- The ObjectZip a List of Files
files
- The List of FileszipFile
- The Zip File