Revision 58

View differences:

publish/branches/extremadura/extPublishMapserver/build.xml
1
<project name="Publish Plugin Mapserver" default="dist" basedir=".">
2
	<description>
3
        Plugin publish Mapserver
4
    </description>
5
	<!-- set global properties for this build -->
6
	<property name="src" location="src"/>
7
	<property name="build" location="bin"/>
8
	<property name="andamiLibs" location="../_fwAndami/lib"/>	
9
	<property name="dist"  location="dist"/>
10
	<property name="dist-src" location="dist-src"/>
11
	<property name="lib"  location="lib"/>
12
	<property name="plugin" value="org.gvsig.publish.mapserver"/>
13
	<property name="jarName" value="publishmapserver"/>
14
	<property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/>
15
	<property name="targetDir" location="../_fwAndami/gvSIG/extensiones/${plugin}"/>
16
	<property name="build-doc" value="doc"/>
17
	<property name="compile-classpath" value="${extensionsDir}/org.gvsig.publish/com.iver.cit.gvsig.publish.jar:${andamiLibs}/iver-utiles.jar:../_fwAndami/andami.jar"/>
18
	<property name="JavaSourceVersion" value="1.4"/>
19
	<property name="JavaTargetVersion" value="1.4"/>
20
	<property name="encoding" value="ISO-8859-1"/>
21
	<property name="resources" value="resources"/>
22
	
23
	<target name="init">
24
		<!-- Create the time stamp -->
25
		<tstamp />
26
	</target>
27

  
28
	<target name="build-doc" depends="" description="Generates documentation">
29
		<javadoc
30
			packagenames="org.gvsig.publish.mapserver.*"
31
			sourcepath="src"
32
			defaultexcludes="yes"
33
			destdir="${build-doc}/org.gvsig.publish.mapserver"
34
			encoding="${encoding}"
35
			windowtitle="mapserverPublish API">
36
		</javadoc>
37
	</target>
38

  
39
	<target name="dist"
40
		description="generate the distribution" depends="copy-data-files,create-jar,move-to-andami">
41
	</target>
42

  
43
	<target		name="batch-build"
44
				description="compile the sources, create the jar file"
45
				depends="compile,copy-data-files,create-jar,move-to-andami">
46
	</target>
47

  
48
	<target name="compile" description="compile the source">
49
		<!-- Compile the Java code from ${src} to ${build} -->
50
		<mkdir dir="${build}" />
51
		<javac	srcdir="${src}"
52
				destdir="${build}"
53
				source="${JavaSourceVersion}"
54
				target="${JavaTargetVersion}"
55
				classpath="${compile-classpath}"
56
				debug="${debug}"
57
				debuglevel="${debuglevel}"
58
				encoding="${encoding}"/>
59
	</target>
60
	
61
	<target name="copy-data-files">
62
		<mkdir dir="config"/>
63
        <copy todir="${dist}">
64
                <fileset dir="config" includes="*" />
65
        </copy>
66
		<mkdir dir="images"/>
67
		<copy todir="${dist}/images">
68
		        <fileset dir="images" includes="*" />
69
		</copy>
70
		<mkdir dir="resources"/>
71
		<copy todir="${dist}/resources">
72
		        <fileset dir="resources" includes="*" />
73
		</copy>
74
    </target>
75
	
76
	<target name="create-jar" description="Creates the jar file">
77
		<mkdir dir="${dist}"/>	
78
	    <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/>
79
	</target>
80
	
81
	<target name="move-to-andami" description="Move jars and required libraries to andami">
82
		<move  todir="${targetDir}">
83
			<fileset dir="${dist}" includes="**/*"/>
84
		</move>
85
	</target>
86
	
87
	<target name="clean"
88
		description="clean up" >
89
		<!-- Delete the ${build} and ${dist} directory trees -->
90
		<delete dir="${build}"/>
91
		<delete dir="${dist}"/>
92
	</target>
93
	
94
	  <target name="generate-source-package">
95
	  	<!-- Prepara un zip con los fuentes -->
96
	  	
97
	  	<delete dir="${dist-src}" quiet="yes"/>
98
	  	<mkdir dir="${dist-src}"/>
99
	  	<basename file="${basedir}" property="extensionProjectDir"/>
