root / trunk / libraries / libGPE-GML / src / org / gvsig / gpe / gml / writer / v2 / geometries / MultiGeometryWriter.java @ 19366
History | View | Annotate | Download (2.76 KB)
1 |
package org.gvsig.gpe.gml.writer.v2.geometries; |
---|---|
2 |
|
3 |
import org.gvsig.gpe.gml.utils.GMLTags; |
4 |
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
6 |
*
|
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
8 |
*
|
9 |
* This program is free software; you can redistribute it and/or
|
10 |
* modify it under the terms of the GNU General Public License
|
11 |
* as published by the Free Software Foundation; either version 2
|
12 |
* of the License, or (at your option) any later version.
|
13 |
*
|
14 |
* This program is distributed in the hope that it will be useful,
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
* GNU General Public License for more details.
|
18 |
*
|
19 |
* You should have received a copy of the GNU General Public License
|
20 |
* along with this program; if not, write to the Free Software
|
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
22 |
*
|
23 |
* For more information, contact:
|
24 |
*
|
25 |
* Generalitat Valenciana
|
26 |
* Conselleria d'Infraestructures i Transport
|
27 |
* Av. Blasco Ib??ez, 50
|
28 |
* 46010 VALENCIA
|
29 |
* SPAIN
|
30 |
*
|
31 |
* +34 963862235
|
32 |
* gvsig@gva.es
|
33 |
* www.gvsig.gva.es
|
34 |
*
|
35 |
* or
|
36 |
*
|
37 |
* IVER T.I. S.A
|
38 |
* Salamanca 50
|
39 |
* 46005 Valencia
|
40 |
* Spain
|
41 |
*
|
42 |
* +34 963163400
|
43 |
* dac@iver.es
|
44 |
*/
|
45 |
/* CVS MESSAGES:
|
46 |
*
|
47 |
* $Id: MultiGeometryWriter.java 352 2008-01-09 13:51:51Z jpiera $
|
48 |
* $Log$
|
49 |
* Revision 1.1 2007/05/15 11:55:11 jorpiell
|
50 |
* MultiGeometry is now supported
|
51 |
*
|
52 |
*
|
53 |
*/
|
54 |
/**
|
55 |
* It writes a gml:MultiGeometry object. Example:
|
56 |
* <p>
|
57 |
* <pre>
|
58 |
* <code>
|
59 |
* <MultiGeometry gid="c731" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
60 |
* <geometryMember>
|
61 |
* <Point gid="P6776">
|
62 |
* <coord><X>50.0</X><Y>50.0</Y></coord>
|
63 |
* </Point>
|
64 |
* </geometryMember>
|
65 |
* <geometryMember>
|
66 |
* <LineString gid="L21216">
|
67 |
* <coord><X>0.0</X><Y>0.0</Y></coord>
|
68 |
* <coord><X>0.0</X><Y>50.0</Y></coord>
|
69 |
* <coord><X>100.0</X><Y>50.0</Y></coord>
|
70 |
* </LineString>
|
71 |
* </geometryMember>
|
72 |
* <geometryMember>
|
73 |
* <Polygon gid="_877789">
|
74 |
* <outerBoundaryIs>
|
75 |
* <LinearRing>
|
76 |
* <coordinates>0.0,0.0 100.0,0.0 50.0,100.0 0.0,0.0</coordinates>
|
77 |
* </LinearRing>
|
78 |
* </outerBoundaryIs>
|
79 |
* </Polygon>
|
80 |
* </geometryMember>
|
81 |
* </MultiGeometry>
|
82 |
* </code>
|
83 |
* </pre>
|
84 |
* </p>
|
85 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
86 |
*/
|
87 |
public class MultiGeometryWriter extends GeometryWriter{ |
88 |
|
89 |
/*
|
90 |
* (non-Javadoc)
|
91 |
* @see org.gvsig.gpe.gml.writer.v2.geometries.GeometriesWriter#getGeometryName()
|
92 |
*/
|
93 |
public String getGeometryName() { |
94 |
return GMLTags.GML_MULTIGEOMETRY;
|
95 |
} |
96 |
} |