Revision 40359 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/relationship/Crosses.java
Crosses.java | ||
---|---|---|
67 | 67 |
*/ |
68 | 68 |
public Object invoke(Geometry geom, GeometryOperationContext ctx) |
69 | 69 |
throws GeometryOperationException { |
70 |
DefaultRelationshipGeometryOperationContext myCtx = null; |
|
71 |
myCtx = (DefaultRelationshipGeometryOperationContext) ctx; |
|
72 | 70 |
|
73 |
Geometry otherGeom = myCtx.getGeom();
|
|
71 |
Geometry otherGeom = (Geometry) ctx.getAttribute("geom");
|
|
74 | 72 |
if (otherGeom instanceof DefaultNullGeometry || geom instanceof DefaultNullGeometry){ |
75 | 73 |
return new Boolean(false); |
76 | 74 |
} |
Also available in: Unified diff