Revision 10551

View differences:

trunk/libraries/libGPE/build.xml
1
<project name="libGPE" default="dist" basedir=".">
2
	<description>
3
        Genera el jar con libGPE y sus dependencias
4
    </description>
5
	<!-- set global properties for this build -->
6
	<property name="src" location="src" />
7
	<property name="build" location="bin" />
8
	<property name="dist" location="dist" />
9
	<property name="lib" location="lib" />
10
	<property name="remoteServicesLibs" location="../remoteServices/lib" />
11
	<property name="fmapLibs" location="../libFMap" />
12
	<property name="jarName" value="libGPE" />
13
	<property name="targetDir" location="../libFMap/lib" />
14
	<property name="compile-classpath" value="${remoteServicesLibs}/kxml2.jar:${remoteServicesLibs}/gvsig-exceptions.jar" />
15

  
16
	<target name="init">
17
		<!-- Create the time stamp -->
18
		<tstamp />
19
		<echo>
20
			Compiling ${ant.project.name}...</echo>
21
		<!-- Create the build directory structure used by compile -->
22
		<mkdir dir="${build}" />
23
	</target>
24

  
25
	<target name="dist" depends="init" description="generate the distribution">
26
		<!-- Create the distribution directory -->
27
		<mkdir dir="${dist}" />
28

  
29
		<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
30
		<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"  />
31
		
32
		<move todir="${targetDir}/">
33
			<fileset dir="${dist}" includes="**/**" />
34
		</move>
35
		<!--<copy todir="${targetDir}/">
36
			<fileset dir="${lib}" includes="*.jar" />
37
		</copy>-->
38
	</target>
39

  
40
	<target		name="batch-build"
41
				description="compile the sources, create the jar file"
42
				depends="init,compile,create-jar,move-to-fmap">
43
	</target>
44

  
45
	<target name="compile" description="compile the source">
46
		<!-- Compile the Java code from ${src} to ${build} -->
47
		<mkdir dir="${build}" />
48
		<javac	srcdir="${src}"
49
				destdir="${build}"
50
				source="1.4"
51
				target="1.4"
52
				classpath="${compile-classpath}"
53
				debug="${debug}"
54
				debuglevel="${debuglevel}"
55
				excludes="**/Tests/*.java" />
56
	</target>
57

  
58
	<target name="move-to-fmap" description="Move jars and required libraries to fmap">
59
		<copy todir="${targetDir}">
60
			<fileset dir="./lib" includes="*.jar" />
61
		</copy>
62
		<copy todir=".">
63
			<fileset dir="${dist}" includes="${jarName}.jar" />
64
		</copy>
65
		<move todir="${targetDir}/">
66
			<fileset dir="${dist}" includes="**/**" />
67
		</move>
68
	</target>
69

  
70
	<target name="create-jar" description="Crea el jar de la aplicacion">
71
		<mkdir dir="${dist}" />
72
		<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" />
73
		<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" />
74
	</target>
75

  
76
	<target name="clean" description="clean up">
77
		<!-- Delete the ${build} and ${dist} directory trees -->
78
		<delete dir="${build}" />
79
		<delete dir="${dist}" />
80
	</target>
81
</project>
82

  
trunk/libraries/libGPE/.classpath
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3 3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="src" path="src-test"/>
5 4
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6
	<classpathentry kind="lib" path="/libRemoteServices/lib/gvsig-exceptions.jar"/>
7
	<classpathentry kind="lib" path="/libRemoteServices/lib/kxml2.jar"/>
8 5
	<classpathentry kind="output" path="bin"/>
9 6
</classpath>
trunk/libraries/libGPE/src/org/gvsig/gpe/IGPEGeometriesHandler.java
1
package org.gvsig.gpe;
2

  
3
import java.util.Vector;
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
 * Revision 1.1  2007-02-28 11:52:06  csanchez
50
 * Nueva libreria para el motor de persistencia GML
51
 *
52
 *
53
 */
54
/**
55
 * @author Carlos S?nchez Peri??n (sanchez_carper@gva.es)
56
 */
57
public interface IGPEGeometriesHandler {
58

  
59
	/**
60
	 * @param args
61
	 */
62
	 public Object startPoint(String srsName, double X, double Y, double Z);
63

  
64
	  public Object startLineString(String srsName, Vector pointsVector);
65

  
66
	  public Object startPoligon(String srsName, Vector outerBoundaryr, Vector innerBoundary);
67

  
68
	  public Object startLinearRing(String srsName, Vector pointsVector);
69

  
70
	  public Object startMultiPonint(String srsName, Vector X, Vector Y, Vector Z);
71

  
72
	  public Object startMultiLineString(String srsName, Vector LinesVector);
73

  
74
	  public Object startMultiPolygon(String srsName, Object polygonVector);
75

  
76
}
0 77

  
trunk/libraries/libGPE/src/org/gvsig/gpe/AbstractGPEDriver.java
1
package org.gvsig.gpe;
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
/* CVS MESSAGES:
43
 *
44
 * $Id$
45
 * $Log$
46
 * Revision 1.1  2007-02-28 11:52:06  csanchez
47
 * Nueva libreria para el motor de persistencia GML
48
 *
49
 *
50
 */
51
/**
52
 * @author Carlos S?nchez Peri??n (sanchez_carper@gva.es)
53
 */
54
public abstract class AbstractGPEDriver {
55
	private IGPEContentHandler myIGPEContentHandler;
56
    private IGPEGeometriesHandler myIGPEGeometriesHandler;
57
	
58
    public AbstractGPEDriver(IGPEContentHandler myIGPEContentHandler, IGPEGeometriesHandler myIGPEGeometriesHandler) {
59
		super();
60
		// TODO Ap?ndice de constructor generado autom?ticamente
61
		this.myIGPEContentHandler = myIGPEContentHandler;
62
		this.myIGPEGeometriesHandler = myIGPEGeometriesHandler;
63
	}
64
}
0 65

  
trunk/libraries/libGPE/src/org/gvsig/gpe/IGPEContentHandler.java
1
package org.gvsig.gpe;
2

  
3
import java.awt.geom.Rectangle2D;
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
 * Revision 1.1  2007-02-28 11:52:06  csanchez
50
 * Nueva libreria para el motor de persistencia GML
51
 *
52
 *
53
 */
54
/**
55
 * @author Carlos S?nchez Peri??n (sanchez_carper@gva.es)
56
 */
57
public interface IGPEContentHandler {
58

  
59
	/**
60
	 * @param args
61
	 */
62
	public Object startLayer(Object parent, Object bBox, String name);
63

  
64
	  public Object startbBox(Rectangle2D extend, String srs);
65

  
66
	  public Object startFeature(Object layer, Object parent, Object bBox, String gid, Object type);
67

  
68
	  public Object startElement(Object parent, String name, Object type, Object value);
69

  
70
	  public void addElement(Object feature, Object type);
71

  
72
	  public Object StartRule(Object typeRuled);
73

  
74
	  public Object addGeometry(Object feature, Object geometry);
75

  
76
}
0 77

  

Also available in: Unified diff