Revision 3483 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/wms/wms_1_1_1/WMSProtocolHandler1_1_1.java
WMSProtocolHandler1_1_1.java | ||
---|---|---|
172 | 172 |
else if (parser.getName().compareTo(CapabilitiesTags.LAYER)==0) |
173 | 173 |
{ |
174 | 174 |
WMSLayer1_1_1 lyr = new WMSLayer1_1_1(); |
175 |
lyr.parse(parser,layers); |
|
175 |
rootLayer = lyr; |
|
176 |
lyr.parse(parser, layers); |
|
176 | 177 |
//if((lyr != null) && (lyr.getName() != null)) |
177 | 178 |
//{ |
179 |
if (lyr.getName()!=null) |
|
178 | 180 |
layers.put(lyr.getName(), lyr); |
179 | 181 |
//Add all the SRS that the layer supports to the WMSProtocolHandler if they dont exist already |
180 | 182 |
for (i=0;i<lyr.getAllSrs().size();i++) |
Also available in: Unified diff