Revision 34859
tags/tmp_build/libraries/libGPE-GML/.settings/org.eclipse.jdt.core.prefs | ||
---|---|---|
1 |
#Thu Mar 05 16:30:57 CET 2009 |
|
2 |
org.eclipse.jdt.core.compiler.debug.localVariable=generate |
|
3 |
org.eclipse.jdt.core.compiler.compliance=1.5 |
|
4 |
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
|
5 |
org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
|
6 |
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 |
|
7 |
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning |
|
8 |
org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
|
9 |
eclipse.preferences.version=1 |
|
10 |
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
|
11 |
org.eclipse.jdt.core.compiler.source=1.5 |
|
12 |
org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning |
|
0 | 13 |
tags/tmp_build/libraries/libGPE-GML/.settings/org.eclipse.jdt.ui.prefs | ||
---|---|---|
1 |
#Tue Feb 05 17:29:23 CET 2008 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true |
|
4 |
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?>\n<templates/> |
|
0 | 5 |
tags/tmp_build/libraries/libGPE-GML/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="resources" location="../resources/jars" /> |
|
8 |
<property name="gmlJarName" value="org.gvsig.gpe.gml"/> |
|
9 |
<import file="../binaries/ant/utilities.xml"/> |
|
10 |
|
|
11 |
<target name="init"> |
|
12 |
<!-- Create the time stamp --> |
|
13 |
<tstamp/> |
|
14 |
<echo> |
|
15 |
Compiling ${ant.project.name}...</echo> |
|
16 |
</target> |
|
17 |
|
|
18 |
<target name="batch-build" |
|
19 |
description="compile the sources, create the jar file" |
|
20 |
depends="init,compile,create-jar"> |
|
21 |
</target> |
|
22 |
|
|
23 |
<target name="compile" description="compile the source"> |
|
24 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
25 |
<mkdir dir="${build}" /> |
|
26 |
<loadEclipseClasspath project="${basedir}"/> |
|
27 |
<gvSIG-javac |
|
28 |
classpath="${eclipseClasspath}" |
|
29 |
/> |
|
30 |
</target> |
|
31 |
|
|
32 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
|
33 |
<mkdir dir="${targetDir}" /> |
|
34 |
<jar jarfile="${targetDir}/${gmlJarName}.jar" basedir="${build}" includes="**/**"/> |
|
35 |
<jar jarfile="${targetDir}/${gmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
|
36 |
<move todir="${lib}"> |
|
37 |
<fileset dir="${targetDir}" includes="*.jar" /> |
|
38 |
</move> |
|
39 |
<delete dir="${targetDir}"/> |
|
40 |
</target> |
|
41 |
|
|
42 |
<target name="create-mobile-jar" description="Crea el jar de la aplicacion"> |
|
43 |
<mkdir dir="${targetDir}" /> |
|
44 |
<jar jarfile="${targetDir}/${gmlJarName}.jar" basedir="${build}" includes="**/**"/> |
|
45 |
<jar jarfile="${targetDir}/${gmlJarName}.jar" basedir="." includes="build.number" update="true"/> |
|
46 |
<move todir="${lib}"> |
|
47 |
<fileset dir="${targetDir}" includes="*.jar" /> |
|
48 |
</move> |
|
49 |
<copy todir="${resources}/libGPE" file="${lib}/org.gvsig.gpe.gml.jar"/> |
|
50 |
<delete dir="${targetDir}"/> |
|
51 |
</target> |
|
52 |
|
|
53 |
<target name="clean" description="clean up"> |
|
54 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
55 |
<delete dir="${build}" /> |
|
56 |
<delete dir="${targetDir}" /> |
|
57 |
</target> |
|
58 |
|
|
59 |
<target name="run-tests" depends="batch-build,compile-tests"> |
|
60 |
<!-- <antcall target="generic-run-tests"> |
|
61 |
<param name="TestSuite.Name" value="com.iver.utiles.AllTests"/> |
|
62 |
</antcall> --> |
|
63 |
</target> |
|
64 |
</project> |
|
0 | 65 |
tags/tmp_build/libraries/libGPE-GML/.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="lib" path="/libGPE/lib/gvsig-exceptions.jar"/> |
|
7 |
<classpathentry kind="var" path="JUNIT_HOME/junit.jar"/> |
|
8 |
<classpathentry combineaccessrules="false" kind="src" path="/libGPE"/> |
|
9 |
<classpathentry combineaccessrules="false" kind="src" path="/libGPE-XML"/> |
|
10 |
<classpathentry kind="output" path="bin"/> |
|
11 |
</classpath> |
|
0 | 12 |
tags/tmp_build/libraries/libGPE-GML/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>libGPE-GML</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 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/GMLAllTests.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml; |
|
2 |
|
|
3 |
import junit.framework.Test; |
|
4 |
import junit.framework.TestSuite; |
|
5 |
|
|
6 |
import org.gvsig.gpe.gml.parser.GMLReadersTestSuite; |
|
7 |
import org.gvsig.gpe.gml.writer.GMLWritersTestSuite; |
|
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: GMLAllTests.java 193 2007-11-26 08:58:56Z jpiera $ |
|
52 |
* $Log$ |
|
53 |
* Revision 1.1 2007/05/16 16:25:26 jorpiell |
|
54 |
* Add a class to test all the GML test suites |
|
55 |
* |
|
56 |
* |
|
57 |
*/ |
|
58 |
/** |
|
59 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
60 |
*/ |
|
61 |
public class GMLAllTests { |
|
62 |
|
|
63 |
public static Test suite() { |
|
64 |
TestSuite suite = new TestSuite("Test for org.gvsig.gpe.gml"); |
|
65 |
//$JUnit-BEGIN$ |
|
66 |
suite.addTest(GMLReadersTestSuite.suite()); |
|
67 |
suite.addTest(GMLWritersTestSuite.suite()); |
|
68 |
//$JUnit-END$ |
|
69 |
return suite; |
|
70 |
} |
|
71 |
} |
|
0 | 72 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLMultiPolygonTest.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 Iver T.I. {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.gpe.gml.parser; |
|
29 |
|
|
30 |
import java.util.ArrayList; |
|
31 |
|
|
32 |
import org.gvsig.gpe.containers.Layer; |
|
33 |
|
|
34 |
public class GMLMultiPolygonTest extends GMLReaderBaseTest { |
|
35 |
|
|
36 |
/* |
|
37 |
* (non-Javadoc) |
|
38 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
39 |
*/ |
|
40 |
public String getFile() { |
|
41 |
return "testdata/GML-MultiPolygon.gml"; |
|
42 |
} |
|
43 |
|
|
44 |
/* |
|
45 |
* (non-Javadoc) |
|
46 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
47 |
*/ |
|
48 |
public boolean hasSchema() { |
|
49 |
// TODO Auto-generated method stub |
|
50 |
return false; |
|
51 |
} |
|
52 |
|
|
53 |
/* |
|
54 |
* (non-Javadoc) |
|
55 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
56 |
*/ |
|
57 |
public void makeAsserts() { |
|
58 |
assertEquals(1, getLayers().length); |
|
59 |
Layer layer = getLayers()[0]; |
|
60 |
ArrayList features = layer.getFeatures(); |
|
61 |
assertEquals(1, features.size()); |
|
62 |
} |
|
63 |
} |
|
64 |
|
|
0 | 65 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLCitiesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
|
|
5 |
import org.gvsig.gpe.containers.Layer; |
|
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$ |
|
50 |
* $Log$ |
|
51 |
* |
|
52 |
*/ |
|
53 |
/** |
|
54 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
55 |
*/ |
|
56 |
public class GMLCitiesReader extends GMLReaderBaseTest { |
|
57 |
|
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/cities.gml"; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
69 |
*/ |
|
70 |
public boolean hasSchema() { |
|
71 |
// TODO Auto-generated method stub |
|
72 |
return false; |
|
73 |
} |
|
74 |
|
|
75 |
/* |
|
76 |
* (non-Javadoc) |
|
77 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
78 |
*/ |
|
79 |
public void makeAsserts() { |
|
80 |
assertEquals(1, getLayers().length); |
|
81 |
Layer layer = getLayers()[0]; |
|
82 |
ArrayList features = layer.getFeatures(); |
|
83 |
assertEquals(85, features.size()); |
|
84 |
|
|
85 |
} |
|
86 |
} |
|
87 |
|
|
0 | 88 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLComunidadesIDEEReader.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 Iver T.I. {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.gpe.gml.parser; |
|
29 |
|
|
30 |
import org.gvsig.gpe.containers.Layer; |
|
31 |
|
|
32 |
public class GMLComunidadesIDEEReader extends GMLReaderBaseTest { |
|
33 |
/* |
|
34 |
* (non-Javadoc) |
|
35 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
36 |
*/ |
|
37 |
public String getFile() { |
|
38 |
return "testdata/ComunidadesIDEE.gml"; |
|
39 |
} |
|
40 |
|
|
41 |
/* |
|
42 |
* (non-Javadoc) |
|
43 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
44 |
*/ |
|
45 |
public boolean hasSchema() { |
|
46 |
return false; |
|
47 |
} |
|
48 |
|
|
49 |
/* |
|
50 |
* (non-Javadoc) |
|
51 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
52 |
*/ |
|
53 |
public void makeAsserts() { |
|
54 |
Layer[] layers = getLayers(); |
|
55 |
assertEquals(layers.length, 1); |
|
56 |
Layer layer = layers[0]; |
|
57 |
assertEquals(19, layer.getFeatures().size()); |
|
58 |
|
|
59 |
} |
|
60 |
|
|
61 |
} |
|
62 |
|
|
0 | 63 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLSChoolsTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
|
|
5 |
import org.gvsig.gpe.containers.Layer; |
|
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$ |
|
50 |
* $Log$ |
|
51 |
* |
|
52 |
*/ |
|
53 |
/** |
|
54 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
55 |
*/ |
|
56 |
public class GMLSChoolsTest extends GMLReaderBaseTest { |
|
57 |
|
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/schools.xml"; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
69 |
*/ |
|
70 |
public boolean hasSchema() { |
|
71 |
return true; |
|
72 |
} |
|
73 |
|
|
74 |
/* |
|
75 |
* (non-Javadoc) |
|
76 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
77 |
*/ |
|
78 |
public void makeAsserts() { |
|
79 |
assertEquals(1, getLayers().length); |
|
80 |
Layer layer = getLayers()[0]; |
|
81 |
ArrayList features = layer.getFeatures(); |
|
82 |
assertEquals(2, features.size()); |
|
83 |
} |
|
84 |
} |
|
85 |
|
|
0 | 86 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLIDEECosntruccionesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import org.gvsig.gpe.containers.Layer; |
|
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$ |
|
48 |
* $Log$ |
|
49 |
* |
|
50 |
*/ |
|
51 |
/** |
|
52 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
53 |
*/ |
|
54 |
public class GMLIDEECosntruccionesReader extends GMLReaderBaseTest { |
|
55 |
/* |
|
56 |
* (non-Javadoc) |
|
57 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
58 |
*/ |
|
59 |
public String getFile() { |
|
60 |
return "testdata/IDEEConstrucciones.gml"; |
|
61 |
} |
|
62 |
|
|
63 |
/* |
|
64 |
* (non-Javadoc) |
|
65 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
66 |
*/ |
|
67 |
public boolean hasSchema() { |
|
68 |
return false; |
|
69 |
} |
|
70 |
|
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
74 |
*/ |
|
75 |
public void makeAsserts() { |
|
76 |
Layer[] layers = getLayers(); |
|
77 |
assertEquals(layers.length, 1); |
|
78 |
Layer layer = layers[0]; |
|
79 |
assertEquals(layer.getFeatures().size(),1); |
|
80 |
} |
|
81 |
} |
|
0 | 82 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLAforosReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import org.gvsig.gpe.containers.Layer; |
|
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: GMLAforosReader.java 148 2007-06-11 06:17:36Z jorpiell $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.1 2007/06/11 06:17:36 jorpiell |
|
50 |
* Add a new GML test |
|
51 |
* |
|
52 |
* |
|
53 |
*/ |
|
54 |
/** |
|
55 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
56 |
*/ |
|
57 |
public class GMLAforosReader extends GMLReaderBaseTest { |
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/aforos.gml"; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
69 |
*/ |
|
70 |
public boolean hasSchema() { |
|
71 |
return false; |
|
72 |
} |
|
73 |
|
|
74 |
/* |
|
75 |
* (non-Javadoc) |
|
76 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
77 |
*/ |
|
78 |
public void makeAsserts() { |
|
79 |
Layer[] layers = getLayers(); |
|
80 |
assertEquals(layers.length, 1); |
|
81 |
Layer layer = layers[0]; |
|
82 |
assertEquals(layer.getFeatures().size(),85); |
|
83 |
|
|
84 |
} |
|
85 |
} |
|
0 | 86 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLEuroroadsReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import org.gvsig.gpe.containers.Layer; |
|
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: GMLEuroroadsReader.java 202 2007-11-27 12:00:11Z jpiera $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.1 2007/06/08 13:01:12 jorpiell |
|
50 |
* Add the targetNamespace to the file |
|
51 |
* |
|
52 |
* |
|
53 |
*/ |
|
54 |
/** |
|
55 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
56 |
*/ |
|
57 |
public class GMLEuroroadsReader extends GMLReaderBaseTest { |
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/euroroads.gml"; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
69 |
*/ |
|
70 |
public boolean hasSchema() { |
|
71 |
return false; |
|
72 |
} |
|
73 |
|
|
74 |
/* |
|
75 |
* (non-Javadoc) |
|
76 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
77 |
*/ |
|
78 |
public void makeAsserts() { |
|
79 |
Layer[] layers = getLayers(); |
|
80 |
assertEquals(1, layers.length); |
|
81 |
Layer layer = layers[0]; |
|
82 |
assertEquals(10, layer.getFeatures().size()); |
|
83 |
} |
|
84 |
} |
|
0 | 85 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLMultiSurfaceReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
|
|
5 |
import org.gvsig.gpe.containers.Layer; |
|
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$ |
|
50 |
* $Log$ |
|
51 |
* |
|
52 |
*/ |
|
53 |
/** |
|
54 |
* @author Jorge Piera Llodr? (jorge.piera@iver.es) |
|
55 |
*/ |
|
56 |
public class GMLMultiSurfaceReader extends GMLReaderBaseTest { |
|
57 |
|
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/MultiSurface.gml"; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
69 |
*/ |
|
70 |
public boolean hasSchema() { |
|
71 |
// TODO Auto-generated method stub |
|
72 |
return false; |
|
73 |
} |
|
74 |
|
|
75 |
/* |
|
76 |
* (non-Javadoc) |
|
77 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
78 |
*/ |
|
79 |
public void makeAsserts() { |
|
80 |
assertEquals(1, getLayers().length); |
|
81 |
Layer layer = getLayers()[0]; |
|
82 |
ArrayList features = layer.getFeatures(); |
|
83 |
assertEquals(1, features.size()); |
|
84 |
} |
|
85 |
} |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLProvinciasIDEEReader.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 Iver T.I. {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.gpe.gml.parser; |
|
29 |
|
|
30 |
import org.gvsig.gpe.containers.Layer; |
|
31 |
|
|
32 |
public class GMLProvinciasIDEEReader extends GMLReaderBaseTest { |
|
33 |
/* |
|
34 |
* (non-Javadoc) |
|
35 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
36 |
*/ |
|
37 |
public String getFile() { |
|
38 |
return "testdata/ProvinciasIDEE.gml"; |
|
39 |
} |
|
40 |
|
|
41 |
/* |
|
42 |
* (non-Javadoc) |
|
43 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
44 |
*/ |
|
45 |
public boolean hasSchema() { |
|
46 |
return false; |
|
47 |
} |
|
48 |
|
|
49 |
/* |
|
50 |
* (non-Javadoc) |
|
51 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
52 |
*/ |
|
53 |
public void makeAsserts() { |
|
54 |
Layer[] layers = getLayers(); |
|
55 |
assertEquals(layers.length, 1); |
|
56 |
Layer layer = layers[0]; |
|
57 |
assertEquals(52, layer.getFeatures().size()); |
|
58 |
|
|
59 |
} |
|
60 |
|
|
61 |
} |
|
62 |
|
|
0 | 63 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLMultiLineStringTest.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 Iver T.I. {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.gpe.gml.parser; |
|
29 |
|
|
30 |
import java.util.ArrayList; |
|
31 |
|
|
32 |
import org.gvsig.gpe.containers.Layer; |
|
33 |
|
|
34 |
public class GMLMultiLineStringTest extends GMLReaderBaseTest { |
|
35 |
|
|
36 |
/* |
|
37 |
* (non-Javadoc) |
|
38 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
39 |
*/ |
|
40 |
public String getFile() { |
|
41 |
return "testdata/MultiLineString.gml"; |
|
42 |
} |
|
43 |
|
|
44 |
/* |
|
45 |
* (non-Javadoc) |
|
46 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
47 |
*/ |
|
48 |
public boolean hasSchema() { |
|
49 |
// TODO Auto-generated method stub |
|
50 |
return false; |
|
51 |
} |
|
52 |
|
|
53 |
/* |
|
54 |
* (non-Javadoc) |
|
55 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
56 |
*/ |
|
57 |
public void makeAsserts() { |
|
58 |
assertEquals(1, getLayers().length); |
|
59 |
Layer layer = getLayers()[0]; |
|
60 |
ArrayList features = layer.getFeatures(); |
|
61 |
assertEquals(846, features.size()); |
|
62 |
} |
|
63 |
} |
|
64 |
|
|
65 |
|
|
0 | 66 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLCurvesReader.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
/** |
|
42 |
* @autor Carlos S?nchez Peri??n (csanper) |
|
43 |
**/ |
|
44 |
|
|
45 |
package org.gvsig.gpe.gml.parser; |
|
46 |
|
|
47 |
import java.util.ArrayList; |
|
48 |
|
|
49 |
import org.gvsig.gpe.containers.Layer; |
|
50 |
|
|
51 |
public class GMLCurvesReader extends GMLReaderBaseTest { |
|
52 |
|
|
53 |
/* |
|
54 |
* (non-Javadoc) |
|
55 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
56 |
*/ |
|
57 |
public String getFile() { |
|
58 |
return "testdata/GML-curves.gml"; |
|
59 |
} |
|
60 |
|
|
61 |
/* |
|
62 |
* (non-Javadoc) |
|
63 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
64 |
*/ |
|
65 |
public boolean hasSchema() { |
|
66 |
// TODO Auto-generated method stub |
|
67 |
return false; |
|
68 |
} |
|
69 |
|
|
70 |
/* |
|
71 |
* (non-Javadoc) |
|
72 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
73 |
*/ |
|
74 |
public void makeAsserts() { |
|
75 |
assertEquals(1, getLayers().length); |
|
76 |
Layer layer = getLayers()[0]; |
|
77 |
ArrayList features = layer.getFeatures(); |
|
78 |
assertEquals(1, features.size()); |
|
79 |
} |
|
80 |
} |
|
0 | 81 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLSFP0Reader.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
/** |
|
42 |
* @autor Carlos S?nchez Peri??n (csanper) |
|
43 |
**/ |
|
44 |
package org.gvsig.gpe.gml.parser; |
|
45 |
|
|
46 |
import java.util.ArrayList; |
|
47 |
|
|
48 |
import org.gvsig.gpe.containers.Layer; |
|
49 |
|
|
50 |
public class GMLSFP0Reader extends GMLReaderBaseTest{ |
|
51 |
|
|
52 |
/* |
|
53 |
* (non-Javadoc) |
|
54 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
55 |
*/ |
|
56 |
public String getFile() { |
|
57 |
return "testdata/EjemploSPF0.xml"; |
|
58 |
} |
|
59 |
|
|
60 |
/* |
|
61 |
* (non-Javadoc) |
|
62 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
63 |
*/ |
|
64 |
public boolean hasSchema() { |
|
65 |
// TODO Auto-generated method stub |
|
66 |
return false; |
|
67 |
} |
|
68 |
|
|
69 |
/* |
|
70 |
* (non-Javadoc) |
|
71 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
72 |
*/ |
|
73 |
public void makeAsserts() { |
|
74 |
assertEquals(1, getLayers().length); |
|
75 |
Layer layer = getLayers()[0]; |
|
76 |
ArrayList features = layer.getFeatures(); |
|
77 |
assertEquals(2, features.size()); |
|
78 |
} |
|
79 |
|
|
80 |
} |
|
0 | 81 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLNomenclatorIdeeReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import org.gvsig.gpe.containers.Layer; |
|
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: GMLNomenclatorIdeeReader.java 147 2007-06-08 13:01:44Z jorpiell $ |
|
48 |
* $Log$ |
|
49 |
* Revision 1.1 2007/06/08 13:01:12 jorpiell |
|
50 |
* Add the targetNamespace to the file |
|
51 |
* |
|
52 |
* |
|
53 |
*/ |
|
54 |
/** |
|
55 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
56 |
*/ |
|
57 |
public class GMLNomenclatorIdeeReader extends GMLReaderBaseTest { |
|
58 |
/* |
|
59 |
* (non-Javadoc) |
|
60 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#getFile() |
|
61 |
*/ |
|
62 |
public String getFile() { |
|
63 |
return "testdata/GMLNomenclatorIdee.gml"; |
|
64 |
} |
|
65 |
|
|
66 |
/* |
|
67 |
* (non-Javadoc) |
|
68 |
* @see org.gvsig.gpe.gml.readers.GMLReaderBaseTest#hasSchema() |
|
69 |
*/ |
|
70 |
public boolean hasSchema() { |
|
71 |
return false; |
|
72 |
} |
|
73 |
|
|
74 |
/* |
|
75 |
* (non-Javadoc) |
|
76 |
* @see org.gvsig.gpe.readers.GPEReaderBaseTest#makeAsserts() |
|
77 |
*/ |
|
78 |
public void makeAsserts() { |
|
79 |
Layer[] layers = getLayers(); |
|
80 |
assertEquals(layers.length, 1); |
|
81 |
Layer layer = layers[0]; |
|
82 |
assertEquals(1, layer.getFeatures().size()); |
|
83 |
|
|
84 |
} |
|
85 |
|
|
86 |
} |
|
0 | 87 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLLinesReader.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
|
|
5 |
import org.gvsig.gpe.containers.Layer; |
|
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: GMLLinesReader.java 73 2007-04-20 08:33:37Z jorpiell $ |
|
50 |
* $Log$ |
|
51 |
* Revision 1.1 2007/04/20 08:33:37 jorpiell |
|
52 |
* Test updated |
|
53 |
* |
|
54 |
* |
|
55 |
*/ |
|
56 |
/** |
|
57 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
|
58 |
*/ |
|
59 |
public class GMLLinesReader extends GMLReaderBaseTest { |
|
60 |
|
|
61 |
/* |
|
62 |
* (non-Javadoc) |
|
63 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#getFile() |
|
64 |
*/ |
|
65 |
public String getFile() { |
|
66 |
return "testdata/GML-lines.gml"; |
|
67 |
} |
|
68 |
|
|
69 |
/* |
|
70 |
* (non-Javadoc) |
|
71 |
* @see org.gvsig.gpe.gml.parser.GMLReaderBaseTest#hasSchema() |
|
72 |
*/ |
|
73 |
public boolean hasSchema() { |
|
74 |
// TODO Auto-generated method stub |
|
75 |
return false; |
|
76 |
} |
|
77 |
|
|
78 |
/* |
|
79 |
* (non-Javadoc) |
|
80 |
* @see org.gvsig.gpe.parser.GPEReaderBaseTest#makeAsserts() |
|
81 |
*/ |
|
82 |
public void makeAsserts() { |
|
83 |
assertEquals(1, getLayers().length); |
|
84 |
Layer layer = getLayers()[0]; |
|
85 |
ArrayList features = layer.getFeatures(); |
|
86 |
assertEquals(10, features.size()); |
|
87 |
} |
|
88 |
} |
|
0 | 89 |
tags/tmp_build/libraries/libGPE-GML/src-test/org/gvsig/gpe/gml/parser/GMLReaderBaseTest.java | ||
---|---|---|
1 |
package org.gvsig.gpe.gml.parser; |
|
2 |
|
|
3 |
import org.gvsig.gpe.parser.GPEReaderBaseTest; |
Also available in: Unified diff