Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libGPE-KML / src-test / org / gvsig / gpe / kml / parser / v22 / kml / KMLPurpleLine2_2Test.java @ 37959

History | View | Annotate | Download (2.53 KB)

1
package org.gvsig.gpe.kml.parser.v22.kml;
2

    
3
import org.gvsig.gpe.containers.Feature;
4
import org.gvsig.gpe.containers.Layer;
5
import org.gvsig.gpe.containers.LineString;
6
import org.gvsig.gpe.kml.parser.v21.kml.KMLBaseTest;
7

    
8

    
9

    
10
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
11
 *
12
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
13
 *
14
 * This program is free software; you can redistribute it and/or
15
 * modify it under the terms of the GNU General Public License
16
 * as published by the Free Software Foundation; either version 2
17
 * of the License, or (at your option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful,
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 * GNU General Public License for more details.
23
 *
24
 * You should have received a copy of the GNU General Public License
25
 * along with this program; if not, write to the Free Software
26
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
27
 *
28
 * For more information, contact:
29
 *
30
 *  Generalitat Valenciana
31
 *   Conselleria d'Infraestructures i Transport
32
 *   Av. Blasco Ib??ez, 50
33
 *   46010 VALENCIA
34
 *   SPAIN
35
 *
36
 *      +34 963862235
37
 *   gvsig@gva.es
38
 *      www.gvsig.gva.es
39
 *
40
 *    or
41
 *
42
 *   IVER T.I. S.A
43
 *   Salamanca 50
44
 *   46005 Valencia
45
 *   Spain
46
 *
47
 *   +34 963163400
48
 *   dac@iver.es
49
 */
50
/* CVS MESSAGES:
51
 *
52
 * $Id:KMLSampleTest.java 359 2008-01-09 17:51:16Z jpiera $
53
 * $Log$
54
 * Revision 1.2  2007/05/17 06:56:54  jorpiell
55
 * Some asserts added
56
 *
57
 * Revision 1.1  2007/05/16 09:57:10  jorpiell
58
 * Tests refactoring
59
 *
60
 * Revision 1.3  2007/04/20 08:38:59  jorpiell
61
 * Tests updating
62
 *
63
 * Revision 1.2  2007/04/14 16:08:07  jorpiell
64
 * Kml writing support added
65
 *
66
 * Revision 1.1  2007/04/13 13:16:21  jorpiell
67
 * Add KML reading support
68
 *
69
 *
70
 */
71
/**
72
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
73
 */
74
public class KMLPurpleLine2_2Test extends KMLBaseTest{
75
        
76
        /*
77
         * (non-Javadoc)
78
         * @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile()
79
         */
80
        public String getFile() {
81
                return "testdata/purple_line.kml";
82
        }
83

    
84
        /*
85
         * (non-Javadoc)
86
         * @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts()
87
         */
88
        public void makeAsserts() {
89
                Layer[] layers = getLayers();
90
                assertEquals(layers.length, 1);
91
                Layer layer = layers[0];
92
                assertEquals(layer.getName(), "KmlFile");
93
                assertEquals(1,layer.getFeatures().size());
94
                Feature f = (Feature) layer.getFeatures().get(0);
95
                System.out.println(f.getGeometry().getDimension());
96
                
97
        }
98

    
99
}