100
	  	<mkdir dir="${dist-src}/${extensionProjectDir}"/>
101
	    <copy todir="${dist-src}/${extensionProjectDir}">
102
	      <fileset dir="${basedir}"/>
103
	    </copy>
104
	  	<!--<copy todir="${dist-src}">
105
	  		<fileset dir="${basedir}/install/resources" includes="Leeme-publish.txt, Readme-publish.txt"/>
106
	  	</copy> -->
107
	  	<delete dir="${dist-src}/${extensionProjectDir}/bin"/>
108
	  	<mkdir dir="${dist-src}/${extensionProjectDir}/bin"/>
109
	  	<delete dir="${dist-src}/${extensionProjectDir}/src-test"/>
110
	  	<mkdir dir="${dist-src}/${extensionProjectDir}/src-test"/>
111
	  	<delete dir="${dist-src}/${extensionProjectDir}/install"/>
112
	  	<delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/>
113
	  	<delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/>
114
	  	<delete dir="${dist-src}/${extensionProjectDir}/test-files" quiet="yes"/>
115
	  	<delete dir="${dist-src}/${extensionProjectDir}/test-file" quiet="yes"/>
116
	  	<!-- gets the build number form the extPublish -->
117
	  	<loadproperties srcFile="../extPublish/build.number"/> 
118
	  	<replace casesensitive="true"
119
	  	  	token="#build.number#"
120
	  		value="${build.number}"
121
	  		dir="${dist-src}"
122
	  		includes="Leeme-publish.txt, Readme-publish.txt"/>
123
	  	 <zip destfile="${dist-src}/gvSIG_extPublishMapserver-10_${build.number}-src.zip"
124
	  	       basedir="${dist-src}"
125
	  	       excludes="*.zip,**/.svn" />		
126
	  </target>
127

  
128
</project>
0 129

  
publish/branches/extremadura/extPublishMapserver/.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 combineaccessrules="false" kind="src" path="/extPublish"/>
7
	<classpathentry kind="lib" path="/_fwAndami/lib/log4j-1.2.8.jar"/>
8
	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
9
	<classpathentry kind="lib" path="/_fwAndami/lib/castor-0.9.5.3-xml.jar"/>
10
	<classpathentry combineaccessrules="false" kind="src" path="/libFMap"/>
11
	<classpathentry combineaccessrules="false" kind="src" path="/appgvSIG"/>
12
	<classpathentry combineaccessrules="false" kind="src" path="/libPublishUtil"/>
13
	<classpathentry combineaccessrules="false" kind="src" path="/extSymbology"/>
14
	<classpathentry kind="lib" path="/libPublishUtil/lib/bcprov-jdk15-1.43.jar"/>
15
	<classpathentry kind="lib" path="/libPublishUtil/lib/commons-codec-1.3.jar"/>
16
	<classpathentry kind="lib" path="/libPublishUtil/lib/commons-httpclient-3.1.jar"/>
17
	<classpathentry kind="lib" path="/libPublishUtil/lib/commons-logging-1.0.4.jar"/>
18
	<classpathentry kind="lib" path="/libPublishUtil/lib/commons-net-2.0.jar"/>
19
	<classpathentry kind="lib" path="/libPublishUtil/lib/commons-vfs-2.0.jar"/>
20
	<classpathentry kind="lib" path="/libPublishUtil/lib/jsch-0.1.41.jar"/>
21
	<classpathentry kind="lib" path="/libPublishUtil/lib/zehon_file_transfer-1.1.6.jar"/>
22
	<classpathentry combineaccessrules="false" kind="src" path="/_fwAndami"/>
23
	<classpathentry kind="lib" path="/_fwAndami/lib/iver-utiles.jar" sourcepath="/libIverUtiles"/>
24
	<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.ui.jar" sourcepath="/libUIComponent/src"/>
25
	<classpathentry kind="output" path="bin"/>
26
</classpath>
0 27

  
publish/branches/extremadura/extPublishMapserver/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>extPublishMapserver</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
	</buildSpec>
14
	<natures>
15
		<nature>org.eclipse.jdt.core.javanature</nature>
16
	</natures>
