Revision 47646 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.csv/src/main/java/org/gvsig/fmap/dal/store/gml/virtualrows/StructureExtractorImpl.java
StructureExtractorImpl.java | ||
---|---|---|
100 | 100 |
xmlinfo.addTag(info); |
101 | 101 |
|
102 | 102 |
} |
103 |
XMLAttributeInfoImpl parentinfo = null; |
|
103 | 104 |
if( path.size()>1 ) { |
104 | 105 |
List<String> parentpath = path.subList(0, path.size()-1); |
105 | 106 |
String parentpath_s = StringUtils.join(parentpath, "/"); |
106 |
XMLAttributeInfoImpl parentinfo = xmlinfo.getTag(parentpath_s);
|
|
107 |
parentinfo = xmlinfo.getTag(parentpath_s); |
|
107 | 108 |
parentinfo.incrChildCount(localName); |
108 | 109 |
parentinfo.setLastChildID(localName, idvalue); |
109 | 110 |
} |
... | ... | |
118 | 119 |
infoChild.setIsAttr(true); |
119 | 120 |
xmlinfo.addTag(infoChild); |
120 | 121 |
} |
122 |
if(StringUtils.equalsIgnoreCase(name, "srsName")){ |
|
123 |
infoChild.setSrs(value); |
|
124 |
if(parentinfo != null){ |
|
125 |
parentinfo.setSrs(value); |
|
126 |
} |
|
127 |
} |
|
121 | 128 |
info.incrChildCount(infoChild.getName()); |
122 | 129 |
info.setLastChildID(infoChild.getName(), idvalueChild); |
123 | 130 |
infoChild.addValue(value); |
Also available in: Unified diff