Revision 29972 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/GeometryOperation.java
GeometryOperation.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.geom.operation; |
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.geom.Geometry; |
4 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
4 | 5 |
|
5 | 6 |
/** |
6 | 7 |
* Every geometry operation that is registered dynamically must extend this class.<br> |
... | ... | |
31 | 32 |
*/ |
32 | 33 |
public abstract class GeometryOperation { |
33 | 34 |
|
35 |
|
|
36 |
// Constants for well-known operations to avoid dependency between geometry model and |
|
37 |
// operations. |
|
38 |
public static final String OPERATION_INTERSECTS_NAME = "intersects"; |
|
39 |
public static final String OPERATION_CONTAINS_NAME = "contains"; |
|
40 |
|
|
41 |
public static int OPERATION_INTERSECTS_CODE = |
|
42 |
GeometryLocator.getGeometryManager().getGeometryOperationCode(OPERATION_INTERSECTS_NAME);; |
|
43 |
public static int OPERATION_CONTAINS_CODE = |
|
44 |
GeometryLocator.getGeometryManager().getGeometryOperationCode(OPERATION_CONTAINS_NAME);; |
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
34 | 51 |
/** |
35 | 52 |
* Invokes this operation given the geometry and context |
36 | 53 |
* @param geom Geometry to which apply this operation |
Also available in: Unified diff