Statistics
| Revision:

root / org.gvsig.gpe / library / trunk / org.gvsig.gpe / org.gvsig.gpe.lib / org.gvsig.gpe.lib.api / src / main / java / org / gvsig / gpe / lib / api / parser / IGPEContentHandlerSFP0.java @ 484

History | View | Annotate | Download (3.17 KB)

1
package org.gvsig.gpe.lib.api.parser;
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
/* CVS MESSAGES:
43
 *
44
 * $Id$
45
 * $Log$
46
 *
47
 */
48
/**
49
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
50
 */
51
public interface IGPEContentHandlerSFP0 {
52

    
53
        /**
54
         * This method indicates that the parser has found a curve.
55
         * @param id
56
         * curve identifier
57
         * @param coords
58
         * A coordinates iterator
59
         * @param srs
60
         * Spatial reference system
61
         * @return
62
         * Consumer application object that represents a lineString
63
         */
64
        public Object startCurve(String id, ICoordinateIterator coords, String srs);
65

    
66
        /**
67
         * This method indicates that the parser has found a curve.
68
         * @param id
69
         * curve identifier
70
         * @param srs
71
         * Spatial reference system
72
         * @return
73
         * Consumer application object that represents a lineString
74
         */
75
        public Object startCurve(String id, String srs);
76

    
77
        /**
78
     * It is thrown when the Curve has been completely parsed.
79
         * @param Curve
80
         * Consumer application object that represents a Curve
81
         */
82
        public void endCurve(Object Curve);
83

    
84
        /**
85
         * It adds a segment to a curve.
86
         * @param segment
87
         * The segment to add
88
         * @param curve
89
         * The curve
90
         */
91
        public void addSegmentToCurve(Object segment, Object curve);
92

    
93
        /**
94
         * This method indicates that the parser has found a multiCurve.
95
         * @param id
96
         * MultyCurve identifier
97
         * @param srs
98
         * Spatial reference system
99
         * @return
100
         * Consumer application object that represents a multiCurve
101
         */
102
        public Object startMultiCurve(String id, String srs);
103

    
104
        public Object startMultiCurve(String id, String srs, int dimension);
105

    
106
        /**
107
         * It is thrown when the multiCurve has been completely parsed
108
         * @param multiCurve
109
         * Consumer application object that represents a multiCurve
110
         */
111
        public void endMultiCurve(Object multiCurve);
112

    
113
        /**
114
         * It is thrown to add a curve to one multiCurve.
115
         * @param curve
116
     * Consumer application object that represents a curve
117
         * @param multiCurve
118
         * Consumer application object that represents a multiCurve
119
         */
120
        public void addCurveToMultiCurve(Object curve, Object multiCurve);
121

    
122

    
123
}