Revision 41408

View differences:

tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/buildNumber.properties
1
#Tue May 27 17:30:32 EDT 2014
2
buildNumber=2110
0 3

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/test/resources/README.txt
1
Put into this folder the resources needed by your test classes.
2

  
3
This folder is added to the Tests classpath, so you can load any resources 
4
through the ClassLoader.
5

  
6
By default, in this folder you can find an example of log4j configuration,
7
prepared to log messages through the console, so logging works when you
8
run your tests classes.
0 9

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/test/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2013 gvSIG Association.
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 3
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., 51 Franklin Street, Fifth Floor, Boston,
21
    MA  02110-1301, USA.
22

  
23
    For any additional information, do not hesitate to contact us
24
    at info AT gvsig.com, or visit our website www.gvsig.com.
25

  
26
-->
27
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
28

  
29
<!-- 
30
Log4J configuration file for unit tests execution.
31
 -->
32
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
33

  
34
	<!-- Appender configuration to show logging messages through the console -->
35
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
36
		<layout class="org.apache.log4j.PatternLayout">
37
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
38
		</layout>
39
	</appender>
40

  
41
	<!-- 
42
	Activate logging messages of DEBUG level of higher only for the
43
	org.gvsig.tools packages.
44
	You can put full classes names or packages instead, to configure
45
	logging for all the classes and subpackages of the package.
46
	-->
47
	<category name="org.gvsig.tools">
48
		<priority value="DEBUG" />
49
	</category>
50
	<category name="org.gvsig.geometrymeasurement">
51
		<priority value="DEBUG" />
52
	</category>
53

  
54
	<!-- 
55
	By default, show only logging messages of INFO level or higher, 
56
	through the previously configured CONSOLE appender. 
57
	-->
58
	<root>
59
		<priority value="INFO" />
60
		<appender-ref ref="CONSOLE" />
61
	</root>
62
</log4j:configuration>
0 63

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 gvSIG Association.
6

  
7
    This program is free software; you can redistribute it and/or
8
    modify it under the terms of the GNU General Public License
9
    as published by the Free Software Foundation; either version 3
10
    of the License, or (at your option) any later version.
11

  
12
    This program is distributed in the hope that it will be useful,
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU General Public License for more details.
16

  
17
    You should have received a copy of the GNU General Public License
18
    along with this program; if not, write to the Free Software
19
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
    MA  02110-1301, USA.
21

  
22
    For any additional information, do not hesitate to contact us
23
    at info AT gvsig.com, or visit our website www.gvsig.com.
24

  
25
-->
26
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${project.artifactId}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/${project.artifactId}-${project.version}.jar</source>
36
      <outputDirectory>lib</outputDirectory>
37
    </file>
38
    <file>
39
      <source>target/package.info</source>
40
    </file>
41
  </files>
42

  
43
  <fileSets>
44
    <fileSet>
45
      <directory>src/main/resources-plugin</directory>
46
      <outputDirectory>.</outputDirectory>
47
    </fileSet>
48
  </fileSets>
49

  
50
<!--
51
  <dependencySets>
52
    <dependencySet>
53
      <useProjectArtifact>false</useProjectArtifact>
54
      <useTransitiveDependencies>false</useTransitiveDependencies>
55
      <outputDirectory>lib</outputDirectory>
56
      <includes>
57
        <include>groupId:artifactId</include>
58
      </includes>
59
    </dependencySet>
60
  </dependencySets>
61
-->
62
</assembly>
63

  
0 64

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/java/org/gvsig/geometrymeasurement/app/extension/AbstractGeometryMeasurementExtension.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.geometrymeasurement.app.extension;
25

  
26
import java.awt.Component;
27
import java.util.Locale;
28

  
29
import javax.swing.JOptionPane;
30

  
31
import org.slf4j.Logger;
32
import org.slf4j.LoggerFactory;
33

  
34
import org.gvsig.andami.PluginServices;
35
import org.gvsig.andami.messages.NotificationManager;
36
import org.gvsig.andami.plugins.Extension;
37
import org.gvsig.andami.ui.mdiManager.IWindow;
38
import org.gvsig.app.ApplicationLocator;
39
import org.gvsig.app.project.documents.table.TableDocument;
40
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel;
41
import org.gvsig.fmap.dal.exception.DataException;
42
import org.gvsig.fmap.dal.exception.ReadException;
43
import org.gvsig.fmap.dal.feature.FeatureStore;
44
import org.gvsig.fmap.dal.feature.FeatureType;
45
import org.gvsig.fmap.geom.type.GeometryType;
46
import org.gvsig.i18n.Messages;
47

  
48
/**
49
 * Abstract class for Geometry measurement operations extensions.
50
 * 
51
 * @author gvSIG Team
52
 * @version $Id$
53
 */
