Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src-test/org/gvsig/geocoding/ComposedTest.java
ComposedTest.java | ||
---|---|---|
202 | 202 |
AbstractGeocodingStyle style = new Composed(); |
203 | 203 |
FeatureType ftype = store.getDefaultFeatureType(); |
204 | 204 |
Literal relations = new DefaultLiteral(); |
205 |
relations.add(new DefaultRelationsComponent("Calle", ftype |
|
206 |
.getAttributeDescriptor("STREET_NAM"))); |
|
207 |
relations.add(new DefaultRelationsComponent("TipoVia", ftype |
|
208 |
.getAttributeDescriptor("STREET_TYP"))); |
|
209 |
relations.add(new DefaultRelationsComponent("Municipio", ftype |
|
210 |
.getAttributeDescriptor("MUNI"))); |
|
211 |
relations.add(new DefaultRelationsComponent("Provincia", ftype |
|
212 |
.getAttributeDescriptor("PROV"))); |
|
213 |
relations.add(new DefaultRelationsComponent("Pais", ftype |
|
214 |
.getAttributeDescriptor("PAIS"))); |
|
205 |
relations.add(new DefaultRelationsComponent("Calle", "STREET_NAM")); |
|
206 |
relations.add(new DefaultRelationsComponent("TipoVia","STREET_TYP")); |
|
207 |
relations.add(new DefaultRelationsComponent("Municipio","MUNI")); |
|
208 |
relations.add(new DefaultRelationsComponent("Provincia","PROV")); |
|
209 |
relations.add(new DefaultRelationsComponent("Pais","PAIS")); |
|
215 | 210 |
|
216 | 211 |
style.setRelationsLiteral(relations); |
217 | 212 |
source.setStyle(style); |
Also available in: Unified diff