public class FromJTS extends GeometryOperation
Converts a geometry from JTS to DAL format. This is a special geometry
operation
because don't use the Geometry parameter and returns a JTS geometry. This
kind
of operation can be called from the GeometryManager
using
invokeOperation.
This operation needs a JTS geometry loaded in the context. The only attribute
of the GeometryOperation
have to be a geometry of this type and the
ID
of this attribute will be JTSGeometry.
Modifier and Type | Field and Description |
---|---|
static int |
CODE |
protected static com.vividsolutions.jts.geom.GeometryFactory |
geomFactory |
protected static GeometryManager |
geomManager |
static java.lang.String |
NAME |
static java.lang.String |
PARAM |
static java.lang.String |
PARAM_PROJ |
OPERATION_CONTAINS_CODE, OPERATION_CONTAINS_NAME, OPERATION_INTERSECTS_CODE, OPERATION_INTERSECTS_NAME
Constructor and Description |
---|
FromJTS() |
Modifier and Type | Method and Description |
---|---|
int |
getOperationIndex()
Returns the constant value that identifies this operation and that was obtained upon registering it.
|
java.lang.Object |
invoke(Geometry geom,
GeometryOperationContext ctx)
Invokes this operation given the geometry and context
|
public static final java.lang.String NAME
public static final java.lang.String PARAM
public static final java.lang.String PARAM_PROJ
protected static GeometryManager geomManager
public static final int CODE
protected static final com.vividsolutions.jts.geom.GeometryFactory geomFactory
public int getOperationIndex()
GeometryOperation
getOperationIndex
in class GeometryOperation
public java.lang.Object invoke(Geometry geom, GeometryOperationContext ctx) throws GeometryOperationException
GeometryOperation
invoke
in class GeometryOperation
geom
- Geometry to which apply this operationctx
- Parameter containerGeometryOperationException
- The implementation is responsible to throw this exception when needed.