17
</projectDescription>
0 18

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/util/MapserverUtilitiesTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.util;
42

  
43
import java.io.File;
44

  
45
import junit.framework.TestCase;
46

  
47
public class MapserverUtilitiesTest extends TestCase {
48

  
49
	public void testGetDataPath() {
50
		String shapepath = "/data";
51
		File localPoint = new File("/mnt/simon");
52
		String path1 = "/mnt/simon/mydata/test.shp";
53
		String path2 = "/home/test.shp";
54
		
55
//		DataSourceInfoFactory.getInstance(layer);
56
//		String aux = MapserverUtilities.getDataParameter(ds, shapepath, localMountPoint)(path1, shapepath, localPoint);
57
		System.out.println("Local point:" + localPoint);
58
		System.out.println("Shapepath: " + shapepath);
59
		System.out.println("DATA: " + path1);		
60
		//System.out.println("DATA: " + aux);		
61
	}
62

  
63
}
0 64

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/AllModelTests.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model;
42

  
43
import junit.framework.Test;
44
import junit.framework.TestSuite;
45

  
46
import org.gvsig.publish.mapserver.model.wcs.MapserverWCSLayerTest;
47
import org.gvsig.publish.mapserver.model.wcs.MapserverWCSTest;
48
import org.gvsig.publish.mapserver.model.wfs.MapserverWFSLayerTest;
49
import org.gvsig.publish.mapserver.model.wfs.MapserverWFSTest;
50
import org.gvsig.publish.mapserver.model.wms.MapserverWMSLayerTest;
51
import org.gvsig.publish.mapserver.model.wms.MapserverWMSTest;
52

  
53
public class AllModelTests {
54

  
55
	public static Test suite() {
56
		TestSuite suite = new TestSuite(
57
				"Test for org.gvsig.publish.mapserver.model");
58
		//$JUnit-BEGIN$
59
		suite.addTestSuite(MapserverTest.class);
60
		suite.addTestSuite(MapserverWMSTest.class);
61
		suite.addTestSuite(MapserverWMSLayerTest.class);
62
		suite.addTestSuite(MapserverWFSTest.class);
63
		suite.addTestSuite(MapserverWFSLayerTest.class);
64
		suite.addTestSuite(MapserverWCSTest.class);
65
		suite.addTestSuite(MapserverWCSLayerTest.class);
66
		//$JUnit-END$
67
		return suite;
68
	}
69

  
70
}
0 71

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/wcs/MapserverWCSLayerTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model.wcs;
42

  
43
import org.gvsig.publish.exceptions.InvalidRemoteResourceException;
44
import org.gvsig.publish.mapserver.model.Mapserver;
45
import org.gvsig.publish.serversmodel.RemoteResourceTest;
46

  
47
public class MapserverWCSLayerTest extends RemoteResourceTest {
48

  
49
	public MapserverWCSLayerTest() throws InvalidRemoteResourceException {
50
		super();
51
		// TODO Auto-generated constructor stub
52
	}
53

  
54
	/*
55
	 * (non-Javadoc)
56
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getRemoteResourceClass()
57
	 */
58
	public Class getRemoteResourceClass() {
59
		// TODO Auto-generated method stub
60
		return MapserverWCSLayer.class;
61
	}
62

  
63
	/*
64
	 * (non-Javadoc)
65
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getRemoteResourceRegisterTag()
66
	 */
67
	public String getRemoteResourceRegisterTag() {
68
		// TODO Auto-generated method stub
69
		return MapserverWCSLayer.REGISTER_TAG;
70
	}
71

  
72
	/*
73
	 * (non-Javadoc)
74
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServerClass()
75
	 */
76
	public Class getServerClass() {
77
		// TODO Auto-generated method stub
78
		return Mapserver.class;
79
	}
80

  
81
	/*
82
	 * (non-Javadoc)
83
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServerRegisterTag()
84
	 */
85
	public String getServerRegisterTag() {
86
		// TODO Auto-generated method stub
87
		return Mapserver.REGISTER_TAG;
88
	}
89

  
90
	/*
91
	 * (non-Javadoc)
92
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServiceClass()
93
	 */
94
	public Class getServiceClass() {
95
		// TODO Auto-generated method stub
96
		return MapserverWCS.class;
97
	}
98

  
99
	/*
100
	 * (non-Javadoc)
101
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServiceRegisterTag()
102
	 */
103
	public String getServiceRegisterTag() {
104
		// TODO Auto-generated method stub
105
		return MapserverWCS.REGISTER_TAG;
106
	}
107

  
108

  
109
}
0 110

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/wcs/MapserverWCSTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model.wcs;
42

  
43
import org.gvsig.publish.mapserver.model.Mapserver;
44
import org.gvsig.publish.serversmodel.ServiceTest;
45

  
46
public class MapserverWCSTest extends ServiceTest {
47

  
48
	/*
49
	 * (non-Javadoc)
50
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceClass()
51
	 */
52
	public Class getRemoteResourceClass() {
53
		
54
		return MapserverWCSLayer.class;
55
	}
56

  
57
	/*
58
	 * (non-Javadoc)
59
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceRegisterTag()
60
	 */
61
	public String getRemoteResourceRegisterTag() {
62
		
63
		return MapserverWCS.REGISTER_TAG;
64
	}
65

  
66
	/*
67
	 * (non-Javadoc)
68
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerClass()
69
	 */
70
	public Class getServerClass() {
71
		
72
		return Mapserver.class;
73
	}
74

  
75
	/*
76
	 * (non-Javadoc)
77
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerRegisterTag()
78
	 */
79
	public String getServerRegisterTag() {
80
		
81
		return Mapserver.REGISTER_TAG;
82
	}
83

  
84
	/*
85
	 * (non-Javadoc)
86
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceClass()
87
	 */
88
	public Class getServiceClass() {
89
		
90
		return MapserverWCS.class;
91
	}
92

  
93
	/*
94
	 * (non-Javadoc)
95
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceRegisterTag()
96
	 */
97
	public String getServiceRegisterTag() {
98
		
99
		return MapserverWCS.REGISTER_TAG;
100
	}
101

  
102
}
0 103

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/wfs/MapserverWFSTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model.wfs;
42

  
43
import org.gvsig.publish.mapserver.model.Mapserver;
44
import org.gvsig.publish.serversmodel.ServiceTest;
45

  
46
public class MapserverWFSTest extends ServiceTest {
47

  
48
	/*
49
	 * (non-Javadoc)
50
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceClass()
51
	 */
52
	public Class getRemoteResourceClass() {
53
		
54
		return MapserverWFSLayer.class;
55
	}
56

  
57
	/*
58
	 * (non-Javadoc)
59
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceRegisterTag()
60
	 */
61
	public String getRemoteResourceRegisterTag() {
62

  
63
		return MapserverWFSLayer.REGISTER_TAG;
64
	}
65

  
66
	/*
67
	 * (non-Javadoc)
68
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerClass()
69
	 */
70
	public Class getServerClass() {
71

  
72
		return Mapserver.class;
73
	}
74

  
75
	/*
76
	 * (non-Javadoc)
77
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerRegisterTag()
78
	 */
79
	public String getServerRegisterTag() {
80

  
81
		return Mapserver.REGISTER_TAG;
82
	}
83

  
84
	/*
85
	 * (non-Javadoc)
86
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceClass()
87
	 */
88
	public Class getServiceClass() {
89
	
90
		return MapserverWFS.class;
91
	}
92

  
93
	/*
94
	 * (non-Javadoc)
95
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceRegisterTag()
96
	 */
97
	public String getServiceRegisterTag() {	
98
		return MapserverWFS.REGISTER_TAG;
99
	}
100

  
101
}
0 102

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/wfs/MapserverWFSLayerTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model.wfs;
42

  
43
import org.gvsig.publish.exceptions.InvalidRemoteResourceException;
44
import org.gvsig.publish.mapserver.model.Mapserver;
45
import org.gvsig.publish.serversmodel.RemoteResourceTest;
46

  
47
public class MapserverWFSLayerTest extends RemoteResourceTest {
48

  
49

  
50
	public MapserverWFSLayerTest() throws InvalidRemoteResourceException {
51
		super();
52
		// TODO Auto-generated constructor stub
53
	}
54

  
55
	/*
56
	 * (non-Javadoc)
57
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceClass()
58
	 */
59
	public Class getRemoteResourceClass() {
60
		
61
		return MapserverWFSLayer.class;
62
	}
63

  
64
	/*
65
	 * (non-Javadoc)
66
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceRegisterTag()
67
	 */
68
	public String getRemoteResourceRegisterTag() {
69

  
70
		return MapserverWFSLayer.REGISTER_TAG;
71
	}
72

  
73
	/*
74
	 * (non-Javadoc)
75
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerClass()
76
	 */
77
	public Class getServerClass() {
78

  
79
		return Mapserver.class;
80
	}
81

  
82
	/*
83
	 * (non-Javadoc)
84
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerRegisterTag()
85
	 */
86
	public String getServerRegisterTag() {
87

  
88
		return Mapserver.REGISTER_TAG;
89
	}
90

  
91
	/*
92
	 * (non-Javadoc)
93
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceClass()
94
	 */
95
	public Class getServiceClass() {
96
	
97
		return MapserverWFS.class;
98
	}
99

  
100
	/*
101
	 * (non-Javadoc)
102
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceRegisterTag()
103
	 */
104
	public String getServiceRegisterTag() {	
105
		return MapserverWFS.REGISTER_TAG;
106
	}
107

  
108

  
109
}
0 110

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/MapserverTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model;
42

  
43
import java.io.File;
44
import java.net.URL;
45

  
46
import org.gvsig.publish.infoproject.IProjectInfo;
47
import org.gvsig.publish.infoproject.factory.ProjectInfoFactory;
48

  
49
import org.gvsig.publish.mapserver.model.wms.MapserverWMS;
50
import org.gvsig.publish.serversmodel.Publication;
51
import org.gvsig.publish.serversmodel.PublicationProcess;
52
import org.gvsig.publish.serversmodel.ServerTest;
53
import org.gvsig.publish.test.LocalResourcesTestUtilities;
54

  
55
public class MapserverTest extends ServerTest {
56

  
57
	/*
58
	 * (non-Javadoc)
59
	 * @see org.gvsig.publish.serversmodel.ServerTest#getServerClass()
60
	 */
61
	public Class getServerClass() {
62
		
63
		return Mapserver.class;
64
	}
65

  
66
	/*
67
	 * (non-Javadoc)
68
	 * @see org.gvsig.publish.serversmodel.ServerTest#getServerRegisterTag()
69
	 */
70
	public String getServerRegisterTag() {
71
		
72
		return Mapserver.REGISTER_TAG;
73
	}
74

  
75
	/*
76
	 * (non-Javadoc)
77
	 * @see org.gvsig.publish.serversmodel.ServerTest#getServiceClass()
78
	 */
79
	public Class getServiceClass() {
80
	
81
		return MapserverWMS.class;
82
	}
83

  
84
	/*
85
	 * (non-Javadoc)
86
	 * @see org.gvsig.publish.serversmodel.ServerTest#getServiceRegisterTag()
87
	 */
88
	public String getServiceRegisterTag() {
89

  
90
		return MapserverWMS.REGISTER_TAG;
91
	}
92

  
93
	/* (non-Javadoc)
94
	 * @see org.gvsig.publish.serversmodel.ServerTest#testPublish()
95
	 *
96
	
97
	public void testPublish() throws Exception {
98
		server.setAddress("localhost");
99
		server.setPath("/cgi-bin/mapserv");
100
		server.setPort(80);
101
		LocalResourcesTestUtilities util = new LocalResourcesTestUtilities();
102
		IProjectInfo proj = ProjectInfoFactory.getProjectInfo(util.getProject_complete());
103
		server.addInfo(proj.getViewsInfo()[0]);
104
		server.addService(service);
105
		//((Mapserver)server).setMapfileFile(new File("test.map"));	
106
		super.testPublish();
107
	}*/
108
	
109
	public void  test_creation(){
110
		Mapserver m = new Mapserver( new Publication("test"));
111
		server.setAddress("localhost");
112
		server.setPath("/cgi-bin/mapserv");
113
		server.setPort(80);
114
		PublicationProcess p = m.getPublicationProcess();
115
		Thread t = new Thread(p);
116
		t.start();
117
	}
118
	
119
}
0 120

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/wms/MapserverWMSTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model.wms;
42

  
43
import org.gvsig.publish.mapserver.model.Mapserver;
44
import org.gvsig.publish.serversmodel.ServiceTest;
45

  
46
public class MapserverWMSTest extends ServiceTest {
47

  
48
	/*
49
	 * (non-Javadoc)
50
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceClass()
51
	 */
52
	public Class getRemoteResourceClass() {
53
		
54
		return MapserverWMSLayer.class;
55
	}
56

  
57
	/*
58
	 * (non-Javadoc)
59
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getRemoteResourceRegisterTag()
60
	 */
61
	public String getRemoteResourceRegisterTag() {
62
		
63
		return MapserverWMSLayer.REGISTER_TAG;
64
	}
65

  
66
	/*
67
	 * (non-Javadoc)
68
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerClass()
69
	 */
70
	public Class getServerClass() {
71
		
72
		return Mapserver.class;
73
	}
74

  
75
	/*
76
	 * (non-Javadoc)
77
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServerRegisterTag()
78
	 */
79
	public String getServerRegisterTag() {
80
		
81
		return Mapserver.REGISTER_TAG;
82
	}
83

  
84
	/*
85
	 * (non-Javadoc)
86
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceClass()
87
	 */
88
	public Class getServiceClass() {
89
		
90
		return MapserverWMS.class;
91
	}
92

  
93
	/*
94
	 * (non-Javadoc)
95
	 * @see org.gvsig.publish.serversmodel.ServiceTest#getServiceRegisterTag()
96
	 */
97
	public String getServiceRegisterTag() {
98
		
99
		return MapserverWMS.REGISTER_TAG;
100
	}
101

  
102
}
0 103

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/model/wms/MapserverWMSLayerTest.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.model.wms;
42

  
43
import java.net.MalformedURLException;
44
import java.net.URL;
45

  
46
import org.gvsig.publish.exceptions.InvalidRemoteResourceException;
47
import org.gvsig.publish.mapserver.model.Mapserver;
48
import org.gvsig.publish.serversmodel.RemoteResourceTest;
49

  
50

  
51

  
52
public class MapserverWMSLayerTest extends RemoteResourceTest {
53

  
54
	public MapserverWMSLayerTest() throws InvalidRemoteResourceException {
55
		super();
56
		// TODO Auto-generated constructor stub
57
	}
58

  
59
	/*
60
	 * (non-Javadoc)
61
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getRemoteResourceClass()
62
	 */
63
	public Class getRemoteResourceClass() {
64
		// TODO Auto-generated method stub
65
		return MapserverWMSLayer.class;
66
	}
67

  
68
	/*
69
	 * (non-Javadoc)
70
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getRemoteResourceRegisterTag()
71
	 */
72
	public String getRemoteResourceRegisterTag() {
73
		// TODO Auto-generated method stub
74
		return MapserverWMSLayer.REGISTER_TAG;
75
	}
76

  
77
	/*
78
	 * (non-Javadoc)
79
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServerClass()
80
	 */
81
	public Class getServerClass() {
82
		// TODO Auto-generated method stub
83
		return Mapserver.class;
84
	}
85

  
86
	/*
87
	 * (non-Javadoc)
88
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServerRegisterTag()
89
	 */
90
	public String getServerRegisterTag() {
91
		// TODO Auto-generated method stub
92
		return Mapserver.REGISTER_TAG;
93
	}
94

  
95
	/*
96
	 * (non-Javadoc)
97
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServiceClass()
98
	 */
99
	public Class getServiceClass() {
100
		// TODO Auto-generated method stub
101
		return MapserverWMS.class;
102
	}
103

  
104
	/*
105
	 * (non-Javadoc)
106
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#getServiceRegisterTag()
107
	 */
108
	public String getServiceRegisterTag() {
109
		// TODO Auto-generated method stub
110
		return MapserverWMS.REGISTER_TAG;
111
	}
112

  
113
	/* (non-Javadoc)
114
	 * @see org.gvsig.publish.serversmodel.RemoteResourceTest#testGetXMLEntity()
115
	 */
116
	public void testGetXMLEntity() {
117
		// TODO Auto-generated method stub
118
		super.testGetXMLEntity();
119

  
120
			server.setAddress("servidor");
121
			server.setPath("path");
122
			server.setPort(80);
123
			System.out.println(server.getXMLEntity().toString());
124
		
125
	}
126

  
127
}
0 128

  
publish/branches/extremadura/extPublishMapserver/src-test/org/gvsig/publish/mapserver/gui/Test_MapserverGUI.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 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 Iba?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
package org.gvsig.publish.mapserver.gui;
42
import java.net.MalformedURLException;
43
import java.net.URL;
44

  
45
import javax.swing.JFrame;
46

  
47
import org.gvsig.publish.PublishRegister;
48
import org.gvsig.publish.exceptions.InvalidRemoteResourceException;
49
import org.gvsig.publish.gui.publish.PublishController;
50
import org.gvsig.publish.mapserver.gui.browser.MSBrowserController;
51
import org.gvsig.publish.mapserver.model.Mapserver;
52
import org.gvsig.publish.mapserver.model.wms.MapserverWMS;
53
import org.gvsig.publish.mapserver.model.wms.MapserverWMSLayer;
54
import org.gvsig.publish.serversmodel.Publication;
55
import org.gvsig.publish.serversmodel.RemoteResource;
56
import org.gvsig.publish.serversmodel.Server;
57
import org.gvsig.publish.serversmodel.Service;
58
/**
59
 * Tests the Mapserver GUI 
60
 * 
61
 * @author jvhigon
62
 *
63
 */
