Revision 18284
branches/v10/libraries/libGPE-KML/build.xml | ||
---|---|---|
1 |
<project name="libGPE" default="create-jar" basedir="."> |
|
2 |
<!-- set global properties for this build --> |
|
3 |
<property name="src" location="src"/> |
|
4 |
<property name="build" location="bin"/> |
|
5 |
<property name="targetDir" location="dist"/> |
|
6 |
<property name="lib" location="lib" /> |
|
7 |
<property name="kmlJarName" value="org.gvsig.gpe.kml"/> |
|
8 |
<property name="compile-classpath" value="" /> |
|
9 |
|
|
10 |
<target name="init"> |
|
11 |
<!-- Create the time stamp --> |
|
12 |
<tstamp/> |
|
13 |
<echo> |
|
14 |
Compiling ${ant.project.name}...</echo> |
|
15 |
</target> |
|
16 |
|
|
17 |
<target name="batch-build" |
|
18 |
description="compile the sources, create the jar file" |
|
19 |
depends="init,compile,create-jar"> |
|
20 |
</target> |
|
21 |
|
|
22 |
<target name="compile" description="compile the source"> |
|
23 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
24 |
<mkdir dir="${build}" /> |
|
25 |
<javac srcdir="${src}" |
|
26 |
destdir="${build}" |
|
27 |
source="1.4" |
|
28 |
target="1.4" |
|
29 |
debug="${debug}" |
|
30 |
debuglevel="${debuglevel}" |
|
31 |
classpath="${compile-classpath}"/> |
|
32 |
<!-- copy any images or resources present in the src dir --> |
|
33 |
<copy todir="${build}"> |
|
34 |
<fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
|
35 |
</copy> |
|
36 |
</target> |
|
37 |
|
|
38 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
|
39 |
<mkdir dir="${targetDir}" /> |
|
40 |
<jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="${build}" includes="org/gvsig/gpe/kml/**"/> |
|
41 |
<jar jarfile="${targetDir}/${kmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
|
42 |
<move todir="${lib}"> |
|
43 |
<fileset dir="${targetDir}" includes="*.jar" /> |
|
44 |
</move> |
|
45 |
<delete dir="${targetDir}"/> |
|
46 |
</target> |
|
47 |
|
|
48 |
<target name="clean" description="clean up"> |
|
49 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
50 |
<delete dir="${build}" /> |
|
51 |
<delete dir="${targetDir}" /> |
|
52 |
</target> |
|
53 |
|
|
54 |
</project> |
|
0 | 55 |
branches/v10/libraries/libGPE-KML/.classpath | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<classpath> |
|
3 |
<classpathentry kind="src" path="src"/> |
|
4 |
<classpathentry kind="src" path="src-test"/> |
|
5 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
6 |
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/> |
|
7 |
<classpathentry kind="lib" path="/libGPE/lib/gvsig-exceptions.jar"/> |
|
8 |
<classpathentry combineaccessrules="false" kind="src" path="/libGPE"/> |
|
9 |
<classpathentry combineaccessrules="false" kind="src" path="/libGPE-GML"/> |
|
10 |
<classpathentry kind="lib" path="/libGPE-GML/lib/kxml2.jar"/> |
|
11 |
<classpathentry kind="output" path="bin"/> |
|
12 |
</classpath> |
|
0 | 13 |
branches/v10/libraries/libGPE-KML/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>libGPE-KML</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>de.loskutov.FileSync.FSBuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 |
</buildSpec> |
|
19 |
<natures> |
|
20 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
21 |
</natures> |
|
22 |
</projectDescription> |
|
0 | 23 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/AllKMLTests.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml; |
|
2 |
|
|
3 |
import junit.framework.Test; |
|
4 |
import junit.framework.TestSuite; |
|
5 |
|
|
6 |
import org.gvsig.gpe.kml.readers.v21.kml.KMLReaderTestSuite; |
|
7 |
import org.gvsig.gpe.kml.readers.v21.kmz.KMZReaderTestSuite; |
|
8 |
import org.gvsig.gpe.kml.writers.v21.kml.KMLWriterTestSuite; |
|
9 |
import org.gvsig.gpe.kml.writers.v21.kmz.KMZWriterTestSuite; |
|
10 |
|
|
11 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
12 |
* |
|
13 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
14 |
* |
|
15 |
* This program is free software; you can redistribute it and/or |
|
16 |
* modify it under the terms of the GNU General Public License |
|
17 |
* as published by the Free Software Foundation; either version 2 |
|
18 |
* of the License, or (at your option) any later version. |
|
19 |
* |
|
20 |
* This program is distributed in the hope that it will be useful, |
|
21 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
22 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
23 |
* GNU General Public License for more details. |
|
24 |
* |
|
25 |
* You should have received a copy of the GNU General Public License |
|
26 |
* along with this program; if not, write to the Free Software |
|
27 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
28 |
* |
|
29 |
* For more information, contact: |
|
30 |
* |
|
31 |
* Generalitat Valenciana |
|
32 |
* Conselleria d'Infraestructures i Transport |
|
33 |
* Av. Blasco Ib??ez, 50 |
|
34 |
* 46010 VALENCIA |
|
35 |
* SPAIN |
|
36 |
* |
|
37 |
* +34 963862235 |
|
38 |
* gvsig@gva.es |
|
39 |
* www.gvsig.gva.es |
|
40 |
* |
|
41 |
* or |
|
42 |
* |
|
43 |
* IVER T.I. S.A |
|
44 |
* Salamanca 50 |
|
45 |
* 46005 Valencia |
|
46 |
* Spain |
|
47 |
* |
|
48 |
* +34 963163400 |
|
49 |
* dac@iver.es |
|
50 |
*/ |
|
51 |
/* CVS MESSAGES: |
|
52 |
* |
|
53 |
* $Id: AllKMLTests.java 359 2008-01-09 17:51:16Z jpiera $ |
|
54 |
* $Log$ |
|
55 |
* Revision 1.1 2007/05/16 09:57:10 jorpiell |
|
56 |
* Tests refactoring |
|
57 |
* |
|
58 |
* |
|
59 |
*/ |
|
60 |
/** |
|
61 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
62 |
*/ |
|
63 |
public class AllKMLTests { |
|
64 |
|
|
65 |
public static Test suite() { |
|
66 |
TestSuite suite = new TestSuite("Test for org.gvsig.gpe.kml"); |
|
67 |
//$JUnit-BEGIN$ |
|
68 |
suite.addTest(KMLReaderTestSuite.suite()); |
|
69 |
suite.addTest(KMLWriterTestSuite.suite()); |
|
70 |
suite.addTest(KMZReaderTestSuite.suite()); |
|
71 |
suite.addTest(KMZWriterTestSuite.suite()); |
|
72 |
//$JUnit-END$ |
|
73 |
return suite; |
|
74 |
} |
|
75 |
|
|
76 |
} |
|
0 | 77 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithNameTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPELayerWithNameTest; |
|
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: KMLLayerWithNameTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.3 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.2 2007/06/07 14:53:59 jorpiell |
|
53 |
* Add the schema support |
|
54 |
* |
|
55 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
56 |
* Writing tests updated |
|
57 |
* |
|
58 |
* |
|
59 |
*/ |
|
60 |
/** |
|
61 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
62 |
*/ |
|
63 |
public class KMLLayerWithNameTest extends GPELayerWithNameTest { |
|
64 |
|
|
65 |
/* |
|
66 |
* (non-Javadoc) |
|
67 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
68 |
*/ |
|
69 |
public Class getGPEParserClass() { |
|
70 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
71 |
} |
|
72 |
|
|
73 |
/* |
|
74 |
* (non-Javadoc) |
|
75 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
76 |
*/ |
|
77 |
public Class getGPEWriterHandlerClass() { |
|
78 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
79 |
} |
|
80 |
|
|
81 |
|
|
82 |
} |
|
0 | 83 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLPointsLayerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEPointsLayerTest; |
|
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: KMLPointsLayerTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.3 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.2 2007/06/07 14:53:59 jorpiell |
|
53 |
* Add the schema support |
|
54 |
* |
|
55 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
56 |
* Writing tests updated |
|
57 |
* |
|
58 |
* Revision 1.2 2007/04/20 08:38:59 jorpiell |
|
59 |
* Tests updating |
|
60 |
* |
|
61 |
* Revision 1.1 2007/04/14 16:08:07 jorpiell |
|
62 |
* Kml writing support added |
|
63 |
* |
|
64 |
* Revision 1.1 2007/04/13 07:17:57 jorpiell |
|
65 |
* Add the writting tests for the simple geometries |
|
66 |
* |
|
67 |
* Revision 1.1 2007/04/12 17:06:44 jorpiell |
|
68 |
* First GML writing tests |
|
69 |
* |
|
70 |
* |
|
71 |
*/ |
|
72 |
/** |
|
73 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
74 |
*/ |
|
75 |
public class KMLPointsLayerTest extends GPEPointsLayerTest{ |
|
76 |
|
|
77 |
/* |
|
78 |
* (non-Javadoc) |
|
79 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
80 |
*/ |
|
81 |
public Class getGPEParserClass() { |
|
82 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
83 |
} |
|
84 |
|
|
85 |
/* |
|
86 |
* (non-Javadoc) |
|
87 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
88 |
*/ |
|
89 |
public Class getGPEWriterHandlerClass() { |
|
90 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
91 |
} |
|
92 |
|
|
93 |
} |
|
0 | 94 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLineStringLayerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPELineStringLayerTest; |
|
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: KMLLineStringLayerTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.3 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.2 2007/06/07 14:53:59 jorpiell |
|
53 |
* Add the schema support |
|
54 |
* |
|
55 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
56 |
* Writing tests updated |
|
57 |
* |
|
58 |
* Revision 1.2 2007/04/20 08:38:59 jorpiell |
|
59 |
* Tests updating |
|
60 |
* |
|
61 |
* Revision 1.1 2007/04/14 16:08:07 jorpiell |
|
62 |
* Kml writing support added |
|
63 |
* |
|
64 |
* Revision 1.1 2007/04/13 07:17:57 jorpiell |
|
65 |
* Add the writting tests for the simple geometries |
|
66 |
* |
|
67 |
* Revision 1.1 2007/04/12 17:06:44 jorpiell |
|
68 |
* First GML writing tests |
|
69 |
* |
|
70 |
* |
|
71 |
*/ |
|
72 |
/** |
|
73 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
74 |
*/ |
|
75 |
public class KMLLineStringLayerTest extends GPELineStringLayerTest { |
|
76 |
|
|
77 |
/* |
|
78 |
* (non-Javadoc) |
|
79 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
80 |
*/ |
|
81 |
public Class getGPEParserClass() { |
|
82 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
83 |
} |
|
84 |
|
|
85 |
/* |
|
86 |
* (non-Javadoc) |
|
87 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
88 |
*/ |
|
89 |
public Class getGPEWriterHandlerClass() { |
|
90 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
91 |
} |
|
92 |
|
|
93 |
} |
|
0 | 94 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithDescriptionTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPELayerWithDescriptionTest; |
|
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: KMLLayerWithDescriptionTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
53 |
* Writing tests updated |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLLayerWithDescriptionTest extends GPELayerWithDescriptionTest { |
|
61 |
|
|
62 |
/* |
|
63 |
* (non-Javadoc) |
|
64 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
65 |
*/ |
|
66 |
public Class getGPEParserClass() { |
|
67 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
68 |
} |
|
69 |
|
|
70 |
/* |
|
71 |
* (non-Javadoc) |
|
72 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
73 |
*/ |
|
74 |
public Class getGPEWriterHandlerClass() { |
|
75 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
76 |
} |
|
77 |
|
|
78 |
|
|
79 |
} |
|
0 | 80 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLPolygonWithInnerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEPolygonWithInnerTest; |
|
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: KMLPolygonWithInnerTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
53 |
* Writing tests updated |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLPolygonWithInnerTest extends GPEPolygonWithInnerTest { |
|
61 |
|
|
62 |
/* |
|
63 |
* (non-Javadoc) |
|
64 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
65 |
*/ |
|
66 |
public Class getGPEParserClass() { |
|
67 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
68 |
} |
|
69 |
|
|
70 |
/* |
|
71 |
* (non-Javadoc) |
|
72 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
73 |
*/ |
|
74 |
public Class getGPEWriterHandlerClass() { |
|
75 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
76 |
} |
|
77 |
|
|
78 |
} |
|
0 | 79 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithChildrenTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPELayerWithChildrenTest; |
|
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: KMLLayerWithChildrenTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
53 |
* Writing tests updated |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLLayerWithChildrenTest extends GPELayerWithChildrenTest { |
|
61 |
/* |
|
62 |
* (non-Javadoc) |
|
63 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
64 |
*/ |
|
65 |
public Class getGPEParserClass() { |
|
66 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
67 |
} |
|
68 |
|
|
69 |
/* |
|
70 |
* (non-Javadoc) |
|
71 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
72 |
*/ |
|
73 |
public Class getGPEWriterHandlerClass() { |
|
74 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
75 |
} |
|
76 |
|
|
77 |
} |
|
0 | 78 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithBboxTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPELayerWithBboxTest; |
|
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: KMLLayerWithBboxTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.3 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.2 2007/06/07 14:53:59 jorpiell |
|
53 |
* Add the schema support |
|
54 |
* |
|
55 |
* Revision 1.1 2007/05/09 08:36:24 jorpiell |
|
56 |
* Add the bbox to the layer |
|
57 |
* |
|
58 |
* |
|
59 |
*/ |
|
60 |
/** |
|
61 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
62 |
*/ |
|
63 |
public class KMLLayerWithBboxTest extends GPELayerWithBboxTest { |
|
64 |
|
|
65 |
/* |
|
66 |
* (non-Javadoc) |
|
67 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
68 |
*/ |
|
69 |
public Class getGPEParserClass() { |
|
70 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
71 |
} |
|
72 |
|
|
73 |
/* |
|
74 |
* (non-Javadoc) |
|
75 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
76 |
*/ |
|
77 |
public Class getGPEWriterHandlerClass() { |
|
78 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
79 |
} |
|
80 |
} |
|
0 | 81 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithElementsTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEFeatureWithElementsTest; |
|
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: KMLFeatureWithElementsTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/16 15:54:36 jorpiell |
|
53 |
* Add elements support |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLFeatureWithElementsTest extends GPEFeatureWithElementsTest { |
|
61 |
/* |
|
62 |
* (non-Javadoc) |
|
63 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
64 |
*/ |
|
65 |
public Class getGPEParserClass() { |
|
66 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
67 |
} |
|
68 |
|
|
69 |
/* |
|
70 |
* (non-Javadoc) |
|
71 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
72 |
*/ |
|
73 |
public Class getGPEWriterHandlerClass() { |
|
74 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
75 |
} |
|
76 |
|
|
77 |
} |
|
0 | 78 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLPolygonLayerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEPolygonsLayerTest; |
|
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: KMLPolygonLayerTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.3 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.2 2007/06/07 14:53:59 jorpiell |
|
53 |
* Add the schema support |
|
54 |
* |
|
55 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
56 |
* Writing tests updated |
|
57 |
* |
|
58 |
* Revision 1.2 2007/04/20 08:38:59 jorpiell |
|
59 |
* Tests updating |
|
60 |
* |
|
61 |
* Revision 1.1 2007/04/14 16:08:07 jorpiell |
|
62 |
* Kml writing support added |
|
63 |
* |
|
64 |
* Revision 1.1 2007/04/13 07:17:57 jorpiell |
|
65 |
* Add the writting tests for the simple geometries |
|
66 |
* |
|
67 |
* |
|
68 |
*/ |
|
69 |
/** |
|
70 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
71 |
*/ |
|
72 |
public class KMLPolygonLayerTest extends GPEPolygonsLayerTest{ |
|
73 |
/* |
|
74 |
* (non-Javadoc) |
|
75 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
76 |
*/ |
|
77 |
public Class getGPEParserClass() { |
|
78 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
79 |
} |
|
80 |
|
|
81 |
/* |
|
82 |
* (non-Javadoc) |
|
83 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
84 |
*/ |
|
85 |
public Class getGPEWriterHandlerClass() { |
|
86 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
87 |
} |
|
88 |
|
|
89 |
} |
|
0 | 90 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLLayerWithIdTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEFeatureWithIdTest; |
|
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: KMLLayerWithIdTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
53 |
* Writing tests updated |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLLayerWithIdTest extends GPEFeatureWithIdTest { |
|
61 |
|
|
62 |
/* |
|
63 |
* (non-Javadoc) |
|
64 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
65 |
*/ |
|
66 |
public Class getGPEParserClass() { |
|
67 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
68 |
} |
|
69 |
|
|
70 |
/* |
|
71 |
* (non-Javadoc) |
|
72 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
73 |
*/ |
|
74 |
public Class getGPEWriterHandlerClass() { |
|
75 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
76 |
} |
|
77 |
|
|
78 |
} |
|
0 | 79 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLWriterTestSuite.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import junit.framework.Test; |
|
4 |
import junit.framework.TestSuite; |
|
5 |
|
|
6 |
import org.gvsig.gpe.kml.writers.v21.kml.warnings.KMLNotMultiPointSupported; |
|
7 |
import org.gvsig.gpe.kml.writers.v21.kml.warnings.KMLPolygonAutomaticallyClosedTest; |
|
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: KMLWriterTestSuite.java 358 2008-01-09 17:50:58Z jpiera $ |
|
52 |
* $Log$ |
|
53 |
* Revision 1.5 2007/05/16 15:54:36 jorpiell |
|
54 |
* Add elements support |
|
55 |
* |
|
56 |
* Revision 1.4 2007/05/16 12:08:14 jorpiell |
|
57 |
* A multipoint layer is not supported |
|
58 |
* |
|
59 |
* Revision 1.3 2007/05/16 09:30:09 jorpiell |
|
60 |
* the writting methods has to have the errorHandler argument |
|
61 |
* |
|
62 |
* Revision 1.2 2007/05/09 08:36:24 jorpiell |
|
63 |
* Add the bbox to the layer |
|
64 |
* |
|
65 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
66 |
* Writing tests updated |
|
67 |
* |
|
68 |
* |
|
69 |
*/ |
|
70 |
/** |
|
71 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
72 |
*/ |
|
73 |
public class KMLWriterTestSuite { |
|
74 |
|
|
75 |
public static Test suite() { |
|
76 |
TestSuite suite = new TestSuite( |
|
77 |
"Test for org.gvsig.gpe.kml.writers.kml"); |
|
78 |
//$JUnit-BEGIN$ |
|
79 |
suite.addTestSuite(KMLPolygonWithInnerTest.class); |
|
80 |
suite.addTestSuite(KMLLayerWithChildrenTest.class); |
|
81 |
suite.addTestSuite(KMLFeatureWithNameTest.class); |
|
82 |
suite.addTestSuite(KMLGeometryWithIdTest.class); |
|
83 |
suite.addTestSuite(KMLEmptyLayerTest.class); |
|
84 |
suite.addTestSuite(KMLLayerWithIdTest.class); |
|
85 |
suite.addTestSuite(KMLPointsLayerTest.class); |
|
86 |
suite.addTestSuite(KMLFeatureWithIdTest.class); |
|
87 |
suite.addTestSuite(KMLLayerWithDescriptionTest.class); |
|
88 |
suite.addTestSuite(KMLMultiGeometryLayerTest.class); |
|
89 |
suite.addTestSuite(KMLLayerWithNameTest.class); |
|
90 |
suite.addTestSuite(KMLLineStringLayerTest.class); |
|
91 |
suite.addTestSuite(KMLPolygonLayerTest.class); |
|
92 |
suite.addTestSuite(KMLLayerWithBboxTest.class); |
|
93 |
suite.addTestSuite(KMLPolygonAutomaticallyClosedTest.class); |
|
94 |
suite.addTestSuite(KMLNotMultiPointSupported.class); |
|
95 |
suite.addTestSuite(KMLFeatureWithElementsTest.class); |
|
96 |
suite.addTestSuite(KMLFeatureWithComplexElementTest.class); |
|
97 |
//$JUnit-END$ |
|
98 |
return suite; |
|
99 |
} |
|
100 |
|
|
101 |
} |
|
0 | 102 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithNameTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEFeatureWithNameTest; |
|
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: KMLFeatureWithNameTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
53 |
* Writing tests updated |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLFeatureWithNameTest extends GPEFeatureWithNameTest { |
|
61 |
|
|
62 |
/* |
|
63 |
* (non-Javadoc) |
|
64 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
65 |
*/ |
|
66 |
public Class getGPEParserClass() { |
|
67 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
68 |
} |
|
69 |
|
|
70 |
/* |
|
71 |
* (non-Javadoc) |
|
72 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
73 |
*/ |
|
74 |
public Class getGPEWriterHandlerClass() { |
|
75 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
76 |
} |
|
77 |
|
|
78 |
} |
|
0 | 79 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLFeatureWithComplexElementTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEFeatureWithComplexElementTest; |
|
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: KMLFeatureWithComplexElementTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.2 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.1 2007/05/16 15:54:36 jorpiell |
|
53 |
* Add elements support |
|
54 |
* |
|
55 |
* |
|
56 |
*/ |
|
57 |
/** |
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
59 |
*/ |
|
60 |
public class KMLFeatureWithComplexElementTest extends |
|
61 |
GPEFeatureWithComplexElementTest { |
|
62 |
/* |
|
63 |
* (non-Javadoc) |
|
64 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEParserClass() |
|
65 |
*/ |
|
66 |
public Class getGPEParserClass() { |
|
67 |
return org.gvsig.gpe.kml.GPEKmlv21Parser.class; |
|
68 |
} |
|
69 |
|
|
70 |
/* |
|
71 |
* (non-Javadoc) |
|
72 |
* @see org.gvsig.gpe.writers.GPEWriterBaseTest#getGPEWriterHandlerClass() |
|
73 |
*/ |
|
74 |
public Class getGPEWriterHandlerClass() { |
|
75 |
return org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor.class; |
|
76 |
} |
|
77 |
} |
|
0 | 78 |
branches/v10/libraries/libGPE-KML/src-test/org/gvsig/gpe/kml/writers/v21/kml/KMLEmptyLayerTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.kml.writers.v21.kml; |
|
2 |
|
|
3 |
import org.gvsig.gpe.writers.GPEEmptyLayerTest; |
|
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: KMLEmptyLayerTest.java 361 2008-01-10 08:41:21Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.3 2007/06/29 12:19:48 jorpiell |
|
50 |
* The schema validation is made independently of the concrete writer |
|
51 |
* |
|
52 |
* Revision 1.2 2007/06/07 14:53:59 jorpiell |
|
53 |
* Add the schema support |
|
54 |
* |
|
55 |
* Revision 1.1 2007/05/02 11:46:50 jorpiell |
|
56 |
* Writing tests updated |
|
57 |
* |
|
58 |
* Revision 1.2 2007/04/20 08:38:59 jorpiell |
|
59 |
* Tests updating |
|
60 |
* |
|
61 |
* Revision 1.1 2007/04/14 16:08:07 jorpiell |
|
62 |
* Kml writing support added |
|
63 |
* |
Also available in: Unified diff