54
public abstract class AbstractGeometryMeasurementExtension extends Extension {
55

  
56
    private static final Logger LOG = LoggerFactory
57
        .getLogger(AbstractGeometryMeasurementExtension.class);
58
    
59
    //Just to know if the resources has been initialized
60
    private static boolean isInitialized = false;
61
       
62
    public void initialize() {
63
        if (!isInitialized){
64
            isInitialized = true;
65
        }        
66
    }
67

  
68
    public boolean isEnabled() {
69
        TableDocument tableDocument;
70
        String name = "unknow";
71
        try {
72
            tableDocument = getActiveTableDocument();
73
            if (tableDocument != null) {
74
                name = tableDocument.getName();
75
            	return (tableDocument != null && tableDocument.getStore().allowWrite());
76
            }
77
        } catch (Throwable e) {
78
            LOG.info("Error accesing to the table document ("+name+")", e);
79
        }
80
        return false;
81
    }
82

  
83
    public final boolean isVisible() {
84
        TableDocument tableDocument;
85
        String name = "unknow";
86
        try {
87
            tableDocument = getActiveTableDocument();
88
            if (tableDocument != null) {
89
                name = tableDocument.getName();
90
                return isVisibleForTable(tableDocument);
91
            }
92
        } catch (Throwable e) {
93
            LOG.info("Error accesing to the table document ("+name+")", e);
94
        }       
95
        return false;
96
    }
97

  
98
    /**
99
     * Returns if the current extension is visible for the provided 
100
     * table.
101
     * 
102
     * The provided table will be always non null.
103
     * 
104
     * @param layer
105
     *            the active table
106
     * @return if the extension is visible
107
     */
108
    protected abstract boolean isVisibleForTable(TableDocument tableDocument);
109

  
110
    /**
111
     * Returns the active table document. If the active document is not a table,
112
     * or if the table has not a geometry, return null.
113
     * 
114
     * @return the active table document
115
     * @throws DataException 
116
     */
117
    protected TableDocument getActiveTableDocument() throws DataException {
118
        IWindow window = PluginServices.getMDIManager().getActiveWindow();
119

  
120
        if (window instanceof FeatureTableDocumentPanel) {
121
            FeatureTableDocumentPanel table = (FeatureTableDocumentPanel) window;
122
            TableDocument tableDocument = (TableDocument)table.getDocument();
123
            if (tableDocument.getStore().getDefaultFeatureType().getDefaultGeometryAttribute() != null){
124
                return tableDocument;
125
            }
126
           
127
        }
128
        return null;
129
    }
130

  
131
    protected boolean isStoreOfAnyType(TableDocument tableDocument, int[] geomTypes) {
132
        try {
133
            FeatureType featureType = tableDocument.getStore().getDefaultFeatureType();
134
            GeometryType geometryType = featureType.getDefaultGeometryAttribute().getGeomType();
135
            for (int i = 0; i < geomTypes.length; i++) {
136
                if (geometryType.isTypeOf(geomTypes[i])) {
137
                    return true;
138
                }
139
            }
140
        } catch (ReadException e) {
141
            LOG.error("Error reading the geometry type", e);
142
        } catch (DataException e) {
143
            LOG.error("Error reading the geometry type", e);
144
        }
145
        return false;
146
    }
147

  
148
    public void execute(String actionCommand) {
149
        try {
150
            TableDocument tableDocument = getActiveTableDocument();
151
            if (tableDocument == null) {
152
                return;
153
            }
154
            Component parentWindow = 
155
                (Component)ApplicationLocator.getManager().getUIManager().getActiveWindow();
156
            int addField = JOptionPane.showConfirmDialog(parentWindow, Messages.getText("new_field_query"),
157
                Messages.getText("info"), JOptionPane.YES_NO_OPTION);
158
            
159
            if (addField == JOptionPane.YES_OPTION){
160
                FeatureStore featureStore = tableDocument.getStore();
161
                execute(actionCommand, featureStore);
162
            }
163
        } catch (Exception e) {
164
            LOG.error("Not possible to add the new field", e);
165
            NotificationManager.addError(e);
166
        }
167
    }
168

  
169
    /**
170
     * Executes a command for the given {@link FeatureStore}.
171
     * 
172
     * @param actionCommand
173
     *            to execute
174
     * @param featureStore
175
     *            to use
176
     * @throws Exception
177
     *             if there is an error while executing
178
     */
179
    protected abstract void execute(String actionCommand,
180
        FeatureStore featureStore) throws Exception;
181

  
182
}
0 183

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/java/org/gvsig/geometrymeasurement/app/extension/AddXYPointThemeExtension.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.geometrymeasurement.app.extension;
25

  
26
import org.gvsig.andami.IconThemeHelper;
27
import org.gvsig.andami.PluginServices;
28
import org.gvsig.app.project.documents.table.TableDocument;
29
import org.gvsig.fmap.dal.feature.FeatureStore;
30
import org.gvsig.fmap.geom.Geometry;
31
import org.gvsig.geometrymeasurement.app.extension.utils.Operations;
32

  
33
/**
34
 * Andami extension to show PerimeterMeasurementExtension in the application.
35
 * 
36
 * @author gvSIG Team
37
 * @version $Id$
38
 */
39
public class AddXYPointThemeExtension extends
40
    AbstractGeometryMeasurementExtension {
41

  
42
    public void initialize() {
43
        super.initialize();
44
        IconThemeHelper.registerIcon("action", "table-add-xy", this);
45
    }
46

  
47
    protected void execute(String actionCommand, FeatureStore featureStore)
48
        throws Exception {
49
        new Operations().addXYPoints(featureStore, "X", "Y");
50
    }
51

  
52
    protected boolean isVisibleForTable(TableDocument tableDocument) {
53
        return isStoreOfAnyType(tableDocument, new int[] { Geometry.TYPES.POINT });
54
    }
55
}
0 56

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/java/org/gvsig/geometrymeasurement/app/extension/AreaMeasurementExtension.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.geometrymeasurement.app.extension;
25

  
26
import org.gvsig.andami.IconThemeHelper;
27
import org.gvsig.app.project.documents.table.TableDocument;
28
import org.gvsig.fmap.dal.feature.FeatureStore;
29
import org.gvsig.fmap.geom.Geometry;
30
import org.gvsig.geometrymeasurement.app.extension.utils.Operations;
31

  
32
/**
33
 * Andami extension to show AreaMeasurementExtension in the application.
34
 * 
35
 * @author gvSIG Team
36
 * @version $Id$
37
 */
