Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src-test/org/gvsig/geocoding/GeocoderTest.java
GeocoderTest.java | ||
---|---|---|
172 | 172 |
source.setLayerSource(store); |
173 | 173 |
|
174 | 174 |
AbstractGeocodingStyle style = new SimpleCentroid(); |
175 |
FeatureType ftype = store.getDefaultFeatureType(); |
|
176 | 175 |
Literal relations = new DefaultLiteral(); |
177 |
relations.add(new DefaultRelationsComponent("via", ftype |
|
178 |
.getAttributeDescriptor("STREET_TYP"))); |
|
179 |
relations.add(new DefaultRelationsComponent("calle", ftype |
|
180 |
.getAttributeDescriptor("STREET_NAM"))); |
|
181 |
relations.add(new DefaultRelationsComponent("nparfrom", ftype |
|
182 |
.getAttributeDescriptor("RF_ADD"))); |
|
183 |
relations.add(new DefaultRelationsComponent("nparto", ftype |
|
184 |
.getAttributeDescriptor("RT_ADD"))); |
|
185 |
relations.add(new DefaultRelationsComponent("nimparfrom", ftype |
|
186 |
.getAttributeDescriptor("LF_ADD"))); |
|
187 |
relations.add(new DefaultRelationsComponent("nimparto", ftype |
|
188 |
.getAttributeDescriptor("LT_ADD"))); |
|
176 |
relations.add(new DefaultRelationsComponent("via","STREET_TYP")); |
|
177 |
relations.add(new DefaultRelationsComponent("calle","STREET_NAM")); |
|
178 |
relations.add(new DefaultRelationsComponent("nparfrom","RF_ADD")); |
|
179 |
relations.add(new DefaultRelationsComponent("nparto","RT_ADD")); |
|
180 |
relations.add(new DefaultRelationsComponent("nimparfrom","LF_ADD")); |
|
181 |
relations.add(new DefaultRelationsComponent("nimparto","LT_ADD")); |
|
189 | 182 |
|
190 | 183 |
style.setRelationsLiteral(relations); |
191 | 184 |
source.setStyle(style); |
Also available in: Unified diff