Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libGPE / src-test / org / gvsig / gpe / writers / GPELineStringLayerTest.java @ 11178

History | View | Annotate | Download (2.83 KB)

1
package org.gvsig.gpe.writers;
2

    
3
import java.io.File;
4

    
5
import org.gvsig.gpe.GPEErrorHandler;
6

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

    
61
        /*
62
         * (non-Javadoc)
63
         * @see org.gvsig.gpe.writers.GPEWriterBaseTest#readObjects()
64
         */
65
        public void readObjects() {
66
                // TODO Auto-generated method stub
67
                
68
        }
69

    
70
        /*
71
         * (non-Javadoc)
72
         * @see org.gvsig.gpe.writers.GPEWriterBaseTest#writeObjects()
73
         */
74
        public void writeObjects() {
75
                getHandler().initialize();
76
                getHandler().startLayer("1", "Rivers", "Line string layer test", "23030");
77
                getHandler().startBbox("bbox", generateRandomBBox(),
78
                                generateRandomBBox(),
79
                                generateRandomBBox(),
80
                                "23030");
81
                getHandler().endBbox();
82
                getHandler().startFeature("Turia","1");
83
                getHandler().startElement("LENGHT", new Integer("150"), Integer.class);
84
                getHandler().endElement();
85
                getHandler().startLineString("p1", generateRandomCoordinates(),
86
                                generateRandomCoordinates(),
87
                                generateRandomCoordinates(), "EPSG:23030");
88
                getHandler().endLineString();                
89
                getHandler().endFeature();
90
                getHandler().startFeature("Ebro","2");
91
                getHandler().startElement("LENGHT", new Integer("300"), Integer.class);
92
                getHandler().endElement();
93
                getHandler().startLineString("p1", generateRandomCoordinates(),
94
                                generateRandomCoordinates(),
95
                                generateRandomCoordinates(), "EPSG:23030");
96
                getHandler().endLineString();                
97
                getHandler().endFeature();
98
                getHandler().endLayer();
99
                getHandler().close();                
100
        }
101

    
102
}