64
public class Test_MapserverGUI{
65
	static public PublishController ctrl = null;
66
	static public Publication publication=null;
67
	static public Server server=null;
68
	static public Service service=null;
69
	static public RemoteResource rr=null;
70
		
71
	public static void main(String[] args) {
72
	    //Schedule a job for the event-dispatching thread:
73
        //creating and showing this application's GUI.		
74
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
75
        		public void run() {
76
				    try {
77
						createModel();
78
					} catch (InvalidRemoteResourceException e) {
79
						// TODO Auto-generated catch block
80
						e.printStackTrace();
81
					}
82
				    createController();
83
				    registerController();
84
				    showGUI();
85
				}
86
      });
87
		
88
    }
89
	
90
    private static void createModel() throws InvalidRemoteResourceException{
91
    	publication = new Publication("test");
92
    	server = new Mapserver(publication);
93
    	server.setAddress("localhost");
94
		server.setPath("/cgi-bin/mapser");
95
		server.setPort(80);
96
		publication.setServer(server);
97
		service = new MapserverWMS((Mapserver)server);
98
		server.addService(service);
99
		rr = new MapserverWMSLayer((MapserverWMS)service);		
100
		service.addRemoteResource(rr);		
101
	}
102
    private static  void createController(){
103
    	ctrl = new PublishController();
104
    	ctrl.setPublication(publication);
105
    	
106
    }
