Revision 9030 branches/v10/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/layers/WFSLayerNode.java
WFSLayerNode.java | ||
---|---|---|
52 | 52 |
* |
53 | 53 |
* $Id$ |
54 | 54 |
* $Log$ |
55 |
* Revision 1.6.2.2 2006-11-17 11:28:45 ppiqueras |
|
55 |
* Revision 1.6.2.3 2006-11-28 09:24:45 jorpiell |
|
56 |
* Si una feature no tiene tipo, se le tiene que informar al usuario de ello |
|
57 |
* |
|
58 |
* Revision 1.6.2.2 2006/11/17 11:28:45 ppiqueras |
|
56 | 59 |
* Corregidos bugs y aƱadida nueva funcionalidad. |
57 | 60 |
* |
58 | 61 |
* Revision 1.10 2006/11/02 11:13:03 jorpiell |
... | ... | |
253 | 256 |
if (geometry == null){ |
254 | 257 |
if ((getFields() != null) && (getFields().size()>0)){ |
255 | 258 |
XMLElement element = (XMLElement)getFields().get(0); |
256 |
if (element.getEntityType().getType() == IXMLType.COMPLEX){ |
|
257 |
Vector attributes = ((XMLComplexType)element.getEntityType()).getAttributes(); |
|
258 |
for (int i=0 ; i<attributes.size() ; i++){ |
|
259 |
XMLElement child = (XMLElement)attributes.get(i); |
|
260 |
if (child.getEntityType() != null){ |
|
261 |
if (child.getEntityType().getType() == IXMLType.GML_GEOMETRY){ |
|
262 |
geometry = (GMLGeometryType)child.getEntityType(); |
|
259 |
//If it doesn't has type |
|
260 |
if (element.getEntityType() != null){ |
|
261 |
if (element.getEntityType().getType() == IXMLType.COMPLEX){ |
|
262 |
Vector attributes = ((XMLComplexType)element.getEntityType()).getAttributes(); |
|
263 |
for (int i=0 ; i<attributes.size() ; i++){ |
|
264 |
XMLElement child = (XMLElement)attributes.get(i); |
|
265 |
if (child.getEntityType() != null){ |
|
266 |
if (child.getEntityType().getType() == IXMLType.GML_GEOMETRY){ |
|
267 |
geometry = (GMLGeometryType)child.getEntityType(); |
|
268 |
} |
|
263 | 269 |
} |
264 | 270 |
} |
265 | 271 |
} |
Also available in: Unified diff