Class ST_FromBinary<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_FromBinary<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 Binary (WKB) representation.
- Since:
- 1.1
- Version:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor cross-version compatibility.Fields inherited from class org.apache.sis.internal.filter.sqlmm.GeometryConstructor
geometry, libraryFields inherited from class org.apache.sis.internal.filter.sqlmm.FunctionWithSRID
ABSENT, literalCRS, MAYBE, PRESENT, sridFields inherited from class org.apache.sis.internal.filter.sqlmm.SpatialFunction
operation -
Constructor Summary
ConstructorsConstructorDescriptionST_FromBinary(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 StringReturns 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, getSyntaxMethods inherited from class org.apache.sis.internal.filter.sqlmm.GeometryConstructor
getGeometryLibrary, getParametersMethods inherited from class org.apache.sis.internal.filter.sqlmm.FunctionWithSRID
expectedType, getTargetCRSMethods inherited from class org.apache.sis.internal.filter.sqlmm.SpatialFunction
getChildren, getFunctionName, getValueClass, toValueTypeMethods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, symbol, toGeometryWrapper, toString, unwrap, warningMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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_FromBinary
ST_FromBinary(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:
recreatein interfaceOptimization.OnExpression<R,G> - Specified by:
recreatein classGeometryParser<R,G> - Parameters:
effective- the expressions to use as a replacement of this expression parameters.- Returns:
- the new expression, or
thisif unsupported.
-
inputName
Returns the name of the kind of input expected by this expression.- Specified by:
inputNamein classGeometryParser<R,G> - Returns:
"text"or"wkb".
-
parse
Parses the given value.- Specified by:
parsein classGeometryParser<R,G> - Parameters:
value- the WKB value.- Returns:
- the geometry parsed from the given value.
- Throws:
ClassCastException- if the given value is not aByteBufferor an array of bytes.Exception- if parsing failed for another reason. This is an implementation-specific exception.
-