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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    protected static final com.vividsolutions.jts.geom.GeometryFactory
     
    protected static org.gvsig.fmap.geom.GeometryManager
     
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.gvsig.fmap.geom.operation.GeometryOperation

    OPERATION_CONTAINS_CODE, OPERATION_CONTAINS_NAME, OPERATION_INTERSECTS_CODE, OPERATION_INTERSECTS_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    invoke(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.geom.operation.GeometryOperationContext ctx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • PARAM

      public static final String PARAM
      See Also:
    • PARAM_PROJ

      public static final String 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:
      getOperationIndex in class org.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:
      invoke in class org.gvsig.fmap.geom.operation.GeometryOperation
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationException