Package org.locationtech.udig.catalog.wmsc.server

Examples of org.locationtech.udig.catalog.wmsc.server.TiledWebMapServer


    public WMSCServieInfo getInfo( IProgressMonitor monitor ) throws IOException {
        return (WMSCServieInfo) super.getInfo(monitor);
    }
    @Override
    protected WMSCServieInfo createInfo( IProgressMonitor monitor ) throws IOException {
        TiledWebMapServer tileServer = getWMSC();
        if (tileServer == null) {
            return null; // could not connect
        }
        rLock.lock();
        try {
View Full Code Here


                            String xml = (String) serializable;

                            // NOTE: this constructor will check
                            // the updateSequence number and compare it to any
                            // capabilities it can fetch from the server
                            wmsc = new TiledWebMapServer(this.url, xml, true);
                        } catch (Exception e) {
                            WmsPlugin.log("Restore from cached capabilities failed", e); //$NON-NLS-1$
                            // we are going to continue by trying to connect to the real thing
                        }
                    }
                    if (wmsc == null) {
                        // we could not reconstruct from our cached capabilities?

                        // this constructor will grab the capabilities when
                        // first needed
                        try {
                            wmsc = new TiledWebMapServer(this.url);
                        } catch (ServiceException e) {
                            WmsPlugin.log("Creating Tile Web Server failed", e); //$NON-NLS-1$
                        }
                        String xml = wmsc.getCapabilitiesXml();
                        getPersistentProperties().put(CAPABILITIES_KEY, xml);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.wmsc.server.TiledWebMapServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.