Revision 33738 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wfs/wfs_1_0_0/WFSFeature1_0_0.java
WFSFeature1_0_0.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.IOException; |
4 | 4 |
|
5 |
import org.kxml2.io.KXmlParser; |
|
6 |
import org.xmlpull.v1.XmlPullParserException; |
|
7 |
|
|
8 |
import org.gvsig.compat.CompatLocator; |
|
9 |
import org.gvsig.compat.lang.StringUtils; |
|
5 | 10 |
import org.gvsig.remoteclient.utils.BoundaryBox; |
6 | 11 |
import org.gvsig.remoteclient.utils.CapabilitiesTags; |
7 | 12 |
import org.gvsig.remoteclient.utils.Utilities; |
8 | 13 |
import org.gvsig.remoteclient.wfs.WFSFeature; |
9 | 14 |
import org.gvsig.remoteclient.wfs.schema.GMLTags; |
10 | 15 |
import org.gvsig.remoteclient.wfs.schema.XMLNameSpace; |
11 |
import org.kxml2.io.KXmlParser; |
|
12 |
import org.xmlpull.v1.XmlPullParserException; |
|
13 | 16 |
|
14 | 17 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
15 | 18 |
* |
... | ... | |
82 | 85 |
* @author Jorge Piera Llodr? (piera_jor@gva.es) |
83 | 86 |
*/ |
84 | 87 |
public class WFSFeature1_0_0 extends WFSFeature{ |
85 |
|
|
88 |
private static final StringUtils stringUtils = CompatLocator.getStringUtils(); |
|
89 |
|
|
86 | 90 |
public WFSFeature1_0_0() { |
87 | 91 |
|
88 | 92 |
} |
... | ... | |
105 | 109 |
parser.require(KXmlParser.START_TAG, null, CapabilitiesTags.WFS_FEATURETYPE); |
106 | 110 |
|
107 | 111 |
for (int i=0 ; i<parser.getAttributeCount() ; i++){ |
108 |
String[] attName = parser.getAttributeName(i).split(":");
|
|
112 |
String[] attName = stringUtils.split(parser.getAttributeName(i), ":");
|
|
109 | 113 |
if (attName.length == 2){ |
110 | 114 |
if (attName[0].compareTo(GMLTags.XML_NAMESPACE)==0){ |
111 | 115 |
XMLNameSpace nameSpace = new XMLNameSpace(attName[1],parser.getAttributeValue(i)); |
... | ... | |
143 | 147 |
{ |
144 | 148 |
String value = parser.nextText(); |
145 | 149 |
if (value != null){ |
146 |
String[] mySRSs = value.split(" ");
|
|
150 |
String[] mySRSs = stringUtils.split(value, " ");
|
|
147 | 151 |
for (int i = 0; i < mySRSs.length; i++) { |
148 | 152 |
this.addSRS(mySRSs[i]); |
149 | 153 |
} |
Also available in: Unified diff