107
    private static void registerController(){
108
        //register controller 
109
    	PublishRegister.register().addController(Mapserver.REGISTER_TAG, MSBrowserController.class);
110
    	
111
    }
112
	
113
	private static void showGUI(){
114
        //Create and set up the window.
115
        JFrame frame = new JFrame("Testing Mapserver GUI");
116
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
117
        //Add the publish panel        
118
        frame.getContentPane().add(ctrl.getWindow());
119
        //Display the window.
120
        frame.pack();
121
        frame.setVisible(true);
122
		
123
	}
124

  
125
}
0 126

  
publish/branches/extremadura/extPublishMapserver/config/text.properties
1
#mapserver basic
2
publishms_mapserver_url=URL
3
publishms_mapserver_mapfile=Fichero de configuraci?n
4
#mapserver advanced
5
publishms_mapserver_imagepath=Directorio temporal
6
publishms_mapserver_shapepath=Directorio datos
7
publishms_debug=Depuraci?n
8
#preferences page
9
publishms_publish_view=GUI de publicaci?n
10
publishms_change_view_properties=Debe reiniciar la aplicaci?n para que los cambios sean efectivos
11
publishms_restart=Reinicie la aplicaci?n
12
publishms_publish_mapserver=Publicaci?n en Mapserver
13
#mapserver layer
14
publishms_mapserver_layer_properties=Propiedades capa Mapserver
15
publishms_mosaic=Mosaico de im?genes
16
#Model Mapserver
17
publishms_nothing_to_publish=Nada que publicar. A?ada recursos a la publicaci?n.
18
publishms_the_mapfile_is_not_defined=Seleccione un fichero para escribir la configuraci?n.
19
publishms_publish_message=Publicaci?n generada correctamente.\nAseg?rese que las fuentes de datos son accesibles por parte del usuario que ejecuta el CGI de Mapserver.\nCualquier contrase?a aparecer? en los ficheros generados sin encriptar.
20
publishms_no_services_defined=No se ha definido ning?n servicio.
21
publihsms_permission_denied=Imposible generar los ficheros de configuraci?n. Permiso denegado.
22

  
23
#publishms_mapserver_properties=Propiedades Servidor Mapserver
24
#publishms_mapserver_mapname=Nombre del mapa
25
#publishms_name=Nombre 
26

  
27
#cambios en la 1.9
28
mapfile=MapFile
0 29

  
publish/branches/extremadura/extPublishMapserver/config/text_en.properties
1
publishms_nothing_to_publish=Nothing to publish. Add a new resource.
2
publishms_the_mapfile_is_not_defined=Select a file to write the configuration.
3
publishms_debug=Debug
4
publishms_mapserver_properties=Mapserver properties
5
publishms_mapserver_mapname=Map name
6
publishms_mapserver_url=URL
7
publishms_mapserver_mapfile=Configuration file
8
publishms_name=Name
9
publishms_mapserver_imagepath=Temp directory
10
publishms_mapserver_shapepath=ShapePath
11
publishms_change_view_message=Restart the application in order to apply changes
12
publishms_restart=Restart application
13
publishms_publish_view=Publication GUI
14
publishms_publish_mapserver=Mapserver publication
15
#mapserver layer properties
16
publishms_mapserver_layer_properties=Mapserver layer properties
17
publishms_mosaic=Image Mosaic
18
#publish message
19
publishms_publish_message=Publication generated successfully.\nData sources must be accessible by the user who executes the Mapserver CGI.\nFurthermore, any password can be read in the mapfile !!
20
publihsms_permission_denied=Cannot generate the configuration files. Permission denied.
0 21

  
publish/branches/extremadura/extPublishMapserver/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<depends plugin-name="com.iver.cit.gvsig" />
4
	<depends plugin-name="org.gvsig.publish" />
