Revision 3520 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/wms/wms_1_1_1/WMSLayer1_1_1.java

View differences:

WMSLayer1_1_1.java
8 8
import org.gvsig.remoteClient.utils.BoundaryBox;
9 9
import org.gvsig.remoteClient.utils.CapabilitiesTags;
10 10
import org.gvsig.remoteClient.utils.Utilities;
11
import org.gvsig.remoteClient.wms.WMSDimension;
11 12
import org.kxml2.io.KXmlParser;
12 13
import org.xmlpull.v1.XmlPullParserException;
13 14

  
14 15

  
15 16
/**
16
 * <p></p>
17
 * <p>WMS Layer for WMS 1.1.1</p>
17 18
 * 
18 19
 */
19 20
public class WMSLayer1_1_1 extends org.gvsig.remoteClient.wms.WMSLayer {
......
62 63
                        lyr.setParent(this);
63 64
                        getChildren().add(lyr);
64 65
                        // Jaume
65
                        if (lyr.getName()!=null){
66
                        if (lyr.getName()!=null)
66 67
                            layerTreeMap.put(lyr.getName(), lyr);
67
                            System.out.println(lyr.getName()+": "+lyr.getTitle());
68
                        }
69 68
                    }
70 69
                    else if (parser.getName().compareTo(CapabilitiesTags.ATTRIBUTION)==0){
71 70
                        // TODO comprobar que esto se necesite o se deseche
......
143 142
                    {
144 143
                        WMSStyle1_1_1 style = new WMSStyle1_1_1();
145 144
                        style.parse(parser);
146
                        if((style != null) && (style.getName() != null))
145
                        if ((style != null) && (style.getName() != null))
147 146
                        {
148
                            styles.put(style.getName(),style);
147
                            styles.add(style);
149 148
                        }
150
                    }					
149
                    }
150
                    else if (parser.getName().compareTo(CapabilitiesTags.DIMENSION)==0)
151
                    {
152
                        WMSDimension dim = new WMSDimension();
153
                        dim.parse(parser);
154
                        if ((dim != null) && (dim.getName() != null))
155
                        {
156
                            addDimension(dim);
157
                        }
158
                    }
151 159
                    break;
152 160
                case KXmlParser.END_TAG:
153 161
                    if (parser.getName().compareTo(CapabilitiesTags.LAYER) == 0)

Also available in: Unified diff