38
public class AreaMeasurementExtension extends
39
    AbstractGeometryMeasurementExtension {
40

  
41
    public void initialize() {
42
    super.initialize();
43
        IconThemeHelper.registerIcon("action", "table-add-area", this);
44
    }
45

  
46
    @Override
47
    protected void execute(String actionCommand, FeatureStore featureStore)
48
        throws Exception {
49
        new Operations().addDoubleFieldFromOperation(featureStore, "AREA",
50
            "area");
51
    }
52

  
53
    @Override
54
    protected boolean isVisibleForTable(TableDocument tableDocument) {
55
        return isStoreOfAnyType(tableDocument, new int[] { Geometry.TYPES.SURFACE,
56
            Geometry.TYPES.MULTISURFACE });
57
    }
58
}
0 59

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/java/org/gvsig/geometrymeasurement/app/extension/PerimeterMeasurementExtension.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.geometrymeasurement.app.extension;
25

  
26
import org.gvsig.andami.IconThemeHelper;
27
import org.gvsig.andami.PluginServices;
28
import org.gvsig.app.project.documents.table.TableDocument;
29
import org.gvsig.fmap.dal.feature.FeatureStore;
30
import org.gvsig.fmap.geom.Geometry;
31
import org.gvsig.geometrymeasurement.app.extension.utils.Operations;
32

  
33
/**
34
 * Andami extension to show PerimeterMeasurementExtension in the application.
35
 * 
36
 * @author gvSIG Team
37
 * @version $Id$
38
 */
39
public class PerimeterMeasurementExtension extends
40
    AbstractGeometryMeasurementExtension {
41

  
42
    public void initialize() {
43
    	super.initialize();
44
        IconThemeHelper.registerIcon("action", "table-add-perimeter", this);
45
    }
46

  
47
    @Override
48
    protected void execute(String actionCommand, FeatureStore featureStore)
49
        throws Exception {
50
        new Operations().addDoubleFieldFromOperation(featureStore, "PERIMETER",
51
            "perimeter");
52
    }
53

  
54
    @Override
55
    protected boolean isVisibleForTable(TableDocument tableDocument) {
56
        return !isStoreOfAnyType(tableDocument, new int[] { Geometry.TYPES.POINT,
57
            Geometry.TYPES.MULTIPOINT});
58
    }
59

  
60
}
0 61

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/java/org/gvsig/geometrymeasurement/app/extension/utils/Operations.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.geometrymeasurement.app.extension.utils;
25

  
26
import java.util.Iterator;
27

  
28
import org.slf4j.Logger;
29
import org.slf4j.LoggerFactory;
30

  
31
import org.gvsig.app.project.documents.table.TableOperations;
32
import org.gvsig.fmap.dal.exception.DataException;
33
import org.gvsig.fmap.dal.feature.EditableFeature;
34
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
35
import org.gvsig.fmap.dal.feature.EditableFeatureType;
36
import org.gvsig.fmap.dal.feature.Feature;
37
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
38
import org.gvsig.fmap.dal.feature.FeatureSet;
39
import org.gvsig.fmap.dal.feature.FeatureStore;
40
import org.gvsig.fmap.dal.feature.FeatureType;
41
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
42
import org.gvsig.fmap.geom.operation.GeometryOperationException;
43
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException;
44
import org.gvsig.fmap.geom.primitive.Point;
45
import org.gvsig.tools.dataTypes.DataTypes;
46
import org.gvsig.tools.dispose.DisposableIterator;
47

  
48
/**
49
 * Andami extension to show PerimeterMeasurementExtension in the application.
50
 * 
51
 * @author gvSIG Team
52
 * @version $Id$
53
 */
