Statistics
| Revision:

root / branches / Mobile1.0 / org.gvsig.gpe.gml / src / org / gvsig / gpe / gml / writer / v2 / geometries / GeometryMemberWriter.java @ 79

History | View | Annotate | Download (2.74 KB)

1
package org.gvsig.gpe.gml.writer.v2.geometries;
2

    
3
import java.io.IOException;
4

    
5
import org.gvsig.gpe.gml.utils.GMLTags;
6
import org.gvsig.gpe.gml.writer.GPEGmlWriterHandlerImplementor;
7
import org.gvsig.gpe.xml.stream.IXmlStreamWriter;
8

    
9
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
10
 *
11
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
12
 *
13
 * This program is free software; you can redistribute it and/or
14
 * modify it under the terms of the GNU General Public License
15
 * as published by the Free Software Foundation; either version 2
16
 * of the License, or (at your option) any later version.
17
 *
18
 * This program is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with this program; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
26
 *
27
 * For more information, contact:
28
 *
29
 *  Generalitat Valenciana
30
 *   Conselleria d'Infraestructures i Transport
31
 *   Av. Blasco Ib??ez, 50
32
 *   46010 VALENCIA
33
 *   SPAIN
34
 *
35
 *      +34 963862235
36
 *   gvsig@gva.es
37
 *      www.gvsig.gva.es
38
 *
39
 *    or
40
 *
41
 *   IVER T.I. S.A
42
 *   Salamanca 50
43
 *   46005 Valencia
44
 *   Spain
45
 *
46
 *   +34 963163400
47
 *   dac@iver.es
48
 */
49
/* CVS MESSAGES:
50
 *
51
 * $Id: GeometryMemberWriter.java 350 2008-01-09 12:53:07Z jpiera $
52
 * $Log$
53
 * Revision 1.1  2007/05/15 11:55:11  jorpiell
54
 * MultiGeometry is now supported
55
 *
56
 *
57
 */
58
/**
59
 * It writes a gml:geometryMember object. Example:
60
 * <p>
61
 * <pre>
62
 * <code>
63
 * &lt;geometryMember&gt;
64
 * &lt;Point gid="P6776"&gt;
65
 * &lt;coord&gt;&lt;X&gt;50.0&lt;/X&gt;&lt;Y&gt;50.0&lt;/Y&gt;&lt;/coord&gt;
66
 * &lt;/Point&gt;
67
 * &lt;/geometryMember&gt;
68
 * </code>
69
 * </pre>
70
 * </p> 
71
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
72
 */
73
public class GeometryMemberWriter {
74
        /**
75
         * It writes a gml:geometryMember init tag t
76
         * @param writer
77
         * Writer to write the labels
78
         * @param handler
79
         * The writer handler implementor
80
         * @param id
81
         * Geometry ID
82
         * @param srs
83
         * Spatial reference system
84
         * @throws IOException
85
         */
86
        public void startPoint(IXmlStreamWriter writer, GPEGmlWriterHandlerImplementor handler, String id,
87
                        String srs) throws IOException{
88
                writer.writeStartElement(GMLTags.GML_GEOMETRYMEMBER);        
89
        }
90
        
91
        /**
92
         * It writes a gml:geometryMember end tag that contains
93
         * a pointMember
94
         * @param writer
95
         * Writer to write the labels
96
         * @param handler
97
         * The writer handler implementor
98
         */
99
        public void end(IXmlStreamWriter writer, GPEGmlWriterHandlerImplementor handler) throws IOException{
100
                writer.writeEndElement();                                
101
        }
102
        
103
        
104
}