Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extWFS2 / src / com / iver / cit / gvsig / fmap / drivers / WFSDriver.java @ 10626

History | View | Annotate | Download (3.38 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.exceptions.layers.LoadLayerException;
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 10626 2007-03-06 16:55:54Z caballero $
55
 * $Log$
56
 * Revision 1.5  2007-03-06 16:54:14  caballero
57
 * Exceptions
58
 *
59
 * Revision 1.4  2007/02/09 14:12:38  jorpiell
60
 * Soporte para WFS 1.1 y WFS-T
61
 *
62
 * Revision 1.3  2006/05/19 12:47:41  jorpiell
63
 * Se han a?adido algunos m?todos a esta interfaz
64
 *
65
 * Revision 1.2  2006/04/20 16:38:24  jorpiell
66
 * 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().
67
 *
68
 * Revision 1.1  2006/04/19 12:50:16  jorpiell
69
 * Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
70
 *
71
 *
72
 */
73
/**
74
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
75
 */
76
public interface WFSDriver extends VectorialDriver{
77
        /**
78
         * Obtiene las posibilidades del servidor a partir de una URL.
79
         *
80
         * @param
81
         * server URL.
82
         * @throws WFSLayerException
83
         * @throws LoadLayerException
84
         * @throws WFSException
85
         */
86
        public void getCapabilities(URL server) throws LoadLayerException;
87

    
88
        /**
89
         * Obtiene la informacion asociada a una feature particular.
90
         * Esta informaci?n puede ser un conjunto de campos o un
91
         * esquema que los contiene. No devuleve nada. Simplemente
92
         * actualiza la lista de features.
93
         * @param featureType
94
         * Nombre de la featurea a buscar
95
         * @param nameSpace
96
         * Feature namespace
97
         * @throws WFSException
98
         */
99
        public void describeFeatureType(String featureType,String nameSpace)throws WFSLayerException;
100

    
101
        /**
102
         * The getFeature opeartion allows retrieval of features
103
         * from a web feature service.
104
         * @param wfsStatus
105
         * WFS client status
106
         * @return File
107
         * GML File
108
         * @throws WFSException
109
         */
110
        public void getFeature(WFSStatus wfsStatus) throws WFSLayerException;
111

    
112
        public void close();
113

    
114
    public void open();
115

    
116
    public IFeatureIterator getFeatureIterator(Rectangle2D r, String strEPSG);
117

    
118
    public int getRowIndexByFID(IFeature FID);
119
}