Revision 28375 branches/v2_0_0_prep/libraries/libGeocoding/src/org/gvsig/geocoding/styles/impl/Composed.java
Composed.java | ||
---|---|---|
33 | 33 |
import java.util.TreeSet; |
34 | 34 |
|
35 | 35 |
import org.gvsig.fmap.dal.exception.DataException; |
36 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
|
37 | 36 |
import org.gvsig.fmap.geom.primitive.Point; |
38 | 37 |
import org.gvsig.fmap.geom.util.Converter; |
39 | 38 |
import org.gvsig.geocoding.address.Address; |
... | ... | |
54 | 53 |
import org.slf4j.LoggerFactory; |
55 | 54 |
|
56 | 55 |
/** |
57 |
* Geocoding style with a address composed. This style can geocode a cross of
|
|
58 |
* streets and the street result of the intersection between two parallel
|
|
59 |
* streets. |
|
56 |
* Implemented Geocoding style with a address composed. This style can geocode a
|
|
57 |
* cross of streets and the street result of the intersection between two
|
|
58 |
* parallel streets.
|
|
60 | 59 |
* |
61 | 60 |
* @author <a href="mailto:jsanz@prodevelop.es"> Jorge Gaspar Sanz Salinas</a> |
62 | 61 |
* @author <a href="mailto:vsanjaime@prodevelop.es"> Vicente Sanjaime Calvet</a> |
... | ... | |
223 | 222 |
for (Object obj : relLiteral) { |
224 | 223 |
RelationsComponent rel = (RelationsComponent) obj; |
225 | 224 |
String key = rel.getKeyElement(); |
226 |
FeatureAttributeDescriptor desc = rel.getValue(); |
|
227 |
String fieldName = desc.getName(); |
|
225 |
String fieldName = rel.getValue(); |
|
228 | 226 |
Object object = null; |
229 | 227 |
String value = ""; |
230 | 228 |
try { |
... | ... | |
239 | 237 |
for (Object obj : relLiteral) { |
240 | 238 |
RelationsComponent rel = (RelationsComponent) obj; |
241 | 239 |
String key = rel.getKeyElement(); |
242 |
FeatureAttributeDescriptor desc = rel.getValue(); |
|
243 |
String fieldName = desc.getName(); |
|
240 |
String fieldName = rel.getValue(); |
|
244 | 241 |
Object object = null; |
245 | 242 |
String value = ""; |
246 | 243 |
try { |
... | ... | |
263 | 260 |
for (Object obj : relLiteral) { |
264 | 261 |
RelationsComponent rel = (RelationsComponent) obj; |
265 | 262 |
String key = rel.getKeyElement(); |
266 |
FeatureAttributeDescriptor desc = rel.getValue(); |
|
267 |
String fieldName = desc.getName(); |
|
263 |
String fieldName = rel.getValue(); |
|
268 | 264 |
Object object = null; |
269 | 265 |
String value = ""; |
270 | 266 |
try { |
... | ... | |
289 | 285 |
* @param state |
290 | 286 |
*/ |
291 | 287 |
public void saveToState(PersistentState state) throws PersistenceException { |
288 |
super.saveToState(state); |
|
292 | 289 |
state.set(INTERSECTLITERALS, this.intersectsLiterals.iterator()); |
293 | 290 |
} |
294 | 291 |
|
... | ... | |
298 | 295 |
* @param state |
299 | 296 |
*/ |
300 | 297 |
public void setState(PersistentState state) throws PersistenceException { |
298 |
super.setState(state); |
|
301 | 299 |
this.intersectsLiterals = (List<Literal>) state.get(INTERSECTLITERALS); |
302 | 300 |
} |
303 | 301 |
|
Also available in: Unified diff