Revision 6055

View differences:

trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/spatialjoin/SpatialJoinGeoprocessPlugin.java
1
/*
2
 * Created on 26-jun-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
*
46
* $Id$
47
* $Log$
48
* Revision 1.1  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
*
52
*/
53
package com.iver.cit.gvsig.geoprocess.impl.spatialjoin;
54

  
55
import java.net.URL;
56

  
57
import org.cresques.cts.IProjection;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.FMap;
61
import com.iver.cit.gvsig.fmap.layers.FLayers;
62
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessController;
63
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
64
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
65
import com.iver.cit.gvsig.geoprocess.impl.spatialjoin.gui.GeoProcessingSpatialjoinPanel;
66
import com.iver.cit.gvsig.gui.View;
67

  
68
public class SpatialJoinGeoprocessPlugin implements IGeoprocessPlugin {
69

  
70
	public IGeoprocessPanel getGeoprocessPanel() {
71
		View vista = (View)PluginServices.getMDIManager().getActiveView();
72
		FMap mapContext = vista.getModel().getMapContext();
73
        FLayers layers = mapContext.getLayers();
74
        IProjection proj = mapContext.getProjection();
75
        GeoProcessingSpatialjoinPanel dataSelectionPanel = 
76
			new GeoProcessingSpatialjoinPanel(layers);
77
        return dataSelectionPanel;
78
	}
79

  
80
	public URL getHtmlDescription() {
81
		return SpatialJoinGeoprocessPlugin.class.
82
		getResource("resources/description.html");
83
	}
84

  
85
	public URL getImgDescription() {
86
		return SpatialJoinGeoprocessPlugin.class.
87
		getResource("resources/spatialjoindesc.png");
88
	}
89

  
90
	public IGeoprocessController getGpController() {
91
		return new SpatialJoinGeoprocessController();
92
	}
93

  
94
	public String getNamespace() {
95
		return "Analisis/Proximidad/Spatial Join";
96
	}
97

  
98
	public String toString(){
99
		return "Spatial Join";
100
	}
101

  
102
}
103

  
0 104

  
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/merge/MergeGeoprocessPlugin.java
1
/*
2
 * Created on 26-jun-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
*
46
* $Id$
47
* $Log$
48
* Revision 1.1  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
*
52
*/
53
package com.iver.cit.gvsig.geoprocess.impl.merge;
54

  
55
import java.net.URL;
56

  
57
import org.cresques.cts.IProjection;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.FMap;
61
import com.iver.cit.gvsig.fmap.layers.FLayers;
62
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessController;
63
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
64
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
65
import com.iver.cit.gvsig.geoprocess.impl.merge.gui.GeoProcessingMergePanel;
66
import com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager;
67
import com.iver.cit.gvsig.gui.View;
68

  
69
public class MergeGeoprocessPlugin implements IGeoprocessPlugin {
70
	static{
71
		GeoprocessManager.
72
		registerPackageDescription("Conversion de datos",
73
				"Procesos encargados de transformar y producir datos");
74
	}
75
	public IGeoprocessPanel getGeoprocessPanel() {
76
		View vista = (View)PluginServices.getMDIManager().getActiveView();
77
		FMap mapContext = vista.getModel().getMapContext();
78
        FLayers layers = mapContext.getLayers();
79
        IProjection proj = mapContext.getProjection();
80
		GeoProcessingMergePanel dataSelectionPanel = 
81
			new GeoProcessingMergePanel(layers);
82
		return dataSelectionPanel;
83
	}
84

  
85
	public URL getHtmlDescription() {
86
		return MergeGeoprocessPlugin.class.
87
		getResource("resources/description.html");
88
	}
89

  
90
	public URL getImgDescription() {
91
		return MergeGeoprocessPlugin.class.
92
		getResource("resources/mergedesc.png");
93
	}
94

  
95
	public IGeoprocessController getGpController() {
96
		return new MergeGeoprocessController();
97
	}
98

  
99
	public String getNamespace() {
100
		return "Conversion de datos/Merge";
101
	}
102

  
103
	public String toString(){
104
		return "Merge";
105
	}
106

  
107
}
108

  
0 109

  
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/intersection/IntersectionGeoprocessPlugin.java
1
/*
2
 * Created on 26-jun-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
*
46
* $Id$
47
* $Log$
48
* Revision 1.1  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
*
52
*/
53
package com.iver.cit.gvsig.geoprocess.impl.intersection;
54

  
55
import java.net.URL;
56

  
57
import org.cresques.cts.IProjection;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.FMap;
61
import com.iver.cit.gvsig.fmap.layers.FLayers;
62
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessController;
63
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
64
import com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel;
65
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
66
import com.iver.cit.gvsig.geoprocess.impl.clip.ClipGeoprocessPlugin;
67
import com.iver.cit.gvsig.gui.View;
68

  
69
public class IntersectionGeoprocessPlugin implements IGeoprocessPlugin {
70

  
71
	public IGeoprocessPanel getGeoprocessPanel() {
72
		View vista = (View)PluginServices.getMDIManager().getActiveView();
73
		FMap mapContext = vista.getModel().getMapContext();
74
        FLayers layers = mapContext.getLayers();
75
        IProjection proj = mapContext.getProjection();
76
        String titleText = PluginServices.getText(this,
77
		"Interseccion._Introduccion_de_datos");
78
        GeoProcessingOverlayPanel dataSelectionPanel = 
79
			new GeoProcessingOverlayPanel(layers, titleText);
80
        return dataSelectionPanel;
81
	}
82

  
83
	public URL getHtmlDescription() {
84
		return IntersectionGeoprocessPlugin.class.
85
		getResource("resources/description.html");
86
	}
87

  
88
	public URL getImgDescription() {
89
		return IntersectionGeoprocessPlugin.class.
90
		getResource("resources/intersectdesc.png");
91
	}
92

  
93
	public IGeoprocessController getGpController() {
94
		return new IntersectionGeoprocessController();
95
	}
96

  
97
	public String getNamespace() {
98
		return "Analisis/Overlay/Interseccion";
99
	}
100

  
101
	public String toString(){
102
		return "Interseccion";
103
	}
104

  
105
}
106

  
0 107

  
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/clip/ClipGeoprocessPlugin.java
45 45
*
46 46
* $Id$
47 47
* $Log$
48
* Revision 1.1  2006-06-23 19:02:35  azabala
48
* Revision 1.2  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
* Revision 1.1  2006/06/23 19:02:35  azabala
49 52
* first version in cvs
50 53
*
51 54
* Revision 1.1  2006/06/22 17:46:30  azabala
......
56 59
package com.iver.cit.gvsig.geoprocess.impl.clip;
57 60

  
58 61
import java.net.URL;
59
import java.util.TreeMap;
60 62

  
61 63
import com.iver.andami.PluginServices;
62 64
import com.iver.cit.gvsig.fmap.layers.FLayers;
......
64 66
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
65 67
import com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel;
66 68
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
67
import com.iver.cit.gvsig.geoprocess.impl.buffer.BufferGeoprocessPlugin;
68
import com.iver.cit.gvsig.geoprocess.impl.buffer.gui.GeoProcessingBufferPanel;
69
import com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager;
69 70
import com.iver.cit.gvsig.gui.View;
70 71

  
71 72
public class ClipGeoprocessPlugin implements IGeoprocessPlugin {
72
	static TreeMap descriptions = new TreeMap();
73 73
	static{
74
		descriptions.put("Recorte", 
75
				"Geoprocesos que permiten "+
76
				"extraer nueva informaci?n "+
77
				"de informaci?n ya existente");
78
		descriptions.put("Recorte/Overlay",
79
				"Geoprocesos que realizan "+
80
				"el cruce mediante "+
81
				"interseccion de dos capas");
74
		GeoprocessManager.registerPackageDescription(
75
		"Analisis/Overlay",
76
				"Geoprocesos que extraen "+
77
				"informaci?n basandose en "+
78
				"la superposici?n de dos capas");
82 79
	}
80
	
83 81
	public IGeoprocessPanel getGeoprocessPanel() {
84 82
		View vista = (View)PluginServices.
85 83
			getMDIManager().
......
108 106
	}
109 107

  
110 108
	public String getNamespace() {
111
		return "Recorte/Overlay/Clip";
109
		return "Analisis/Overlay/Clip";
112 110
	}
113 111

  
114
	public String getDescriptionForPackage(String name) {
115
		return (String) descriptions.get(name);
116
	}
117
	
118 112
	public String toString(){
119 113
		return "Clip";
120 114
	}
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/convexhull/ConvexHullGeoprocessPlugin.java
45 45
*
46 46
* $Id$
47 47
* $Log$
48
* Revision 1.1  2006-06-23 19:02:56  azabala
48
* Revision 1.2  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
* Revision 1.1  2006/06/23 19:02:56  azabala
49 52
* first version in cvs
50 53
*
51 54
*
......
65 68
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
66 69
import com.iver.cit.gvsig.geoprocess.impl.clip.ClipGeoprocessPlugin;
67 70
import com.iver.cit.gvsig.geoprocess.impl.convexhull.gui.GeoProcessingConvexHullPanel;
71
import com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager;
68 72
import com.iver.cit.gvsig.gui.View;
69 73

  
70 74
public class ConvexHullGeoprocessPlugin implements IGeoprocessPlugin {
71 75
	static TreeMap descriptions = new TreeMap();
72 76
	static{
73
		descriptions.put("Analisis", 
77
		GeoprocessManager.registerPackageDescription("Analisis", 
74 78
				"Geoprocesos que permiten "+
75 79
				"extraer nueva informaci?n "+
76 80
				"de informaci?n ya existente");
77
		descriptions.put("Analisis/GC",
81
		GeoprocessManager.registerPackageDescription("Analisis/GC",
78 82
				"Geoprocesos que realizan "+
79 83
				"geometria computacional ");
80 84
	}
......
106 110
		return "Analisis/GC/Convex Hull";
107 111
	}
108 112

  
109
	public String getDescriptionForPackage(String name) {
110
		return (String) descriptions.get(name);
111
	}
112
	
113 113
	public String toString(){
114 114
		return "Convex Hull";
115 115
	}
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/dissolve/DissolveGeoprocessPlugin.java
1
/*
2
 * Created on 26-jun-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
*
46
* $Id$
47
* $Log$
48
* Revision 1.1  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
*
52
*/
53
package com.iver.cit.gvsig.geoprocess.impl.dissolve;
54

  
55
import java.net.URL;
56

  
57
import org.cresques.cts.IProjection;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.FMap;
61
import com.iver.cit.gvsig.fmap.layers.FLayers;
62
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessController;
63
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
64
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
65
import com.iver.cit.gvsig.geoprocess.impl.dissolve.gui.GeoProcessingDissolvePanel;
66
import com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager;
67
import com.iver.cit.gvsig.gui.View;
68

  
69
public class DissolveGeoprocessPlugin implements IGeoprocessPlugin {
70
	static{
71
		GeoprocessManager.
72
		registerPackageDescription("Analisis/Agregacion",
73
				"Las clases de este directorio transforman "+
74
				"datos de entrada, de mayor detalle, en datos resumidos");
75
	}
76
	public IGeoprocessPanel getGeoprocessPanel() {
77
		View vista = (View)PluginServices.getMDIManager().getActiveView();
78
		FMap mapContext = vista.getModel().getMapContext();
79
        FLayers layers = mapContext.getLayers();
80
        IProjection proj = mapContext.getProjection();
81
        GeoProcessingDissolvePanel dataSelectionPanel = 
82
			new GeoProcessingDissolvePanel(layers);
83
        return dataSelectionPanel;
84
	}
85

  
86
	public URL getHtmlDescription() {
87
		return DissolveGeoprocessPlugin.class.
88
		getResource("resources/description.html");
89
	}
90

  
91
	public URL getImgDescription() {
92
		return DissolveGeoprocessPlugin.class.
93
		getResource("resources/dissolvedesc.png");
94
	}
95

  
96
	public IGeoprocessController getGpController() {
97
		return new DissolveGeoprocessController();
98
	}
99

  
100
	public String getNamespace() {
101
		return "Analisis/Agregacion/Dissolve";
102
	}
103

  
104
	public String toString(){
105
		return "Dissolve";
106
	}
107

  
108
}
109

  
0 110

  
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/union/UnionGeoprocessPlugin.java
1
/*
2
 * Created on 26-jun-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
*
46
* $Id$
47
* $Log$
48
* Revision 1.1  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
*
52
*/
53
package com.iver.cit.gvsig.geoprocess.impl.union;
54

  
55
import java.net.URL;
56

  
57
import org.cresques.cts.IProjection;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.FMap;
61
import com.iver.cit.gvsig.fmap.layers.FLayers;
62
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessController;
63
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
64
import com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel;
65
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
66
import com.iver.cit.gvsig.geoprocess.impl.intersection.IntersectionGeoprocessPlugin;
67
import com.iver.cit.gvsig.gui.View;
68

  
69
public class UnionGeoprocessPlugin implements IGeoprocessPlugin {
70

  
71
	public IGeoprocessPanel getGeoprocessPanel() {
72
		View vista = (View)PluginServices.getMDIManager().getActiveView();
73
		FMap mapContext = vista.getModel().getMapContext();
74
        FLayers layers = mapContext.getLayers();
75
        IProjection proj = mapContext.getProjection();
76
        String titleText = PluginServices.getText(this,
77
		"Union._Introduccion_de_datos");
78
        GeoProcessingOverlayPanel dataSelectionPanel = 
79
			new GeoProcessingOverlayPanel(layers, titleText);
80
        return dataSelectionPanel;
81
	}
82

  
83
	public URL getHtmlDescription() {
84
		return UnionGeoprocessPlugin.class.
85
		getResource("resources/description.html");
86
	}
87

  
88
	public URL getImgDescription() {
89
		return UnionGeoprocessPlugin.class.
90
		getResource("resources/uniondesc.png");
91
	}
92

  
93
	public IGeoprocessController getGpController() {
94
		return new UnionGeoprocessController();
95
	}
96

  
97
	public String getNamespace() {
98
		return "Analisis/Overlay/Union";
99
	}
100

  
101
	public String toString(){
102
		return "Union";
103
	}
104

  
105
}
106

  
0 107

  
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/buffer/BufferGeoprocessPlugin.java
45 45
*
46 46
* $Id$
47 47
* $Log$
48
* Revision 1.1  2006-06-23 19:02:35  azabala
48
* Revision 1.2  2006-06-27 16:11:41  azabala
49
* toString() added to Plugin interface to force textual representation of geoprocess plugins
50
*
51
* Revision 1.1  2006/06/23 19:02:35  azabala
49 52
* first version in cvs
50 53
*
51 54
* Revision 1.1  2006/06/22 17:46:30  azabala
......
56 59
package com.iver.cit.gvsig.geoprocess.impl.buffer;
57 60

  
58 61
import java.net.URL;
59
import java.util.TreeMap;
60 62

  
61 63
import com.iver.andami.PluginServices;
62 64
import com.iver.cit.gvsig.fmap.layers.FLayers;
......
64 66
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
65 67
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
66 68
import com.iver.cit.gvsig.geoprocess.impl.buffer.gui.GeoProcessingBufferPanel;
69
import com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager;
67 70
import com.iver.cit.gvsig.gui.View;
68 71

  
69 72
public class BufferGeoprocessPlugin implements IGeoprocessPlugin {
70 73

  
71
	//TODO REVISAR ESTO PARA QUE SEA COMUN A TODOS
72
	//LOS GEOPROCESOS, Y DEFINIR PRIORIDADES PARA
73
	//QUE LAS DESCRIPCIONES DE UN GEOPROCESO
74
	//NO MACHAQUEN A LAS DE OTRO
75
	static TreeMap descriptions = new TreeMap();
76 74
	static{
77
		descriptions.put("Analisis", 
75
		GeoprocessManager.registerPackageDescription("Analisis", 
78 76
				"Geoprocesos que permiten "+
79 77
				"extraer nueva informaci?n "+
80 78
				"de informaci?n ya existente");
81
		descriptions.put("Analisis/Proximidad",
79
		GeoprocessManager.
80
		registerPackageDescription("Analisis/Proximidad",
82 81
				"Geoprocesos que realizan "+
83 82
				"an?lisis de proximidad o corredor");
84 83
	}
......
116 115
		return "Analisis/Proximidad/Buffer";
117 116
	}
118 117

  
119
	public String getDescriptionForPackage(String name) {
120
		return (String) descriptions.get(name);
121
	}
122
	
123 118
	public String toString(){
124 119
		return "Buffer";
125 120
	}
trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/difference/DifferenceGeoprocessPlugin.java
1
/*
2
 * Created on 26-jun-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
 *
46
 * $Id$
47
 * $Log$
48
 * Revision 1.1  2006-06-27 16:11:41  azabala
49
 * toString() added to Plugin interface to force textual representation of geoprocess plugins
50
 *
51
 *
52
 */
53
package com.iver.cit.gvsig.geoprocess.impl.difference;
54

  
55
import java.net.URL;
56

  
57
import org.cresques.cts.IProjection;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.FMap;
61
import com.iver.cit.gvsig.fmap.layers.FLayers;
62
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessController;
63
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin;
64
import com.iver.cit.gvsig.geoprocess.core.gui.GeoProcessingOverlayPanel;
65
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel;
66
import com.iver.cit.gvsig.geoprocess.impl.clip.ClipGeoprocessPlugin;
67
import com.iver.cit.gvsig.geoprocess.impl.convexhull.gui.GeoProcessingConvexHullPanel;
68
import com.iver.cit.gvsig.gui.View;
69

  
70
/**
71
 * Plugin to register Difference Geoprocess
72
 * 
73
 * @author azabala
74
 * 
75
 */
76
public class DifferenceGeoprocessPlugin implements IGeoprocessPlugin {
77

  
78
	public IGeoprocessPanel getGeoprocessPanel() {
79
		View vista = (View) PluginServices.getMDIManager().getActiveView();
80
		FLayers layers = vista.getModel().getMapContext().getLayers();
81
		String titleText = PluginServices.getText(this,
82
				"Diferencia_Introduccion_de_datos")
83
				+ ":";
84
		return new GeoProcessingOverlayPanel(layers, titleText);
85
	}
86

  
87
	public URL getHtmlDescription() {
88
		return DifferenceGeoprocessPlugin.class.
89
		getResource("resources/description.html");
90
	}
91

  
92
	public URL getImgDescription() {
93
		return DifferenceGeoprocessPlugin.class.
94
		getResource("resources/differencedesc.png");
95
	}
96

  
97
	public IGeoprocessController getGpController() {
98
		return new DifferenceGeoprocessController();
99
	}
100

  
101
	public String getNamespace() {
102
		return "Analisis/Overlay/Diferencia";
103
	}
104

  
105
	public String getDescriptionForPackage(String name) {
106
		return "";
107
	}
108
	
109
	public String toString(){
110
		return "Difference";
111
	}
112

  
113
}
0 114

  

Also available in: Unified diff