Class FromJTS
java.lang.Object
org.gvsig.fmap.geom.operation.GeometryOperation
org.gvsig.fmap.geom.jts.operation.fromjts.FromJTS
public class FromJTS
extends org.gvsig.fmap.geom.operation.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.
- Author:
- Nacho Brodin (nachobrodin@gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected static final com.vividsolutions.jts.geom.GeometryFactoryprotected static org.gvsig.fmap.geom.GeometryManagerstatic final Stringstatic final Stringstatic final StringFields inherited from class org.gvsig.fmap.geom.operation.GeometryOperation
OPERATION_CONTAINS_CODE, OPERATION_CONTAINS_NAME, OPERATION_INTERSECTS_CODE, OPERATION_INTERSECTS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintinvoke(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.geom.operation.GeometryOperationContext ctx)
-
Field Details
-
NAME
- See Also:
-
PARAM
- See Also:
-
PARAM_PROJ
- See Also:
-
geomManager
protected static org.gvsig.fmap.geom.GeometryManager geomManager -
CODE
public static final int CODE -
geomFactory
protected static final com.vividsolutions.jts.geom.GeometryFactory geomFactory
-
-
Constructor Details
-
FromJTS
public FromJTS()
-
-
Method Details
-
getOperationIndex
public int getOperationIndex()- Specified by:
getOperationIndexin classorg.gvsig.fmap.geom.operation.GeometryOperation
-
invoke
public Object invoke(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.geom.operation.GeometryOperationContext ctx) throws org.gvsig.fmap.geom.operation.GeometryOperationException - Specified by:
invokein classorg.gvsig.fmap.geom.operation.GeometryOperation- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationException
-