Revision 4427 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/wcs/wcs_1_0_0/WCSProtocolHandler1_0_0.java

View differences:

WCSProtocolHandler1_0_0.java
49 49
import org.gvsig.remoteClient.utils.CapabilitiesTags;
50 50
import org.gvsig.remoteClient.utils.DescribeCoverageTags;
51 51
import org.gvsig.remoteClient.wcs.WCSProtocolHandler;
52
import org.gvsig.remoteClient.wms.WMSProtocolHandler.ServiceInformation;
52 53
import org.kxml2.io.KXmlParser;
53 54
import org.xmlpull.v1.XmlPullParserException;
54 55

  
......
57 58
 *
58 59
 */
59 60
public class WCSProtocolHandler1_0_0 extends WCSProtocolHandler{
60
	Hashtable layerPool = new Hashtable();
61
	
62
	public WCSProtocolHandler1_0_0() {
63
		this.version = "1.0.0";
64
		this.name = "WCS1.0.0";
65
		this.serviceInfo = new ServiceInformation(); 
66
	}
67
	
61 68
    /* (non-Javadoc)
62 69
     * @see org.gvsig.remoteClient.OGCProtocolHandler#parseCapabilities(java.io.File)
63 70
     */
64 71
    /**
65
     * <p>Parse the xml data retrieved from the WMS, it will parse the WMS Capabilities</p>
72
     * <p>Parse the xml data retrieved from the WCS, it will parse the WCS Capabilities</p>
66 73
     * 
67 74
     */
68 75
    public boolean parseCapabilities(File f)
......
152 159
                    switch (tag){
153 160
                        case KXmlParser.START_TAG:
154 161
                            if (parser.getName().compareTo(DescribeCoverageTags.COVERAGE_OFFERING)==0){
155
                                WCSLayer1_0_0 lyr = new WCSLayer1_0_0();
162
                                WCSCoverage1_0_0 lyr = new WCSCoverage1_0_0();
156 163
                                lyr.parse(parser);
157 164
                                if (lyr!=null){
158 165
                                    layerPool.put(lyr.getName(), lyr);
......
244 251
                    {
245 252
                        serviceInfo.title = parser.nextText(); 
246 253
                    }
247
                    else if (parser.getName().compareTo(CapabilitiesTags.ABSTRACT)==0)
254
                    else if (parser.getName().compareTo(CapabilitiesTags.WCS_DESCRIPTION)==0)
248 255
                    {
249 256
                        serviceInfo.abstr = parser.nextText(); 
250 257
                    }

Also available in: Unified diff