public class VectorToken extends Token
Modifier and Type | Class and Description |
---|---|
static class |
VectorToken.VectorType |
Modifier and Type | Field and Description |
---|---|
static VectorToken.VectorType |
VECTOR |
Constructor and Description |
---|
VectorToken(org.geotools.data.simple.SimpleFeatureCollection features)
Create a new VectorToken from a set of features.
|
VectorToken(org.geotools.data.simple.SimpleFeatureSource source,
org.opengis.referencing.crs.CoordinateReferenceSystem defaultCRS)
Create a new VectorToken from a feature source.
|
VectorToken(java.lang.String string) |
Modifier and Type | Method and Description |
---|---|
org.geotools.data.simple.SimpleFeatureCollection |
getFilteredVectors(org.opengis.filter.Filter filter)
Get the filtered set of features represented in this token.
|
Type |
getType()
Get the token type.
|
org.geotools.data.simple.SimpleFeatureCollection |
getVectors()
Get the set of features represented in this token.
|
BooleanToken |
isEqualTo(Token rightArgument)
Test for equality of the values of this Token and the argument Token.
|
java.lang.String |
toString()
Return a String representation of the VectorToken.
|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public static final VectorToken.VectorType VECTOR
public VectorToken(org.geotools.data.simple.SimpleFeatureCollection features) throws IllegalActionException
IllegalActionException
public VectorToken(org.geotools.data.simple.SimpleFeatureSource source, org.opengis.referencing.crs.CoordinateReferenceSystem defaultCRS)
source
- A data source for the features.defaultCRS
- Coordinate reference system to use if not defined by the source.public VectorToken(java.lang.String string)
public org.geotools.data.simple.SimpleFeatureCollection getVectors() throws IllegalActionException
IllegalActionException
public org.geotools.data.simple.SimpleFeatureCollection getFilteredVectors(org.opengis.filter.Filter filter) throws IllegalActionException
filter
- A filter to select a subset of the features.IllegalActionException
public final BooleanToken isEqualTo(Token rightArgument) throws IllegalActionException
isEqualTo
in class Token
rightArgument
- The Token to test against.IllegalActionException
- Not thrown in this base class.