Revision 33738 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wms/wms_1_1_1/WMSLayer1_1_1.java
WMSLayer1_1_1.java | ||
---|---|---|
5 | 5 |
import java.util.ArrayList; |
6 | 6 |
import java.util.TreeMap; |
7 | 7 |
|
8 |
import org.kxml2.io.KXmlParser; |
|
9 |
import org.xmlpull.v1.XmlPullParserException; |
|
10 |
|
|
11 |
import org.gvsig.compat.CompatLocator; |
|
12 |
import org.gvsig.compat.lang.StringUtils; |
|
8 | 13 |
import org.gvsig.remoteclient.utils.BoundaryBox; |
9 | 14 |
import org.gvsig.remoteclient.utils.CapabilitiesTags; |
10 | 15 |
import org.gvsig.remoteclient.utils.Utilities; |
11 | 16 |
import org.gvsig.remoteclient.wms.WMSDimension; |
12 | 17 |
import org.gvsig.remoteclient.wms.WMSExtent; |
13 |
import org.kxml2.io.KXmlParser; |
|
14 |
import org.xmlpull.v1.XmlPullParserException; |
|
15 | 18 |
|
16 | 19 |
|
17 | 20 |
/** |
... | ... | |
20 | 23 |
*/ |
21 | 24 |
public class WMSLayer1_1_1 extends org.gvsig.remoteclient.wms.WMSLayer { |
22 | 25 |
|
26 |
private static final StringUtils stringUtils = CompatLocator.getStringUtils(); |
|
27 |
|
|
23 | 28 |
/** |
24 | 29 |
* <p>Extents defined for the layer in the capabilities doc</p> |
25 | 30 |
*/ |
... | ... | |
145 | 150 |
{ |
146 | 151 |
value = parser.nextText(); |
147 | 152 |
if (value != null){ |
148 |
String[] mySRSs = value.split(" ");
|
|
153 |
String[] mySRSs = stringUtils.split(value, " ");
|
|
149 | 154 |
for (int i = 0; i < mySRSs.length; i++) { |
150 | 155 |
addSrs(mySRSs[i]); |
151 | 156 |
} |
Also available in: Unified diff