Class StructGeometryRule
java.lang.Object
nz.org.riskscape.engine.types.eqrule.StructGeometryRule
- All Implemented Interfaces:
Identified
,EquivalenceRule
EquivalenceRule
that allows a Struct
with a single Geom
member to be coerced to
a Geom
. This allows expressions like intersects(asset, region)
instead of
intersects(asset.geom_member, region.geom)
. This is really helpful with feature type structs to allow geometry
operations to be applied to them.
NB we might want this to apply more generally, e.g. any struct with a single member of type X can be coerced to X, or consider a special geometry wrapping type to signal that it's a special feature geometry attribute.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.types.eqrule.EquivalenceRule
getId
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
-
Constructor Details
-
StructGeometryRule
public StructGeometryRule()
-
-
Method Details
-
getCoercer
- Specified by:
getCoercer
in interfaceEquivalenceRule
-