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