Statistics
| Revision:

svn-gvsig-desktop / branches / FMap_SLD / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / ReadableVectorial.java @ 1772

History | View | Annotate | Download (2.87 KB)

1 1100 fjp
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. 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
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41 214 fernando
package com.iver.cit.gvsig.fmap.layers;
42
43 305 fjp
import com.iver.cit.gvsig.fmap.core.IGeometry;
44 214 fernando
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
45
46 369 fernando
import java.awt.geom.Rectangle2D;
47 214 fernando
48 369 fernando
49 214 fernando
/**
50
 * Interfaz usada internamente para acceder a fuentes de datos vectoriales en
51
 * modo lectura
52
 */
53
public interface ReadableVectorial {
54 1034 vcaballero
        /**
55
         * Indica que se va a comenzar a hacer una serie de operaciones sobre el
56
         * origen de datos con la finalidad de que dicho origen de datos se
57
         * prepare (abra el fichero, comience una transacci?n, conecte al
58
         * servidor, ...). Abre el fichero de ?ndices en caso de que exista.
59
         *
60
         * @throws DriverIOException
61
         */
62
        void start() throws DriverIOException;
63 214 fernando
64 1034 vcaballero
        /**
65
         * Hace que se cierre el soporte f?sico de la capa. Cierra el fichero de
66
         * ?ndices en caso de que exista.
67
         *
68
         * @throws DriverIOException
69
         */
70
        void stop() throws DriverIOException;
71 214 fernando
72 1034 vcaballero
        /**
73
         * Devuelve la geometr?a a partir de un ?ndice.
74
         *
75
         * @param index ?ndice.
76
         *
77
         * @return Geometr?a.
78
         *
79
         * @throws DriverIOException
80
         */
81
        IGeometry getShape(int index) throws DriverIOException;
82 214 fernando
83 1034 vcaballero
        /**
84
         * Devuelve el n?mero de Shape.
85
         *
86
         * @return N?mero de Shape.
87
         *
88
         * @throws DriverIOException
89
         */
90
        int getShapeCount() throws DriverIOException;
91 214 fernando
92 1034 vcaballero
        /**
93
         * Devuelve la extensi?n total de la capa.
94
         *
95
         * @return Extensi?n total.
96
         *
97
         * @throws DriverIOException
98
         */
99
        Rectangle2D getFullExtent() throws DriverIOException;
100 369 fernando
101 1034 vcaballero
        /**
102
         * Obtiene el tipo de las geometr?as almacenadas en esta fuente de datos
103
         *
104
         * @return Obtiene el tipo de la capa. Es un bit-oring de los tipos
105
         *                    definidos en FShape POINT, LINE, POLYGON o TEXT;
106
         *
107
         * @throws DriverIOException
108
         */
109
        int getShapeType() throws DriverIOException;
110 214 fernando
}