Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_895 / extensions / extWFS2 / src / com / iver / cit / gvsig / fmap / drivers / WFSDriver.java @ 10328

History | View | Annotate | Download (3.16 KB)

1
package com.iver.cit.gvsig.fmap.drivers;
2

    
3
import java.awt.geom.Rectangle2D;
4
import java.io.IOException;
5
import java.net.URL;
6

    
7
import org.gvsig.remoteClient.wfs.WFSStatus;
8

    
9
import com.iver.cit.gvsig.fmap.DriverException;
10
import com.iver.cit.gvsig.fmap.core.IFeature;
11

    
12
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
13
 *
14
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
15
 *
16
 * This program is free software; you can redistribute it and/or
17
 * modify it under the terms of the GNU General Public License
18
 * as published by the Free Software Foundation; either version 2
19
 * of the License, or (at your option) any later version.
20
 *
21
 * This program is distributed in the hope that it will be useful,
22
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 * GNU General Public License for more details.
25
 *
26
 * You should have received a copy of the GNU General Public License
27
 * along with this program; if not, write to the Free Software
28
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
29
 *
30
 * For more information, contact:
31
 *
32
 *  Generalitat Valenciana
33
 *   Conselleria d'Infraestructures i Transport
34
 *   Av. Blasco Ib??ez, 50
35
 *   46010 VALENCIA
36
 *   SPAIN
37
 *
38
 *      +34 963862235
39
 *   gvsig@gva.es
40
 *      www.gvsig.gva.es
41
 *
42
 *    or
43
 *
44
 *   IVER T.I. S.A
45
 *   Salamanca 50
46
 *   46005 Valencia
47
 *   Spain
48
 *
49
 *   +34 963163400
50
 *   dac@iver.es
51
 */
52
/* CVS MESSAGES:
53
 *
54
 * $Id: WFSDriver.java 10328 2007-02-14 16:44:47Z  $
55
 * $Log$
56
 * Revision 1.3  2006-05-19 12:47:41  jorpiell
57
 * Se han a?adido algunos m?todos a esta interfaz
58
 *
59
 * Revision 1.2  2006/04/20 16:38:24  jorpiell
60
 * Ahora mismo ya se puede hacer un getCapabilities y un getDescribeType de la capa seleccionada para ver los atributos a dibujar. Queda implementar el panel de opciones y hacer el getFeature().
61
 *
62
 * Revision 1.1  2006/04/19 12:50:16  jorpiell
63
 * Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
64
 *
65
 *
66
 */
67
/**
68
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
69
 */
70
public interface WFSDriver extends VectorialDriver{
71
        /**
72
         * Obtiene las posibilidades del servidor a partir de una URL.
73
         *
74
         * @param 
75
         * server URL.
76
         * @throws WFSException 
77
         */
78
        public void getCapabilities(URL server) throws WFSException;
79
        
80
        /**
81
         * Obtiene la informacion asociada a una feature particular.
82
         * Esta informaci?n puede ser un conjunto de campos o un
83
         * esquema que los contiene. No devuleve nada. Simplemente
84
         * actualiza la lista de features.
85
         * @param featureType
86
         * Nombre de la featurea a buscar
87
         * @throws WFSException
88
         */
89
        public void describeFeatureType(String featureType)throws WFSException;
90
        
91
        /**
92
         * The getFeature opeartion allows retrieval of features
93
         * from a web feature service. 
94
         * @param wfsStatus
95
         * WFS client status
96
         * @return File
97
         * GML File
98
         * @throws WFSException
99
         */
100
        public void getFeature(WFSStatus wfsStatus) throws WFSException;
101
        
102
        public void close();
103
        
104
    public void open() throws DriverException; 
105
    
106
    public IFeatureIterator getFeatureIterator(Rectangle2D r, String strEPSG) throws DriverException,IOException;
107
    
108
    public int getRowIndexByFID(IFeature FID);
109
}