54
public class Operations {
55

  
56
    private static final Logger LOG = LoggerFactory.getLogger(Operations.class);
57

  
58
    private static final int NUM_DECIMALS = 5;
59

  
60
    public void addDoubleFieldFromOperation(FeatureStore featureStore,
61
        String fieldName, String operationName) throws DataException,
62
        GeometryOperationNotSupportedException, GeometryOperationException {
63
        boolean isEditing = false;
64
        if (featureStore.isEditing()) {
65
            isEditing = true;
66
        } else {
67
            featureStore.edit();
68
        }
69

  
70
        featureStore.beginEditingGroup(operationName);
71

  
72
        // Adding the new attribute type
73
        FeatureType featureType = featureStore.getDefaultFeatureType();
74
        EditableFeatureType editableFeatureType = featureType.getEditable();
75

  
76
        String realFieldName = getFieldName(featureStore, fieldName, 0);
77
        EditableFeatureAttributeDescriptor editableFeatureAttributeDescriptor =
78
            editableFeatureType.add(realFieldName, DataTypes.DOUBLE);
79
        editableFeatureAttributeDescriptor.setPrecision(NUM_DECIMALS);
80
        editableFeatureAttributeDescriptor
81
            .setSize(TableOperations.MAX_FIELD_LENGTH);
82

  
83
        featureStore.update(editableFeatureType);
84

  
85
        DisposableIterator disposableIterator = null;
86
        FeatureSet featureSet = null;
87
        try {
88
            // Adding the attribute value
89
            featureSet = featureStore.getFeatureSet();
90
            disposableIterator = featureSet.fastIterator();
91
            while (disposableIterator.hasNext()) {
92
                Feature feature = (Feature) disposableIterator.next();
93
                EditableFeature editableFeature = feature.getEditable();
94
                editableFeature.setDouble(realFieldName, (Double) feature
95
                    .getDefaultGeometry().invokeOperation(operationName, null));
96
                featureSet.update(editableFeature);
97
            }
98
        } finally {
99
            if (disposableIterator != null) {
100
                disposableIterator.dispose();
101
            }
102
            if (featureSet != null) {
103
                featureSet.dispose();
104
            }
105
            try {
106
                featureStore.endEditingGroup();
107
            } catch (NeedEditingModeException e) {
108
                LOG.error("Exception endEditingGroup", e);
109
            }
110
        }
111

  
112
        if (!isEditing) {
113
            featureStore.finishEditing();
114
        }
115
    }
116

  
117
    public String getFieldName(FeatureStore featureStore, String fieldName,
118
        int index) throws DataException {
119
        String fullName = fieldName;
120
        if (index != 0) {
121
            fullName = fullName + index;
122
        }
123
        @SuppressWarnings("unchecked")
124
        Iterator<FeatureAttributeDescriptor> it =
125
            featureStore.getDefaultFeatureType().iterator();
126
        while (it.hasNext()) {
127
            FeatureAttributeDescriptor featureAttributeDescriptor = it.next();
128
            if (featureAttributeDescriptor.getName().equals(fullName)) {
129
                return getFieldName(featureStore, fieldName, index + 1);
130
            }
131
        }
132
        return fullName;
133
    }
134

  
135
    /**
136
     * @param featureStore
137
     * @param string
138
     * @param string2
139
     * @throws DataException
140
     */
141
    public void addXYPoints(FeatureStore featureStore, String xFieldName,
142
        String yFieldName) throws DataException {
143
        boolean isEditing = false;
144
        if (featureStore.isEditing()) {
145
            isEditing = true;
146
        } else {
147
            featureStore.edit();
148
        }
149

  
150
        // Adding the new attribute type
151
        FeatureType featureType = featureStore.getDefaultFeatureType();
152
        EditableFeatureType editableFeatureType = featureType.getEditable();
153

  
154
        String realXFieldName = getFieldName(featureStore, xFieldName, 0);
155
        EditableFeatureAttributeDescriptor editableFeatureAttributeDescriptor =
156
            editableFeatureType.add(realXFieldName, DataTypes.DOUBLE);
157
        editableFeatureAttributeDescriptor.setPrecision(NUM_DECIMALS);
158
        editableFeatureAttributeDescriptor
159
            .setSize(TableOperations.MAX_FIELD_LENGTH);
160

  
161
        String realYFieldName = getFieldName(featureStore, yFieldName, 0);
162
        editableFeatureAttributeDescriptor =
163
            editableFeatureType.add(realYFieldName, DataTypes.DOUBLE);
164
        editableFeatureAttributeDescriptor.setPrecision(NUM_DECIMALS);
165
        editableFeatureAttributeDescriptor
166
            .setSize(TableOperations.MAX_FIELD_LENGTH);
167

  
168
        featureStore.update(editableFeatureType);
169

  
170
        // Adding the attribute value
171
        FeatureSet featureSet = featureStore.getFeatureSet();
172
        DisposableIterator disposableIterator = featureSet.fastIterator();
173
        while (disposableIterator.hasNext()) {
174
            Feature feature = (Feature) disposableIterator.next();
175
            EditableFeature editableFeature = feature.getEditable();
176
            editableFeature.setDouble(realXFieldName,
177
                ((Point) feature.getDefaultGeometry()).getX());
178
            editableFeature.setDouble(realYFieldName,
179
                ((Point) feature.getDefaultGeometry()).getY());
180
            featureSet.update(editableFeature);
181
        }
182

  
183
        featureSet.dispose();
184

  
185
        if (!isEditing) {
186
            featureStore.finishEditing();
187
        }
188

  
189
    }
190

  
191
}
0 192

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/resources-plugin/i18n/text.properties
1
new_field_query=Se van a a?adir nuevos campo en la tabla.\nDesea continuar?
2
perimeter=Per?metro
3
add_x_y=A?adir X e Y
4
_Add_measurement=A?adir medici?n
0 5

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties
1
new_field_query=New fields are going to be added to the table.\nDo you want to continue?
2
perimeter=Perimeter
3
add_x_y=Add X and Y
4
_Add_measurement=Add measure
0 5

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/src/main/resources-plugin/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2013 gvSIG Association.
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 3
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., 51 Franklin Street, Fifth Floor, Boston,
21
    MA  02110-1301, USA.
22

  
23
    For any additional information, do not hesitate to contact us
24
    at info AT gvsig.com, or visit our website www.gvsig.com.
25

  
26
-->
27
<plugin-config>
28
	<depends plugin-name="org.gvsig.app.mainplugin" />
29
    <depends plugin-name="org.gvsig.app.document.table.app.mainplugin" />
30
   	<resourceBundle name="text"/>
31
	<libraries library-dir="lib"/>
32
	<extensions>
33
		<extension class-name="org.gvsig.geometrymeasurement.app.extension.AreaMeasurementExtension"
34
			description="Extension that measures the area of all the polygonos they selected."
35
            active="true">
36

  
37
      		<action name="table-add-area"
38
        		label="area"
39
        		tooltip="area"
40
        		action-command="table-add-area" 
41
        		icon="table-add-area"
42
        		position="500800100" />
43

  
44
      		<menu name="table-add-area" text="Table/_Add_measurement/area" />
45
        	
46
      		<tool-bar name="table-add-measurement">
47
        		<action-tool name="table-add-area"/>
48
      		</tool-bar>
49
		</extension>	
50
		
51
		<extension class-name="org.gvsig.geometrymeasurement.app.extension.PerimeterMeasurementExtension"
52
           description="Extension that measures the perimeter of all the lines they selected."
53
            active="true">
54

  
55
      		<action name="table-add-perimeter"
56
        		label="perimeter"
57
        		tooltip="perimeter"
58
        		action-command="table-add-perimeter" 
59
        		icon="table-add-perimeter"
60
        		position="500800200" />
61

  
62
      		<menu name="table-add-perimeter" text="Table/_Add_measurement/perimeter" />
63
        	
64
      		<tool-bar name="table-add-measurement">
65
        		<action-tool name="table-add-perimeter"/>
66
      		</tool-bar>
67
        </extension>
68
        
69
        <extension class-name="org.gvsig.geometrymeasurement.app.extension.AddXYPointThemeExtension"
70
            description="Extension that add the coordinates x and y."
71
            active="true">
72

  
73
      		<action name="table-add-xy"
74
        		label="add_x_y"
75
        		tooltip="add_x_y"
76
        		action-command="table-add-xy" 
77
        		icon="table-add-xy"
78
        		position="500800300" />
79

  
80
      		<menu name="table-add-xy" text="Table/_Add_measurement/add_x_y" />
81
        	
82
      		<tool-bar name="table-add-measurement">
83
        		<action-tool name="table-add-xy"/>
84
      		</tool-bar>
85
        </extension>    	
86
	</extensions>
87
</plugin-config>
0 88

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/org.gvsig.geometrymeasurement.app.mainplugin/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
  <modelVersion>4.0.0</modelVersion>
5
  <artifactId>org.gvsig.geometrymeasurement.app.mainplugin</artifactId>
6
  <packaging>jar</packaging>
7
  <name>Tools: Geometry measurement</name>
8
  <description>
9
This plugin add three tools to gvSIG:
10
- Add a new attribute to the data source with the geometry area
11
- Add a new attribute to the data source with the geometry perimeter
12
- Add a new attribute to a Point type data source two new columns, one with the X Point value, and another with the Y Point value. 
13
  </description>
14
  <parent>
15
    <groupId>org.gvsig</groupId>
16
    <artifactId>org.gvsig.geometrymeasurement.app</artifactId>
17
    <version>2.0.38</version>
18
  </parent>
19

  
20
  <dependencies>
21
    <dependency>
22
      <groupId>org.gvsig</groupId>
23
      <artifactId>org.gvsig.andami</artifactId>
24
      <scope>provided</scope>
25
    </dependency>
26
    <dependency>
27
      <groupId>org.gvsig</groupId>
28
      <artifactId>org.gvsig.app.mainplugin</artifactId>
29
      <scope>provided</scope>
30
    </dependency>
31
    <dependency>
32
      <groupId>org.gvsig</groupId>
33
      <artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId>
34
      <scope>provided</scope>
35
    </dependency>
36
    <dependency>
37
      <groupId>org.gvsig</groupId>
38
      <artifactId>org.gvsig.i18n</artifactId>
39
      <scope>provided</scope>
40
    </dependency>
41
    <dependency>
42
      <groupId>org.gvsig</groupId>
43
      <artifactId>org.gvsig.tools.lib</artifactId>
44
      <scope>provided</scope>
45
    </dependency>  
46
    <dependency>
47
        <groupId>org.gvsig</groupId>
48
        <artifactId>org.gvsig.fmap.dal.api</artifactId>
49
        <scope>provided</scope>
50
    </dependency>
51
    <dependency>
52
        <groupId>org.gvsig</groupId>
53
        <artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
54
        <scope>provided</scope>
55
    </dependency>
56
    <dependency>
57
        <groupId>org.gvsig</groupId>
58
        <artifactId>org.gvsig.fmap.geometry.api</artifactId>
59
        <scope>provided</scope>
60
    </dependency>
61
    <dependency>
62
        <groupId>org.gvsig</groupId>
63
        <artifactId>org.gvsig.fmap.control</artifactId>
64
        <scope>provided</scope>
65
    </dependency>
66
    <dependency>
67
        <groupId>org.gvsig</groupId>
68
        <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
69
        <scope>provided</scope>
70
    </dependency>
71
    <dependency>
72
        <groupId>org.slf4j</groupId>
73
        <artifactId>slf4j-api</artifactId>
74
        <scope>provided</scope>
75
    </dependency>
76
  </dependencies>
77

  
78
  <build>
79
      <plugins>
80

  
81
        <plugin>
82
          <!-- Skip test execution -->
83
          <groupId>org.apache.maven.plugins</groupId>
84
          <artifactId>maven-surefire-plugin</artifactId>
85
          <configuration>
86
            <skipTests>true</skipTests>
87
          </configuration>
88
        </plugin>
89

  
90
      </plugins>
91
  </build>
92

  
93
  <properties>
94
      <gvsig.package.info.dependencies>required: org.gvsig.app.document.table.app.mainplugin -ge 2.0.1</gvsig.package.info.dependencies>
95
      <gvsig.package.info.categories>View,Vector</gvsig.package.info.categories>
96
      <gvsig.package.info.codealias>org.gvsig.geometrymeasurement.app.extension</gvsig.package.info.codealias>
97
	  <gvsig.package.info.official>true</gvsig.package.info.official>
98
  </properties>
99
</project>
0 100

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.geometrymeasurement.app/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
  <modelVersion>4.0.0</modelVersion>
5
  <artifactId>org.gvsig.geometrymeasurement.app</artifactId>
6
  <packaging>pom</packaging>
7
  <name>${project.artifactId}</name>
8
  <parent>
9
    <groupId>org.gvsig</groupId>
10
    <artifactId>org.gvsig.desktop.plugin</artifactId>
11
    <version>2.0.38</version>
12
  </parent>
13
  
14
  <modules>
15
    <module>org.gvsig.geometrymeasurement.app.mainplugin</module>
16
  </modules>
17

  
18
</project>
0 19

  
tags/org.gvsig.desktop-2.0.38/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <artifactId>org.gvsig.app.mainplugin</artifactId>
5
  <packaging>jar</packaging>
6
  <name>gvSIG Application</name>
7
  <description>This project has the main plugin of gvSIG application</description>
8
  <parent>
9
      <groupId>org.gvsig</groupId>
10
      <artifactId>org.gvsig.app</artifactId>
11
      <version>2.0.38</version>
12
  </parent>
13

  
14
  <dependencies>
15

  
16
      <!-- Dependencias de compilacion aportadas por andami -->
17
      <!-- Ordered by artifactId -->
18
      <dependency>
19
          <groupId>castor</groupId>
20
          <artifactId>castor</artifactId>
21
          <scope>provided</scope>
22
      </dependency>
23
      <dependency>
24
          <groupId>commons-io</groupId>
25
          <artifactId>commons-io</artifactId>
26
          <scope>compile</scope>
27
      </dependency>
28
      <dependency>
29
          <groupId>net.sf</groupId>
30
          <artifactId>flib-jcalendar</artifactId>
31
          <scope>provided</scope>
32
      </dependency>
33
      <dependency>
34
          <groupId>javax.help</groupId>
35
          <artifactId>javahelp</artifactId>
36
          <scope>provided</scope>
37
      </dependency>
38
      <dependency>
39
        <groupId>com.toedter</groupId>
40
        <artifactId>jcalendar</artifactId>
41
        <scope>provided</scope>
42
      </dependency>
43
      <dependency>
44
          <groupId>jfree</groupId>
45
          <artifactId>jcommon</artifactId>
46
          <scope>provided</scope>
47
      </dependency>
48
      <dependency>
49
          <groupId>jwizardcomponent</groupId>
50
          <artifactId>jwizardcomponent</artifactId>
51
          <scope>provided</scope>
52
      </dependency>
53
      <dependency>
54
          <groupId>org.gvsig</groupId>
55
          <artifactId>org.gvsig.andami</artifactId>
56
          <scope>compile</scope>
57
      </dependency>
58
      <dependency>
59
          <groupId>org.gvsig</groupId>
60
          <artifactId>org.gvsig.i18n</artifactId>
61
          <scope>provided</scope>
62
      </dependency>
63
      <dependency>
64
          <groupId>org.gvsig</groupId>
65
          <artifactId>org.gvsig.installer.lib.api</artifactId>
66
          <scope>provided</scope>
67
      </dependency>
68
      <dependency>
69
          <groupId>org.gvsig</groupId>
70
          <artifactId>org.gvsig.jdk.v1_6</artifactId>
71
          <scope>provided</scope>
72
      </dependency>
73
      <dependency>
74
          <groupId>org.gvsig</groupId>
75
          <artifactId>org.gvsig.ui</artifactId>
76
          <scope>provided</scope>
77
      </dependency>
78
      <dependency>
79
          <groupId>org.gvsig</groupId>
80
          <artifactId>org.gvsig.utils</artifactId>
81
          <scope>provided</scope>
82
      </dependency>
83
      <dependency>
84
          <groupId>org.slf4j</groupId>
85
          <artifactId>slf4j-api</artifactId>
86
          <scope>provided</scope>
87
      </dependency>
88

  
89
      <!-- Dependencias de compilacion que debe llevarse el plugin -->
90
      <!-- Ordered by artifactId -->
91

  
92
      <dependency>
93
          <groupId>org.jpedal</groupId>
94
          <artifactId>jpedal_lgpl</artifactId>
95
          <scope>compile</scope>
96
      </dependency>
97
      <dependency>
98
          <groupId>org.gvsig</groupId>
99
          <artifactId>org.gvsig.about.api</artifactId>
100
          <scope>compile</scope>
101
      </dependency>
102
      <dependency>
103
          <groupId>org.gvsig</groupId>
104
          <artifactId>org.gvsig.compat.api</artifactId>
105
          <scope>compile</scope>
106
      </dependency>
107
      <dependency>
108
          <groupId>org.gvsig</groupId>
109
          <artifactId>org.gvsig.projection.cresques.ui</artifactId>
110
          <scope>compile</scope>
111
      </dependency>
112
      <dependency>
113
          <groupId>org.gvsig</groupId>
114
          <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
115
          <scope>compile</scope>
116
      </dependency>
117
      <dependency>
118
          <groupId>org.gvsig</groupId>
119
          <artifactId>org.gvsig.metadata.swing.basic.api</artifactId>
120
          <scope>compile</scope>
121
      </dependency>
122
      <dependency>
123
          <groupId>org.gvsig</groupId>
124
          <artifactId>org.gvsig.fmap.control</artifactId>
125
          <scope>compile</scope>
126
      </dependency>
127
      <dependency>
128
          <groupId>org.gvsig</groupId>
129
          <artifactId>org.gvsig.fmap.dal.api</artifactId>
130
          <scope>compile</scope>
131
      </dependency>
132
      <dependency>
133
          <groupId>org.gvsig</groupId>
134
          <artifactId>org.gvsig.fmap.geometry.api</artifactId>
135
          <scope>compile</scope>
136
      </dependency>
137
      <dependency>
138
          <groupId>org.gvsig</groupId>
139
          <artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
140
          <scope>compile</scope>
141
      </dependency>
142
      <dependency>
143
          <groupId>org.gvsig</groupId>
144
          <artifactId>org.gvsig.projection.api</artifactId>
145
          <scope>compile</scope>
146
      </dependency>
147
      <dependency>
148
          <groupId>org.gvsig</groupId>
149
          <artifactId>org.gvsig.symbology.lib.api</artifactId>
150
          <scope>compile</scope>
151
      </dependency>
152
      <dependency>
153
          <groupId>org.gvsig</groupId>
154
          <artifactId>org.gvsig.symbology.swing.api</artifactId>
155
          <scope>compile</scope>
156
      </dependency>
157
      <dependency>
158
          <groupId>org.gvsig</groupId>
159
          <artifactId>org.gvsig.timesupport.lib.api</artifactId>
160
          <scope>compile</scope>
161
      </dependency>
162
      <dependency>
163
          <groupId>org.gvsig</groupId>
164
          <artifactId>org.gvsig.timesupport.swing.api</artifactId>
165
          <scope>compile</scope>
166
      </dependency>
167
      <dependency>
168
          <groupId>org.gvsig</groupId>
169
          <artifactId>org.gvsig.tools.lib</artifactId>
170
          <scope>compile</scope>
171
      </dependency>
172
      <dependency>
173
          <groupId>org.gvsig</groupId>
174
          <artifactId>org.gvsig.tools.evaluator.sqljep</artifactId>
175
          <scope>compile</scope>
176
      </dependency>
177
      <dependency>
178
          <groupId>org.gvsig</groupId>
179
          <artifactId>org.gvsig.tools.swing.api</artifactId>
180
          <scope>compile</scope>
181
      </dependency>
182
      <dependency>
183
          <groupId>zql</groupId>
184
          <artifactId>zql</artifactId>
185
          <scope>compile</scope>
186
      </dependency>
187

  
188
      <!-- Dependecias de compilacon que no deberia tener -->
189

  
190
      <dependency>
191
          <groupId>org.gvsig</groupId>
192
          <artifactId>org.gvsig.fmap.dal.file.lib</artifactId>
193
          <scope>compile</scope>
194
      </dependency>
195
<!--       <dependency> -->
196
<!--           <groupId>org.gvsig</groupId> -->
197
<!--           <artifactId>org.gvsig.fmap.dal.file.shp</artifactId> -->
198
<!--           <scope>compile</scope> -->
199
<!--       </dependency> -->
200
      <dependency>
201
          <groupId>org.gvsig</groupId>
202
          <artifactId>org.gvsig.symbology.lib.impl</artifactId>
203
          <scope>compile</scope>
204
      </dependency>
205
      <dependency>
206
          <groupId>org.gvsig</groupId>
207
          <artifactId>org.gvsig.symbology.swing.impl</artifactId>
208
          <scope>compile</scope>
209
      </dependency>
210
      <dependency>
211
          <groupId>org.gvsig</groupId>
212
          <artifactId>org.gvsig.fmap.dal.spi</artifactId>
213
          <scope>compile</scope>
214
      </dependency>
215
<!--       <dependency> -->
216
<!--           <groupId>org.gvsig</groupId> -->
217
<!--           <artifactId>org.gvsig.fmap.dal.file.dbf</artifactId> -->
218
<!--           <scope>compile</scope> -->
219
<!--       </dependency> -->
220

  
221
      <!-- Dependencias de runtime -->
222
      <!-- Ordered by artifactId -->
223

  
224
      <dependency>
225
        <groupId>com.vividsolutions</groupId>
226
        <artifactId>jts</artifactId>
227
        <scope>compile</scope>
228
      </dependency>
229
      <dependency>
230
          <groupId>org.gvsig</groupId>
231
          <artifactId>org.gvsig.about.impl</artifactId>
232
          <scope>runtime</scope>
233
      </dependency>
234
      <dependency>
235
          <groupId>org.gvsig</groupId>
236
          <artifactId>org.gvsig.compat.se</artifactId>
237
          <scope>runtime</scope>
238
      </dependency>
239
      <dependency>
240
          <groupId>org.gvsig</groupId>
241
          <artifactId>org.gvsig.fmap.dal.impl</artifactId>
242
          <scope>runtime</scope>
243
      </dependency>
244
      <dependency>
245
          <groupId>org.gvsig</groupId>
246
          <artifactId>org.gvsig.fmap.geometry.impl</artifactId>
247
          <scope>runtime</scope>
248
      </dependency>
249
      <dependency>
250
          <groupId>org.gvsig</groupId>
251
          <artifactId>org.gvsig.fmap.geometry.operation</artifactId>
252
          <scope>runtime</scope>
253
      </dependency>
254
      <dependency>
255
          <groupId>org.gvsig</groupId>
256
          <artifactId>org.gvsig.fmap.mapcontext.impl</artifactId>
257
          <scope>runtime</scope>
258
      </dependency>
259
      <dependency>
260
          <groupId>org.gvsig</groupId>
261
          <artifactId>org.gvsig.fmap.mapcontext.operation</artifactId>
262
          <scope>runtime</scope>
263
      </dependency>
264
      <dependency>
265
          <groupId>org.gvsig</groupId>
266
          <artifactId>org.gvsig.metadata.lib.basic.impl</artifactId>
267
          <scope>runtime</scope>
268
      </dependency>
269
      <dependency>
270
          <groupId>org.gvsig</groupId>
271
          <artifactId>org.gvsig.metadata.swing.basic.impl</artifactId>
272
          <scope>runtime</scope>
273
      </dependency>
274

  
275
      <dependency>
276
          <groupId>org.gvsig</groupId>
277
          <artifactId>org.gvsig.remoteclient</artifactId>
278
          <scope>runtime</scope>
279
      </dependency>
280
       <dependency>
281
          <groupId>org.gvsig</groupId>
282
          <artifactId>org.gvsig.timesupport.lib.impl</artifactId>
283
          <scope>runtime</scope>
284
      </dependency>
285
       <dependency>
286
          <groupId>org.gvsig</groupId>
287
          <artifactId>org.gvsig.timesupport.swing.impl</artifactId>
288
          <scope>runtime</scope>
289
      </dependency>
290
      <dependency>
291
          <groupId>org.gvsig</groupId>
292
          <artifactId>org.gvsig.fmap.dal.db.lib</artifactId>
293
          <scope>runtime</scope>
294
      </dependency>
295
      <dependency>
296
          <groupId>org.gvsig</groupId>
297
          <artifactId>org.gvsig.fmap.dal.db.jdbc</artifactId>
298
          <scope>runtime</scope>
299
      </dependency>
300

  
301

  
302

  
303

  
304
      <dependency>
305
        <groupId>com.sun</groupId>
306
        <artifactId>jimi</artifactId>
307
        <scope>runtime</scope>
308
      </dependency>
309
      <dependency>
310
        <groupId>hsqldb</groupId>
311
        <artifactId>hsqldb</artifactId>
312
        <scope>runtime</scope>
313
      </dependency>
314
      <dependency>
315
        <groupId>java3d</groupId>
316
        <artifactId>vecmath</artifactId>
317
        <scope>runtime</scope>
318
      </dependency>
319
       <dependency>
320
        <groupId>joda-time</groupId>
321
        <artifactId>joda-time</artifactId>              
322
        <scope>runtime</scope>
323
      </dependency>
324
      <dependency>
325
	  	<groupId>net.sf</groupId>
326
	  	<artifactId>jsi</artifactId>
327
      	<scope>runtime</scope>
328
	  </dependency>
329
	  <dependency>
330
		<groupId>gnu.trove</groupId>
331
		<artifactId>trove</artifactId>
332
		<scope>runtime</scope>
333
	  </dependency>
334
      <dependency>
335
        <groupId>net.sf</groupId>
336
        <artifactId>sqljep</artifactId>
337
        <scope>runtime</scope>
338
      </dependency>
339
      <dependency>
340
          <groupId>org.apache.xmlgraphics</groupId>
341
          <artifactId>batik-awt-util</artifactId>
342
          <scope>runtime</scope>
343
      </dependency>
344
      <dependency>
345
          <groupId>org.apache.xmlgraphics</groupId>
346
          <artifactId>batik-bridge</artifactId>
347
          <scope>runtime</scope>
348
      </dependency>
349
      <dependency>
350
          <groupId>org.apache.xmlgraphics</groupId>
351
          <artifactId>batik-ext</artifactId>
352
          <scope>runtime</scope>
353
      </dependency>
354
      <dependency>
355
          <groupId>org.apache.xmlgraphics</groupId>
356
          <artifactId>batik-gui-util</artifactId>
357
          <scope>runtime</scope>
358
      </dependency>
359
      <dependency>
360
          <groupId>org.apache.xmlgraphics</groupId>
361
          <artifactId>batik-gvt</artifactId>
362
          <scope>runtime</scope>
363
      </dependency>
364
      <dependency>
365
          <groupId>org.apache.xmlgraphics</groupId>
366
          <artifactId>batik-script</artifactId>
367
          <scope>runtime</scope>
368
      </dependency>
369
      <dependency>
370
          <groupId>org.apache.xmlgraphics</groupId>
371
          <artifactId>batik-xml</artifactId>
372
          <scope>runtime</scope>
373
      </dependency>
374
      <dependency>
375
          <groupId>org.apache.xmlgraphics</groupId>
376
          <artifactId>batik-anim</artifactId>
377
          <scope>runtime</scope>
378
      </dependency>
379
      <dependency>
380
          <groupId>org.apache.xmlgraphics</groupId>
381
          <artifactId>batik-css</artifactId>
382
          <scope>runtime</scope>
383
      </dependency>
384
      <dependency>
385
          <groupId>org.apache.xmlgraphics</groupId>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff