|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jcs.conflate.polygonmatch.TargetUnioningFCMatchFinder
An FCMatchFinder wrapper that also treats unions of adjacent target features as themselves target features. Such unions are formed into composite target features. These composites are temporary -- before the results are returned, each composite is split into its constituent features.
The result returned is a one-to-one mapping of target feature to matched candidate feature; the one-to-one mapping is achieved by discarding all matches except for those with the highest scores, for each feature (target and matched candidate).
Note on composites: if a composite's top score is higher than the top score of each of its constituents, the composite match is retained and constituent matches are discarded; otherwise, the composite match is discarded and constituent matches are retained.
| Nested Class Summary | |
static class |
TargetUnioningFCMatchFinder.CompositeFeature
|
| Constructor Summary | |
TargetUnioningFCMatchFinder(int maxCompositeSize,
FCMatchFinder matchFinder)
|
|
| Method Summary | |
protected com.vividsolutions.jump.feature.FeatureCollection |
createCompositeFC(com.vividsolutions.jump.feature.FeatureCollection fc,
com.vividsolutions.jump.task.TaskMonitor monitor)
|
protected java.util.Map |
disambiguateCompositeTargetConstituents(java.util.Map compositeTargetToMatchesMap,
com.vividsolutions.jump.feature.FeatureSchema candidateSchema,
com.vividsolutions.jump.task.TaskMonitor monitor)
Returns a composite-target-to-Matches map in which each target constituent will be found in at most one composite target. |
java.lang.Integer |
getUnionID(com.vividsolutions.jump.feature.Feature target)
|
java.util.Map |
match(com.vividsolutions.jump.feature.FeatureCollection targetFC,
com.vividsolutions.jump.feature.FeatureCollection candidateFC,
com.vividsolutions.jump.task.TaskMonitor monitor)
For each target feature, finds matches among the candidate features. |
protected boolean |
shareEdge(com.vividsolutions.jts.geom.Geometry a,
com.vividsolutions.jts.geom.Geometry b)
|
protected java.util.Map |
splitCompositeTargets(java.util.Map compositeToMatchesMap,
com.vividsolutions.jump.task.TaskMonitor monitor)
Splits each composite target into its constituent features. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TargetUnioningFCMatchFinder(int maxCompositeSize,
FCMatchFinder matchFinder)
maxCompositeSize - the maximum number of adjacent target features to
try combiningmatchFinder - the FCMatchFinder to wrap| Method Detail |
public java.util.Map match(com.vividsolutions.jump.feature.FeatureCollection targetFC,
com.vividsolutions.jump.feature.FeatureCollection candidateFC,
com.vividsolutions.jump.task.TaskMonitor monitor)
FCMatchFinder
match in interface FCMatchFinder
protected com.vividsolutions.jump.feature.FeatureCollection createCompositeFC(com.vividsolutions.jump.feature.FeatureCollection fc,
com.vividsolutions.jump.task.TaskMonitor monitor)
protected java.util.Map disambiguateCompositeTargetConstituents(java.util.Map compositeTargetToMatchesMap,
com.vividsolutions.jump.feature.FeatureSchema candidateSchema,
com.vividsolutions.jump.task.TaskMonitor monitor)
protected boolean shareEdge(com.vividsolutions.jts.geom.Geometry a,
com.vividsolutions.jts.geom.Geometry b)
protected java.util.Map splitCompositeTargets(java.util.Map compositeToMatchesMap,
com.vividsolutions.jump.task.TaskMonitor monitor)
public java.lang.Integer getUnionID(com.vividsolutions.jump.feature.Feature target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||