Statistics
| Revision:

gvsig-raster / org.gvsig.raster.wmts / trunk / org.gvsig.raster.wmts / org.gvsig.raster.wmts.ogc / org.gvsig.raster.wmts.ogc.api / src / main / java / org / gvsig / raster / wmts / ogc / WMTSClient.java @ 1806

History | View | Annotate | Download (2.35 KB)

1
package org.gvsig.raster.wmts.ogc;
2

    
3
import java.io.File;
4
import java.net.MalformedURLException;
5
import java.net.URL;
6
import java.util.List;
7

    
8
import org.gvsig.compat.net.ICancellable;
9
import org.gvsig.raster.wmts.ogc.exception.DownloadException;
10
import org.gvsig.raster.wmts.ogc.exception.ServerErrorException;
11
import org.gvsig.raster.wmts.ogc.exception.WMTSException;
12

    
13
public interface WMTSClient {
14
        /**
15
         * Connects to a server
16
         * @param override
17
         * @param cancel
18
         * @return
19
         */
20
        public boolean connect(boolean override, ICancellable cancel);
21
        
22
        /**
23
         * Sets longitude first in the axis order
24
         * @param force
25
         */
26
        public void setForceLongitudeFirstAxisOrder(boolean force);
27
        
28
        /**
29
         * Gets the list of themes
30
         * @return
31
         */
32
        public WMTSThemes getThemes();
33
        
34
    /**
35
     * Gets the set of tiles definition
36
     * @return
37
     */
38
    public List<WMTSTileMatrixSet> getTileMatrixSet();
39
    
40
    /**
41
     * Gets a layer 
42
     * @param layerName
43
     * @return
44
     */
45
    public WMTSLayer getLayer(String layerName);
46
    
47
        /**
48
         * Gets the host description
49
         * @return
50
         */
51
        public WMTSServiceIdentification getServiceIdentification();
52
        
53
        /**
54
         * Gets the host description
55
         * @return
56
         */
57
        public WMTSServiceProvider getServiceProvider();
58
        
59
        /**
60
     * <p>Gets a tile downloading using a specific path and file.</p> 
61
     * @throws ServerErrorException 
62
     */
63
    public File getTile(WMTSStatus status, ICancellable cancel, File file) throws WMTSException, ServerErrorException;
64
        
65
         /**
66
     * <p>One of the three interfaces that OGC WMS defines. Request a map.</p> 
67
     * @throws ServerErrorException 
68
     */
69
    public File getTile(WMTSStatus status, ICancellable cancel) throws WMTSException, ServerErrorException;
70
    
71
    /**
72
     * Builds the URL to get a tile using a WMTSStatus object 
73
     * @throws ServerErrorException 
74
     */
75
    public URL getTileURL(WMTSStatus status) throws MalformedURLException;
76
    
77
    /**
78
     * Downloads a file
79
     * @throws DownloadException 
80
     * @throws ServerErrorException 
81
     */
82
    public File downloadFile(URL url, ICancellable cancel) throws DownloadException;
83
    
84
    /**
85
     * <p>It will send a GetFeatureInfo request to the WMTS
86
     * Parsing the response and redirecting the info to the WMTS client</p>
87
     */
88
    public String getFeatureInfo(WMTSStatus status, int x, int y, ICancellable cancel);
89
    
90
        
91
        public String getHost();
92
}