Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src/org/gvsig/geocoding/geommatches/MatcherUtils.java

View differences:

MatcherUtils.java
36 36

  
37 37
import org.gvsig.fmap.dal.exception.DataException;
38 38
import org.gvsig.fmap.dal.feature.Feature;
39
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
40 39
import org.gvsig.fmap.geom.Geometry;
41 40
import org.gvsig.fmap.geom.GeometryLocator;
42 41
import org.gvsig.fmap.geom.exception.CreateGeometryException;
......
328 327
	 * @return
329 328
	 */
330 329
	public static HashMap<String, List<ScoredFeature>> groupScoredFeaturesByAttribute(
331
			FeatureAttributeDescriptor desc, List<ScoredFeature> features) {
330
			String desc, List<ScoredFeature> features) {
332 331

  
333 332
		HashMap<String, List<ScoredFeature>> groups = new HashMap<String, List<ScoredFeature>>();
334 333
		Iterator<ScoredFeature> it = features.iterator();
......
339 338
			Feature feat = null;
340 339
			try {
341 340
				feat = sFeat.getFeature();
342
				String key = feat.get(desc.getIndex()).toString();
341
				String key = feat.get(desc).toString();
343 342
				// Store the geometries for attribute in the List
344 343
				boolean contiene = groups.containsKey(key);
345 344
				if (!contiene) {

Also available in: Unified diff