Statistics
| Revision:

root / trunk / libraries / libGPE / src / org / gvsig / gpe / IGPEContentHandler.java @ 11203

History | View | Annotate | Download (3.64 KB)

1
package org.gvsig.gpe;
2

    
3

    
4
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
 *
46
 * $Id: IGPEContentHandler.java 11203 2007-04-13 13:14:55Z jorpiell $
47
 * $Log$
48
 * Revision 1.6  2007-04-13 13:14:55  jorpiell
49
 * Created the base tests and add some methods to the content handler
50
 *
51
 * Revision 1.5  2007/04/12 17:06:42  jorpiell
52
 * First GML writing tests
53
 *
54
 * Revision 1.4  2007/04/11 13:04:51  jorpiell
55
 * Add the srs param to the addLayer method
56
 *
57
 * Revision 1.3  2007/04/11 08:46:20  csanchez
58
 * Actualizacion protoripo libGPE
59
 *
60
 * Revision 1.2  2007/04/11 07:35:43  jorpiell
61
 * Se ha actualizado despu?s de mirar la especificaci?n de GML 2.x. Faltan las geometr?as multiples
62
 *
63
 * Revision 1.1  2007/02/28 11:52:06  csanchez
64
 * Nueva libreria para el motor de persistencia GML
65
 *
66
 *
67
 */
68
/**
69
 * @author Carlos S?nchez Peri??n (sanchez_carper@gva.es)
70
 */
71
public interface IGPEContentHandler {
72
        
73
        public Object startLayer(Object parent, Object bBox, String id, String name, String description, String srs);
74

    
75
        public void endLayer(Object layer);
76
        
77
        public void addNameToLayer(Object layer,String name);
78
        
79
        public void addDescriptionToLayer(Object layer,String description);
80
        
81
        public Object startFeature(String name, String id);
82
        
83
        public void endFeature(Object feature);
84
        
85
        public void addNameToFeature(Object feature, String name);
86
        
87
        public Object startElement(Object parent, String name, Object value, Object type);
88
                
89
        public void endElement(Object element);
90
        
91
        public Object startBbox(double[] x, double[] y, double[] z, String id, String srs);
92
        
93
        public void endBbox(Object bbox);
94
        
95
        public Object startPoint(double x, double y, double z, String id, String srs);
96
        
97
        public void endPoint(Object point);
98
        
99
        public Object startLineString(double[] x, double[] y, double[] z, String id, String srs);
100
        
101
        public void endLineString(Object line);
102
        
103
        public Object startLinearRing(double[] x, double[] y, double[] z, String id, String srs);
104
        
105
        public void endLinearRing(Object linearRing);
106
        
107
        public Object startPolygon(double[] x, double[] y, double[] z, String id, String srs);
108
        
109
        public void endPolygon(Object polygon);
110
        
111
        public void addInnerBoundary(Object polygon,Object linearRing);
112
        
113
        public void addOuterBoundary(Object polygon,Object linearRing);
114
        
115
        public void addFeature(Object layer,Object feature);
116
        
117
        public void addBbox(Object item,Object bbox);
118
        
119
        public void addElement(Object feature,Object element);
120
        
121
        public void addGeometry(Object feature, Object geometry);
122
        
123
        public boolean isViewInBox(Object bbox, Object view);
124
        
125
        public boolean isGeometryInBox(Object bbox, Object geometry);
126

    
127
}