Statistics
| Revision:

svn-gvsig-desktop / tags / v1_11_0_Build_1306 / extensions / extArcims / src / es / prodevelop / cit / gvsig / arcims / fmap / drivers / ArcImsDriver.java @ 35731

History | View | Annotate | Download (3.41 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2006 Prodevelop and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *   Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *   +34 963862235
28
 *   gvsig@gva.es
29
 *   www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   Prodevelop Integraci?n de Tecnolog?as SL
34
 *   Conde Salvatierra de ?lava , 34-10
35
 *   46004 Valencia
36
 *   Spain
37
 *
38
 *   +34 963 510 612
39
 *   +34 963 510 968
40
 *   gis@prodevelop.es
41
 *   http://www.prodevelop.es
42
 */
43
package es.prodevelop.cit.gvsig.arcims.fmap.drivers;
44

    
45
import java.io.IOException;
46
import java.net.ProtocolException;
47
import java.net.URL;
48

    
49
import org.gvsig.remoteClient.arcims.ArcImsStatus;
50
import org.gvsig.remoteClient.arcims.exceptions.ArcImsException;
51
import org.gvsig.remoteClient.wms.ICancellable;
52

    
53

    
54
/**
55
 * This interface offers the functionality of an ArcIMS client.
56
 *
57
 * @see es.prodevelop.cit.gvsig.arcims.fmap.drivers.FMapRasterArcImsDriver FMapRasterArcImsDriver
58
 * @author jldominguez
59
 */
60
public interface ArcImsDriver {
61
    /**
62
    * Gets the layers available on the server
63
    * (the class that implements this interface will
64
    * get the service name from the user)
65
    *
66
    * @param server ArcIMS server's URL
67
    */
68
    public void getCapabilities(URL server, ICancellable cancel)
69
        throws ArcImsException, IOException, ProtocolException;
70

    
71
    /**
72
    * Gets the visual information from the layers of
73
    * the required service (that is, the map itself) depending
74
    * on the graphic context (coord. system, view's size, etc)
75
    *
76
    * @param status the graphic context in which the request is performed
77
    * @return the graphic data to be viewed, that is, the map
78
    */
79
    public Object getMap(ArcImsStatus status)
80
        throws ArcImsException, IOException, ProtocolException;
81

    
82
    /**
83
    * Gets the layer's available information on a particular xy coordinates
84
    * (usually derived from a mouse click). If it's a raster layer,
85
    * a request will be sent to the server asking for the data associated
86
    * to the elements (polygon, line or point) which cover the clicked
87
    * pixel.
88
    *
89
    * @param status the graphic context in which the request is performed
90
    * (ccord. system, view's dimension etc.)
91
    * @param i x coordinate of the queried pixel
92
    * @param j y coordinate of the queried pixel
93
    * @param  max_value maximun number of vector elements whose information
94
    * will be retrieved.
95
    * @return the available information at the given coordinates
96
    */
97
    public String getFeatureInfo(ArcImsStatus status, int i, int j,
98
        int max_value) throws ArcImsException, IOException, ProtocolException;
99
}