5
	<libraries library-dir="."/>
6
	<resourceBundle name="text"/>
7
	<extensions>
8
		<extension class-name="org.gvsig.publish.mapserver.MapserverExtension"
9
			description="MapserverPublish Extension"
10
			active="true"
11
			priority="1">
12
		</extension>		
13
		<extension class-name="org.gvsig.publish.mapserver.ExportMapfileExtension"
14
			description="It creates a mapfile from a view"
15
			active="false">
16
			<menu text="Vista/export/mapfile"/>
17
		</extension>
18
	</extensions>
19
</plugin-config>
0 20

  
publish/branches/extremadura/extPublishMapserver/config/text_de.properties
1
#mapserver_text_de.properties
2
publishms_change_view_message=Anwendung neustarten, damit die \u00C4nderungen wirksam werden
3
publishms_change_view_properties=Anwendung neustarten, damit die \u00C4nderungen wirksam werden
4
publishms_debug=Fehler beseitigen
5
publishms_mapserver_imagepath=Tempor\u00E4res Verzeichnis
6
publishms_mapserver_layer_properties=Mapserver Layer Eigenschaften
7
publishms_mapserver_mapfile=Konfigurationsdatei
8
publishms_mapserver_mapname=Name der Karte
9
publishms_mapserver_properties=Mapserver Eigenschaften
10
publishms_publish_message=Publikation erfolgreich abgeschlossen.\nDie Originaldateien m\u00FCssen dem Anwender, der die Mapserver CGI aufruft, frei zug\u00E4nglich sein.\nAchtung\: Jedes Passwort kann in den erzeugten Dateien lesbar sein\!\!
11
publishms_mapserver_shapepath=Shape- Pfad
12
publishms_mapserver_url=URL
13
publishms_mosaic=Imagekatalog
14
publishms_name=Name
15
publishms_nothing_to_publish=Nichts zum publizieren. F\u00FCgen sie die entsprechenden Dateien hinzu.
16
publishms_publish_mapserver=Mapserver Publikation
17
publishms_publish_view=GUI Publikation
18
publishms_restart=neu starten
19
publishms_the_mapfile_is_not_defined=Datei ausw\u00E4hlen wohin die Konfigurationsdatei generiert werden soll.
0 20

  
publish/branches/extremadura/extPublishMapserver/src/org/gvsig/publish/mapserver/util/MapserverUtilities.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff