Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src-test/org/gvsig/geocoding/geomatches/TestMatcherUtils.java

View differences:

TestMatcherUtils.java
227 227
			listFeats.add(sFeat);
228 228
		}
229 229
		// group by attribute
230
		FeatureAttributeDescriptor field = sLinesStore.getDefaultFeatureType()
231
				.getAttributeDescriptor("Campo1");
232 230
		HashMap<String, List<ScoredFeature>> dissolAttributes = MatcherUtils
233
				.groupScoredFeaturesByAttribute(field, listFeats);
231
				.groupScoredFeaturesByAttribute("Campo1", listFeats);
234 232

  
235 233
		// For each group of features, to do geometries dissolve process getting
236 234
		// at the end one o more geometries
......
272 270
			sFeat.setScore(Math.random());
273 271
			listFeats.add(sFeat);
274 272
		}
275
		// group by attribute
276
		FeatureAttributeDescriptor field = provStore.getDefaultFeatureType()
277
				.getAttributeDescriptor("COM");
273
		// group by attribute		
278 274
		HashMap<String, List<ScoredFeature>> dissolAttributes = MatcherUtils
279
				.groupScoredFeaturesByAttribute(field, listFeats);
275
				.groupScoredFeaturesByAttribute("COM", listFeats);
280 276

  
281 277
		// For each group of features, to do geometries dissolve process getting
282 278
		// at the end one o more geometries

Also available in: Unified diff