Class ST_FromText<R,G>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.internal.filter.sqlmm.SpatialFunction<R>
org.apache.sis.internal.filter.sqlmm.FunctionWithSRID<R>
org.apache.sis.internal.filter.sqlmm.GeometryConstructor<R,G>
org.apache.sis.internal.filter.sqlmm.GeometryParser<R,G>
org.apache.sis.internal.filter.sqlmm.ST_FromText<R,G>
- Type Parameters:
R
- the type of resources (e.g.Feature
) used as inputs.G
- the implementation type of geometry objects.
- All Implemented Interfaces:
Serializable
,Function<R,
,Object> Expression<R,
,Object> Optimization.OnExpression<R,
,Object> FeatureExpression<R,
Object>
Constructor for a geometry which is transformed from a Well-Known Text (WKT) representation.
- Since:
- 1.1
- Version:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.internal.filter.sqlmm.GeometryConstructor
geometry, library
Fields inherited from class org.apache.sis.internal.filter.sqlmm.FunctionWithSRID
ABSENT, literalCRS, MAYBE, PRESENT, srid
Fields inherited from class org.apache.sis.internal.filter.sqlmm.SpatialFunction
operation
-
Constructor Summary
ConstructorsConstructorDescriptionST_FromText
(SQLMM operation, Expression<? super R, ?>[] parameters, Geometries<G> library) Creates a new function for the given parameters. -
Method Summary
Modifier and TypeMethodDescription(package private) final String
Returns the name of the kind of input expected by this expression.protected GeometryWrapper
<G> Parses the given value.recreate
(Expression<? super R, ?>[] effective) Creates a new expression of the same type than this expression, but with an optimized geometry.Methods inherited from class org.apache.sis.internal.filter.sqlmm.GeometryParser
apply, getSyntax
Methods inherited from class org.apache.sis.internal.filter.sqlmm.GeometryConstructor
getGeometryLibrary, getParameters
Methods inherited from class org.apache.sis.internal.filter.sqlmm.FunctionWithSRID
expectedType, getTargetCRS
Methods inherited from class org.apache.sis.internal.filter.sqlmm.SpatialFunction
getChildren, getFunctionName, getValueClass, toValueType
Methods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, symbol, toGeometryWrapper, toString, unwrap, warning
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sis.filter.Optimization.OnExpression
optimize
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
ST_FromText
ST_FromText(SQLMM operation, Expression<? super R, ?>[] parameters, Geometries<G> library) Creates a new function for the given parameters.
-
-
Method Details
-
recreate
Creates a new expression of the same type than this expression, but with an optimized geometry. The optimization may be a geometry computed immediately if all operator parameters are literals.- Specified by:
recreate
in interfaceOptimization.OnExpression<R,
G> - Specified by:
recreate
in classGeometryParser<R,
G> - Parameters:
effective
- the expressions to use as a replacement of this expression parameters.- Returns:
- the new expression, or
this
if unsupported.
-
inputName
Returns the name of the kind of input expected by this expression.- Specified by:
inputName
in classGeometryParser<R,
G> - Returns:
"text"
or"wkb"
.
-
parse
Parses the given value.- Specified by:
parse
in classGeometryParser<R,
G> - Parameters:
value
- the WKT value.- Returns:
- the geometry parsed from the given value.
- Throws:
ClassCastException
- if the given value is not aString
or an array of bytes.Exception
- if parsing failed for another reason. This is an implementation-specific exception.
-