Revision 3096
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.app.mainplugin/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vectorediting.symmetry.app</artifactId> |
|
6 |
<version>1.0.167</version> |
|
7 |
</parent> |
|
8 |
|
|
9 |
<artifactId>org.gvsig.vectorediting.symmetry.app.mainplugin</artifactId> |
|
10 |
<name>org.gvsig.vectorediting.symmetry.app.mainplugin</name> |
|
11 |
|
|
12 |
<properties> |
|
13 |
<!-- Package info property values --> |
|
14 |
<gvsig.package.info.state>testing</gvsig.package.info.state> |
|
15 |
<gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.1.0-A, required: org.gvsig.vectorediting.app.mainplugin -ge 1.0.0, conflict: org.gvsig.editing.app.mainplugin -ge 1</gvsig.package.info.dependencies> |
|
16 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
17 |
<gvsig.package.info.name>Tools: Vector editing symmetry provider</gvsig.package.info.name> |
|
18 |
<gvsig.package.info.description>Symmetry provider: provides symmetrical geometries.</gvsig.package.info.description> |
|
19 |
<gvsig.package.info.categories>Vector</gvsig.package.info.categories> |
|
20 |
<gvsig.package.info.javaVM>j1_6</gvsig.package.info.javaVM> |
|
21 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-vectorediting/pool</gvsig.package.info.poolURL> |
|
22 |
</properties> |
|
23 |
|
|
24 |
<dependencies> |
|
25 |
<dependency> |
|
26 |
<groupId>org.gvsig</groupId> |
|
27 |
<artifactId>org.gvsig.vectorediting.app.mainplugin</artifactId> |
|
28 |
<scope>compile</scope> |
|
29 |
</dependency> |
|
30 |
<dependency> |
|
31 |
<groupId>org.gvsig</groupId> |
|
32 |
<artifactId>org.gvsig.vectorediting.lib.api</artifactId> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>org.gvsig</groupId> |
|
36 |
<artifactId>org.gvsig.vectorediting.lib.impl</artifactId> |
|
37 |
</dependency> |
|
38 |
<dependency> |
|
39 |
<groupId>org.gvsig</groupId> |
|
40 |
<artifactId>org.gvsig.vectorediting.lib.spi</artifactId> |
|
41 |
</dependency> |
|
42 |
<dependency> |
|
43 |
<groupId>org.gvsig</groupId> |
|
44 |
<artifactId>org.gvsig.vectorediting.symmetry.lib.prov.symmetry</artifactId> |
|
45 |
</dependency> |
|
46 |
</dependencies> |
|
47 |
</project> |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Tue Feb 01 04:44:04 CET 2022 |
|
2 |
buildNumber=172 |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.app.mainplugin/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<!-- gvSIG. Desktop Geographic Information System. Copyright (C) 2007-2013 |
|
3 |
gvSIG Association. This program is free software; you can redistribute it |
|
4 |
and/or modify it under the terms of the GNU General Public License as published |
|
5 |
by the Free Software Foundation; either version 3 of the License, or (at |
|
6 |
your option) any later version. This program is distributed in the hope that |
|
7 |
it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
|
8 |
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
|
9 |
Public License for more details. You should have received a copy of the GNU |
|
10 |
General Public License along with this program; if not, write to the Free |
|
11 |
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
|
12 |
USA. For any additional information, do not hesitate to contact us at info |
|
13 |
AT gvsig.com, or visit our website www.gvsig.com. --> |
|
14 |
<plugin-config> |
|
15 |
<depends plugin-name="org.gvsig.vectorediting.app.mainplugin" /> |
|
16 |
<resourceBundle name="text" /> |
|
17 |
<libraries library-dir="lib" /> |
|
18 |
<extensions> |
|
19 |
<extension class-name="org.gvsig.vectorediting.app.mainplugin.ServiceExtension" |
|
20 |
description="" active="true" priority="1"> |
|
21 |
|
|
22 |
<action name="modify-symmetry" label="modify_symmetry" |
|
23 |
tooltip="modify_symmetry" position="601002400" action-command="modify-symmetry" |
|
24 |
icon="modify-symmetry" accelerator="" /> |
|
25 |
|
|
26 |
<menu text="Layer/Modify/modify_symmetry" name="modify-symmetry" /> |
|
27 |
|
|
28 |
<tool-bar name="vector_editing" position="4000"> |
|
29 |
<selectable-tool name="modify-symmetry" /> |
|
30 |
</tool-bar> |
|
31 |
|
|
32 |
</extension> |
|
33 |
</extensions> |
|
34 |
</plugin-config> |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
modify_symmetry=Simetr\u00eda |
|
2 |
|
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 |
modify_symmetry=Symmetry |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.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>org.gvsig:org.gvsig.vectorediting.symmetry.lib.prov.symmetry</include> |
|
58 |
</includes> |
|
59 |
</dependencySet> |
|
60 |
</dependencySets> |
|
61 |
|
|
62 |
</assembly> |
|
63 |
|
|
0 | 64 |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.app/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vectorediting.symmetry</artifactId> |
|
6 |
<version>1.0.167</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vectorediting.symmetry.app</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>org.gvsig.vectorediting.symmetry.app</name> |
|
11 |
<modules> |
|
12 |
<module>org.gvsig.vectorediting.symmetry.app.mainplugin</module> |
|
13 |
</modules> |
|
14 |
</project> |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vectorediting.symmetry</artifactId> |
|
6 |
<version>1.0.167</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vectorediting.symmetry.lib</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>org.gvsig.vectorediting.symmetry.lib</name> |
|
11 |
<modules> |
|
12 |
<module>org.gvsig.vectorediting.symmetry.lib.prov</module> |
|
13 |
</modules> |
|
14 |
</project> |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/src/main/resources/i18n/text.properties | ||
---|---|---|
1 |
modify_symmetry = Geometr\u00eda sim\u00e9trica |
|
2 |
selection=Selecci\u00f3n |
|
3 |
first_point_of_symmetry_axis=Primer punto del eje de simetr\u00eda |
|
4 |
second_point_of_symmetry_axis=Segundo punto del eje de simetr\u00eda |
|
5 |
delete_original_geometries_question=\u00bfDesea borrar las geometr\u00edas originales? |
|
6 |
short_yes=S |
|
7 |
short_no=N |
|
8 |
delete_original_geometries = Eliminar geometr\u00edas originales |
|
9 |
keep_original_geometries = Mantener geometr\u00edas originales |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/src/main/resources/i18n/text_en.properties | ||
---|---|---|
1 |
modify_symmetry = Symmetrical geometry |
|
2 |
selection = Selection |
|
3 |
first_point_of_symmetry_axis=First point of the symmetry axis |
|
4 |
second_point_of_symmetry_axis=Second point of the symmetry axis |
|
5 |
delete_original_geometries_question=Delete original geometries? |
|
6 |
short_yes=Y |
|
7 |
short_no=N |
|
8 |
delete_original_geometries = Delete original geometries |
|
9 |
keep_original_geometries = Keep original geometries |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.vectorediting.symmetry.lib.prov.symmetry.SymmetryEditingLibrary |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/src/main/java/org/gvsig/vectorediting/symmetry/lib/prov/symmetry/SymmetryEditingProvider.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright ? 2007-2014 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 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* 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 |
|
|
25 |
package org.gvsig.vectorediting.symmetry.lib.prov.symmetry; |
|
26 |
|
|
27 |
import java.awt.geom.AffineTransform; |
|
28 |
import java.util.ArrayList; |
|
29 |
import java.util.HashMap; |
|
30 |
import java.util.LinkedHashMap; |
|
31 |
import java.util.List; |
|
32 |
import java.util.Map; |
|
33 |
import org.gvsig.fmap.dal.exception.DataException; |
|
34 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
|
35 |
import org.gvsig.fmap.dal.feature.Feature; |
|
36 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
|
37 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
38 |
import org.gvsig.fmap.geom.Geometry; |
|
39 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
40 |
import org.gvsig.fmap.geom.aggregate.Aggregate; |
|
41 |
import org.gvsig.fmap.geom.aggregate.MultiCurve; |
|
42 |
import org.gvsig.fmap.geom.aggregate.MultiPoint; |
|
43 |
import org.gvsig.fmap.geom.aggregate.MultiSurface; |
|
44 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
|
45 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
|
46 |
import org.gvsig.fmap.geom.primitive.Curve; |
|
47 |
import org.gvsig.fmap.geom.primitive.Line; |
|
48 |
import org.gvsig.fmap.geom.primitive.Point; |
|
49 |
import org.gvsig.fmap.geom.primitive.Primitive; |
|
50 |
import org.gvsig.fmap.geom.primitive.Surface; |
|
51 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
|
52 |
import org.gvsig.tools.ToolsLocator; |
|
53 |
import org.gvsig.tools.dataTypes.DataTypes; |
|
54 |
import org.gvsig.tools.dispose.DisposableIterator; |
|
55 |
import org.gvsig.tools.dynobject.DynObject; |
|
56 |
import org.gvsig.tools.i18n.I18nManager; |
|
57 |
import org.gvsig.tools.service.spi.ProviderServices; |
|
58 |
import org.gvsig.vectorediting.lib.api.DrawingStatus; |
|
59 |
import org.gvsig.vectorediting.lib.api.EditingServiceParameter; |
|
60 |
import org.gvsig.vectorediting.lib.api.EditingServiceParameter.TYPE; |
|
61 |
import org.gvsig.vectorediting.lib.api.exceptions.DrawServiceException; |
|
62 |
import org.gvsig.vectorediting.lib.api.exceptions.FinishServiceException; |
|
63 |
import org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException; |
|
64 |
import org.gvsig.vectorediting.lib.api.exceptions.StartServiceException; |
|
65 |
import org.gvsig.vectorediting.lib.spi.AbstractEditingProvider; |
|
66 |
import org.gvsig.vectorediting.lib.spi.DefaultDrawingStatus; |
|
67 |
import org.gvsig.vectorediting.lib.spi.DefaultEditingServiceParameter; |
|
68 |
import org.gvsig.vectorediting.lib.spi.DefaultEditingServiceParameterOptions; |
|
69 |
import org.gvsig.vectorediting.lib.spi.EditingProvider; |
|
70 |
import org.gvsig.vectorediting.lib.spi.EditingProviderFactory; |
|
71 |
import org.gvsig.vectorediting.lib.spi.EditingProviderLocator; |
|
72 |
import org.gvsig.vectorediting.lib.spi.EditingProviderManager; |
|
73 |
import org.gvsig.vectorediting.lib.spi.EditingProviderServices; |
|
74 |
|
|
75 |
public class SymmetryEditingProvider extends AbstractEditingProvider implements |
|
76 |
EditingProvider { |
|
77 |
|
|
78 |
private final EditingServiceParameter selectionParameter; |
|
79 |
|
|
80 |
private final EditingServiceParameter firstPointParameter; |
|
81 |
|
|
82 |
private final EditingServiceParameter secondPointParameter; |
|
83 |
|
|
84 |
private final EditingServiceParameter deleteOriginalGeometriesParameter; |
|
85 |
|
|
86 |
private Map<EditingServiceParameter, Object> values; |
|
87 |
|
|
88 |
private final FeatureStore featureStore; |
|
89 |
|
|
90 |
public SymmetryEditingProvider(ProviderServices providerServices, |
|
91 |
DynObject parameters) { |
|
92 |
super(providerServices); |
|
93 |
|
|
94 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
95 |
|
|
96 |
this.featureStore = |
|
97 |
(FeatureStore) parameters |
|
98 |
.getDynValue(EditingProviderFactory.FEATURE_STORE_FIELD); |
|
99 |
|
|
100 |
this.selectionParameter = |
|
101 |
new DefaultEditingServiceParameter("selection", |
|
102 |
i18nManager.getTranslation("selection"), TYPE.SELECTION); |
|
103 |
|
|
104 |
this.firstPointParameter = |
|
105 |
new DefaultEditingServiceParameter("first_point_of_symmetry_axis", |
|
106 |
i18nManager.getTranslation("first_point_of_symmetry_axis"), |
|
107 |
TYPE.POSITION); |
|
108 |
|
|
109 |
this.secondPointParameter = |
|
110 |
new DefaultEditingServiceParameter("second_point_of_symmetry_axis", |
|
111 |
i18nManager.getTranslation("second_point_of_symmetry_axis"), |
|
112 |
TYPE.POSITION); |
|
113 |
|
|
114 |
EditingProviderServices editingProviderServices = |
|
115 |
(EditingProviderServices) getProviderServices(); |
|
116 |
|
|
117 |
DefaultEditingServiceParameterOptions deleteOriginalGeometriesOptions2 = new DefaultEditingServiceParameterOptions() |
|
118 |
.add("delete_original_geometries", true, i18nManager.getTranslation("_yes")) |
|
119 |
.add("keep_original_geometries", false, i18nManager.getTranslation("_no")); |
|
120 |
|
|
121 |
String consoleMsg |
|
122 |
= editingProviderServices.makeConsoleMessage( |
|
123 |
"delete_original_geometries_question", deleteOriginalGeometriesOptions2); |
|
124 |
|
|
125 |
this.deleteOriginalGeometriesParameter |
|
126 |
= new DefaultEditingServiceParameter( |
|
127 |
i18nManager.getTranslation("delete_original_geometries"), |
|
128 |
consoleMsg, |
|
129 |
deleteOriginalGeometriesOptions2, |
|
130 |
false, |
|
131 |
TYPE.OPTION).setDataType(DataTypes.BOOLEAN);; |
|
132 |
} |
|
133 |
|
|
134 |
@Override |
|
135 |
public DrawingStatus getDrawingStatus(Point mousePosition) |
|
136 |
throws DrawServiceException { |
|
137 |
DefaultDrawingStatus drawingStatus = new DefaultDrawingStatus(); |
|
138 |
EditingProviderManager editingProviderManager = |
|
139 |
EditingProviderLocator.getProviderManager(); |
|
140 |
ISymbol auxiliaryLineSymbolEditing = editingProviderManager.getSymbol("auxiliary-line-symbol-editing"); |
|
141 |
ISymbol auxiliaryPointSymbolEditing = editingProviderManager.getSymbol("auxiliary-point-symbol-editing"); |
|
142 |
ISymbol lineSymbolEditing = editingProviderManager.getSymbol("line-symbol-editing"); |
|
143 |
ISymbol polygonSymbolEditing = editingProviderManager.getSymbol("polygon-symbol-editing"); |
|
144 |
|
|
145 |
|
|
146 |
FeatureSelection selected = |
|
147 |
(FeatureSelection) values.get(selectionParameter); |
|
148 |
try { |
|
149 |
if ((selected != null) && !selected.isEmpty()) { |
|
150 |
Point p1 = (Point) values.get(firstPointParameter); |
|
151 |
if (p1 != null) { |
|
152 |
Object p2Value = values.get(secondPointParameter); |
|
153 |
Point p2; |
|
154 |
if ((p2Value != null) && (p2Value instanceof Point)) { |
|
155 |
p2 = (Point) p2Value; |
|
156 |
} else { |
|
157 |
p2 = mousePosition; |
|
158 |
} |
|
159 |
Line line; |
|
160 |
line = |
|
161 |
GeometryLocator.getGeometryManager().createLine( |
|
162 |
featureStore.getDefaultFeatureType() |
|
163 |
.getDefaultGeometryAttribute().getGeomType() |
|
164 |
.getSubType()); |
|
165 |
line.addVertex(p1); |
|
166 |
line.addVertex(p2); |
|
167 |
|
|
168 |
drawingStatus.addStatus(line, auxiliaryLineSymbolEditing, ""); |
|
169 |
|
|
170 |
DisposableIterator it; |
|
171 |
it = selected.fastIterator(); |
|
172 |
|
|
173 |
AffineTransform at; |
|
174 |
try { |
|
175 |
at = getSymmetryAffineTransform(p1, p2); |
|
176 |
} catch (Exception e) { |
|
177 |
throw new DrawServiceException(e); |
|
178 |
} |
|
179 |
|
|
180 |
while (it.hasNext()) { |
|
181 |
Feature feat = (Feature) it.next(); |
|
182 |
|
|
183 |
ISymbol previewSymbol = this.getPreviewSymbol(feat); |
|
184 |
|
|
185 |
Geometry transformedGeometry = feat.getDefaultGeometry().cloneGeometry(); |
|
186 |
transformedGeometry.transform(at); |
|
187 |
|
|
188 |
ISymbol symbol=null; |
|
189 |
if(transformedGeometry instanceof Curve || transformedGeometry instanceof MultiCurve){ |
|
190 |
symbol = lineSymbolEditing; |
|
191 |
} else if(transformedGeometry instanceof Surface || transformedGeometry instanceof MultiSurface){ |
|
192 |
symbol = polygonSymbolEditing; |
|
193 |
} else if(transformedGeometry instanceof Point || transformedGeometry instanceof MultiPoint){ |
|
194 |
symbol = auxiliaryPointSymbolEditing; |
|
195 |
} |
|
196 |
if(transformedGeometry instanceof Aggregate){ |
|
197 |
int primitivesNumber = ((Aggregate)transformedGeometry).getPrimitivesNumber(); |
|
198 |
for (int i = 0; i < primitivesNumber; i++) { |
|
199 |
final Primitive primitive = ((Aggregate)transformedGeometry).getPrimitiveAt(i); |
|
200 |
drawingStatus.addStatus(primitive, symbol, ""); |
|
201 |
drawingStatus.addStatus(primitive, previewSymbol, ""); |
|
202 |
} |
|
203 |
} else { |
|
204 |
drawingStatus.addStatus(transformedGeometry, symbol, ""); |
|
205 |
drawingStatus.addStatus(transformedGeometry, previewSymbol, ""); |
|
206 |
} |
|
207 |
} |
|
208 |
it.dispose(); |
|
209 |
} |
|
210 |
return drawingStatus; |
|
211 |
} |
|
212 |
} catch (Exception e) { |
|
213 |
throw new DrawServiceException(e); |
|
214 |
} |
|
215 |
return null; |
|
216 |
} |
|
217 |
|
|
218 |
private AffineTransform getSymmetryAffineTransform(Point axisP1, |
|
219 |
Point axisP2) throws GeometryOperationNotSupportedException, |
|
220 |
GeometryOperationException { |
|
221 |
|
|
222 |
AffineTransform translate = |
|
223 |
AffineTransform |
|
224 |
.getTranslateInstance(-axisP1.getX(), -axisP1.getY()); |
|
225 |
|
|
226 |
EditingProviderServices editingProviderServices = |
|
227 |
(EditingProviderServices) getProviderServices(); |
|
228 |
Double angle = -editingProviderServices.getAngle(axisP1, axisP2); |
|
229 |
AffineTransform rotate = AffineTransform.getRotateInstance(angle); |
|
230 |
|
|
231 |
AffineTransform symmetry = new AffineTransform(1, 0, 0, -1, 0, 0); |
|
232 |
AffineTransform inverseRotate = |
|
233 |
AffineTransform.getRotateInstance(-angle); |
|
234 |
AffineTransform inverseTranslate = |
|
235 |
AffineTransform.getTranslateInstance(axisP1.getX(), axisP1.getY()); |
|
236 |
AffineTransform at = new AffineTransform(translate); |
|
237 |
|
|
238 |
at.preConcatenate(rotate); |
|
239 |
at.preConcatenate(symmetry); |
|
240 |
at.preConcatenate(inverseRotate); |
|
241 |
at.preConcatenate(inverseTranslate); |
|
242 |
return at; |
|
243 |
} |
|
244 |
|
|
245 |
@Override |
|
246 |
public EditingServiceParameter next() { |
|
247 |
if (values.get(selectionParameter) == null) { |
|
248 |
return this.selectionParameter; |
|
249 |
} else if (values.get(firstPointParameter) == null) { |
|
250 |
return this.firstPointParameter; |
|
251 |
} else if (values.get(secondPointParameter) == null) { |
|
252 |
return this.secondPointParameter; |
|
253 |
} else if (values.get(deleteOriginalGeometriesParameter) == null) { |
|
254 |
return this.deleteOriginalGeometriesParameter; |
|
255 |
} |
|
256 |
return null; |
|
257 |
} |
|
258 |
|
|
259 |
@Override |
|
260 |
public void stop() { |
|
261 |
values.clear(); |
|
262 |
} |
|
263 |
|
|
264 |
private void validateAndInsertValue(EditingServiceParameter param, |
|
265 |
Object value) throws InvalidEntryException { |
|
266 |
|
|
267 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
268 |
|
|
269 |
|
|
270 |
if (param == selectionParameter) { |
|
271 |
if (value instanceof FeatureSelection) { |
|
272 |
values.put(param, value); |
|
273 |
} |
|
274 |
} else if (param == firstPointParameter) { |
|
275 |
if (value instanceof Point) { |
|
276 |
values.put(param, value); |
|
277 |
} |
|
278 |
} else if (param == secondPointParameter) { |
|
279 |
if (value instanceof Point) { |
|
280 |
values.put(param, value); |
|
281 |
} |
|
282 |
} else if (param == deleteOriginalGeometriesParameter) { |
|
283 |
values.put(param, param.getOptions2().getValue(value, param.getDefaultValue())); |
|
284 |
} |
|
285 |
|
|
286 |
} |
|
287 |
|
|
288 |
@Override |
|
289 |
public List<EditingServiceParameter> getParameters() { |
|
290 |
List<EditingServiceParameter> list = |
|
291 |
new ArrayList<>(); |
|
292 |
list.add(selectionParameter); |
|
293 |
list.add(firstPointParameter); |
|
294 |
list.add(secondPointParameter); |
|
295 |
list.add(deleteOriginalGeometriesParameter); |
|
296 |
return list; |
|
297 |
} |
|
298 |
|
|
299 |
@Override |
|
300 |
public void setValue(EditingServiceParameter parameter, Object value) throws InvalidEntryException { |
|
301 |
validateAndInsertValue(parameter, value); |
|
302 |
} |
|
303 |
|
|
304 |
@Override |
|
305 |
public void setValue(Object value) throws InvalidEntryException { |
|
306 |
EditingServiceParameter param = next(); |
|
307 |
validateAndInsertValue(param, value); |
|
308 |
} |
|
309 |
|
|
310 |
@Override |
|
311 |
public void finishAndStore() throws FinishServiceException { |
|
312 |
|
|
313 |
FeatureSelection selected = |
|
314 |
(FeatureSelection) values.get(selectionParameter); |
|
315 |
final Boolean deleteOriginalGeometriesValue = (Boolean) values.get(deleteOriginalGeometriesParameter); |
|
316 |
|
|
317 |
try { |
|
318 |
if (!selected.isEmpty()) { |
|
319 |
Point p1 = (Point) values.get(firstPointParameter); |
|
320 |
Point p2 = (Point) values.get(secondPointParameter); |
|
321 |
if ((p1 != null) && (p2 != null)) { |
|
322 |
|
|
323 |
AffineTransform at; |
|
324 |
try { |
|
325 |
at = getSymmetryAffineTransform(p1, p2); |
|
326 |
} catch (GeometryOperationNotSupportedException | GeometryOperationException e) { |
|
327 |
throw new FinishServiceException(e); |
|
328 |
} |
|
329 |
|
|
330 |
DisposableIterator it; |
|
331 |
it = selected.fastIterator(); |
|
332 |
|
|
333 |
while (it.hasNext()) { |
|
334 |
Feature feature = (Feature) it.next(); |
|
335 |
Geometry geom = |
|
336 |
feature.getDefaultGeometry().cloneGeometry(); |
|
337 |
geom.transform(at); |
|
338 |
if (deleteOriginalGeometriesValue) { |
|
339 |
// Se sustituye la geometr?a original por la |
|
340 |
// calculada |
|
341 |
EditableFeature editableFeature = |
|
342 |
feature.getEditable(); |
|
343 |
editableFeature.setDefaultGeometry(geom); |
|
344 |
((EditingProviderServices) getProviderServices()) |
|
345 |
.updateFeatureInFeatureStore(editableFeature, |
|
346 |
featureStore); |
|
347 |
} else { |
|
348 |
// Se crea una feature nueva copiando los valores de |
|
349 |
// la feature original excepto aquellos que sean PK |
|
350 |
EditingProviderServices editingProviderServices = |
|
351 |
(EditingProviderServices) getProviderServices(); |
|
352 |
EditableFeature editableFeature = |
|
353 |
editingProviderServices |
|
354 |
.getFeatureCopyWithoutUniqueIndex(featureStore, |
|
355 |
feature); |
|
356 |
editableFeature.setDefaultGeometry(geom); |
|
357 |
editingProviderServices |
|
358 |
.insertFeatureIntoFeatureStore(editableFeature, |
|
359 |
featureStore); |
|
360 |
} |
|
361 |
} |
|
362 |
it.dispose(); |
|
363 |
featureStore.getFeatureSelection().deselectAll(); |
|
364 |
} |
|
365 |
} |
|
366 |
} catch (DataException e) { |
|
367 |
throw new FinishServiceException(e); |
|
368 |
} |
|
369 |
} |
|
370 |
|
|
371 |
@Override |
|
372 |
public Geometry finish() throws FinishServiceException { |
|
373 |
return null; |
|
374 |
} |
|
375 |
|
|
376 |
@Override |
|
377 |
public void start() throws StartServiceException { |
|
378 |
this.values = new HashMap<>(); |
|
379 |
FeatureSelection selected = null; |
|
380 |
if (featureStore != null) { |
|
381 |
try { |
|
382 |
selected = |
|
383 |
(FeatureSelection) featureStore.getFeatureSelection() |
|
384 |
.clone(); |
|
385 |
} catch (DataException e) { |
|
386 |
throw new StartServiceException(e); |
|
387 |
} catch (CloneNotSupportedException e) { |
|
388 |
// Do nothing |
|
389 |
} |
|
390 |
if ((selected != null) && (selected.getSelectedCount() > 0)) { |
|
391 |
values.put(selectionParameter, selected); |
|
392 |
} |
|
393 |
} |
|
394 |
} |
|
395 |
|
|
396 |
@Override |
|
397 |
public String getName() { |
|
398 |
return SymmetryEditingProviderFactory.PROVIDER_NAME; |
|
399 |
} |
|
400 |
|
|
401 |
} |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/src/main/java/org/gvsig/vectorediting/symmetry/lib/prov/symmetry/SymmetryEditingProviderFactory.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright � 2007-2014 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 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* 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 |
|
|
25 |
package org.gvsig.vectorediting.symmetry.lib.prov.symmetry; |
|
26 |
|
|
27 |
import org.gvsig.fmap.geom.Geometry; |
|
28 |
import org.gvsig.tools.dynobject.DynObject; |
|
29 |
import org.gvsig.tools.service.spi.Provider; |
|
30 |
import org.gvsig.tools.service.spi.ProviderServices; |
|
31 |
import org.gvsig.vectorediting.lib.api.EditingServiceInfo; |
|
32 |
import org.gvsig.vectorediting.lib.spi.AbstractEditingProviderFactory; |
|
33 |
import org.gvsig.vectorediting.lib.spi.DefaultEditingServiceinfo; |
|
34 |
|
|
35 |
public class SymmetryEditingProviderFactory extends AbstractEditingProviderFactory { |
|
36 |
|
|
37 |
public static final String PROVIDER_NAME = "modify-symmetry"; |
|
38 |
|
|
39 |
private final static String PROVIDER_DESCRIPTION = |
|
40 |
"Creates symmetric geometries from selection"; |
|
41 |
|
|
42 |
public SymmetryEditingProviderFactory() { |
|
43 |
super(PROVIDER_NAME, PROVIDER_DESCRIPTION); |
|
44 |
} |
|
45 |
|
|
46 |
|
|
47 |
public EditingServiceInfo getServiceInfo() { |
|
48 |
EditingServiceInfo serviceInfo = |
|
49 |
new DefaultEditingServiceinfo(PROVIDER_NAME, "", false, null, |
|
50 |
new int[] { |
|
51 |
Geometry.TYPES.POINT, Geometry.TYPES.MULTIPOINT, |
|
52 |
Geometry.TYPES.POLYGON, Geometry.TYPES.MULTIPOLYGON, |
|
53 |
Geometry.TYPES.LINE, Geometry.TYPES.MULTILINE, |
|
54 |
Geometry.TYPES.SURFACE, Geometry.TYPES.MULTISURFACE, |
|
55 |
Geometry.TYPES.CURVE, Geometry.TYPES.MULTICURVE |
|
56 |
}); |
|
57 |
|
|
58 |
return serviceInfo; |
|
59 |
} |
|
60 |
|
|
61 |
@Override |
|
62 |
protected Provider doCreate(DynObject parameters, ProviderServices services) { |
|
63 |
return new SymmetryEditingProvider(services, parameters); |
|
64 |
} |
|
65 |
|
|
66 |
} |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/src/main/java/org/gvsig/vectorediting/symmetry/lib/prov/symmetry/SymmetryEditingLibrary.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright ? 2007-2014 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 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
* 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 |
|
|
25 |
package org.gvsig.vectorediting.symmetry.lib.prov.symmetry; |
|
26 |
|
|
27 |
import org.gvsig.tools.ToolsLocator; |
|
28 |
import org.gvsig.tools.i18n.I18nManager; |
|
29 |
import org.gvsig.tools.library.AbstractLibrary; |
|
30 |
import org.gvsig.tools.library.LibraryException; |
|
31 |
import org.gvsig.vectorediting.lib.api.EditingLibrary; |
|
32 |
import org.gvsig.vectorediting.lib.spi.EditingProviderLocator; |
|
33 |
import org.gvsig.vectorediting.lib.spi.EditingProviderManager; |
|
34 |
|
|
35 |
/** |
|
36 |
* Library for default implementation initialization and configuration. |
|
37 |
* |
|
38 |
* @author gvSIG team |
|
39 |
* @version $Id$ |
|
40 |
*/ |
|
41 |
public class SymmetryEditingLibrary extends AbstractLibrary { |
|
42 |
|
|
43 |
@Override |
|
44 |
public void doRegistration() { |
|
45 |
registerAsServiceOf(EditingLibrary.class); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
protected void doInitialize() throws LibraryException { |
|
50 |
} |
|
51 |
|
|
52 |
@Override |
|
53 |
protected void doPostInitialize() throws LibraryException { |
|
54 |
EditingProviderManager manager = |
|
55 |
EditingProviderLocator.getProviderManager(); |
|
56 |
|
|
57 |
manager.addProviderFactory(new SymmetryEditingProviderFactory()); |
|
58 |
|
|
59 |
manager.registerIcon("vectorediting-tools", "modify-symmetry", this |
|
60 |
.getClass().getClassLoader(), this.getClass().getName()); |
|
61 |
|
|
62 |
registerTranslations(); |
|
63 |
} |
|
64 |
|
|
65 |
private void registerTranslations() { |
|
66 |
I18nManager manager = ToolsLocator.getI18nManager(); |
|
67 |
manager.addResourceFamily("i18n.text", |
|
68 |
this.getClass().getClassLoader(), "symmetry-editing"); |
|
69 |
} |
|
70 |
|
|
71 |
} |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/org.gvsig.vectorediting.symmetry.lib.prov.symmetry/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vectorediting.symmetry.lib.prov</artifactId> |
|
6 |
<version>1.0.167</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vectorediting.symmetry.lib.prov.symmetry</artifactId> |
|
9 |
<name>org.gvsig.vectorediting.symmetry.lib.prov.symmetry</name> |
|
10 |
|
|
11 |
<dependencies> |
|
12 |
<dependency> |
|
13 |
<groupId>org.gvsig</groupId> |
|
14 |
<artifactId>org.gvsig.vectorediting.lib.api</artifactId> |
|
15 |
</dependency> |
|
16 |
<dependency> |
|
17 |
<groupId>org.gvsig</groupId> |
|
18 |
<artifactId>org.gvsig.vectorediting.lib.impl</artifactId> |
|
19 |
</dependency> |
|
20 |
<dependency> |
|
21 |
<groupId>org.gvsig</groupId> |
|
22 |
<artifactId>org.gvsig.vectorediting.lib.spi</artifactId> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>org.gvsig</groupId> |
|
26 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
27 |
<scope>compile</scope> |
|
28 |
</dependency> |
|
29 |
</dependencies> |
|
30 |
</project> |
|
0 | 31 |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/org.gvsig.vectorediting.symmetry.lib/org.gvsig.vectorediting.symmetry.lib.prov/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vectorediting.symmetry.lib</artifactId> |
|
6 |
<version>1.0.167</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vectorediting.symmetry.lib.prov</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>org.gvsig.vectorediting.symmetry.lib.prov</name> |
|
11 |
<modules> |
|
12 |
<module> |
|
13 |
org.gvsig.vectorediting.symmetry.lib.prov.symmetry |
|
14 |
</module> |
|
15 |
</modules> |
|
16 |
</project> |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.desktop</artifactId> |
|
6 |
<version>2.0.356</version> |
|
7 |
</parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.vectorediting.symmetry</artifactId> |
|
10 |
<version>1.0.167</version> |
|
11 |
<packaging>pom</packaging> |
|
12 |
<name>org.gvsig.vectorediting.symmetry</name> |
|
13 |
<description>Project that provides the symmetry vector editing tool</description> |
|
14 |
|
|
15 |
<repositories> |
|
16 |
<repository> |
|
17 |
<id>gvsig-public-http-repository</id> |
|
18 |
<name>gvSIG maven public HTTP repository</name> |
|
19 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
20 |
<releases> |
|
21 |
<enabled>true</enabled> |
|
22 |
<updatePolicy>daily</updatePolicy> |
|
23 |
<checksumPolicy>warn</checksumPolicy> |
|
24 |
</releases> |
|
25 |
<snapshots> |
|
26 |
<enabled>true</enabled> |
|
27 |
<updatePolicy>daily</updatePolicy> |
|
28 |
<checksumPolicy>warn</checksumPolicy> |
|
29 |
</snapshots> |
|
30 |
</repository> |
|
31 |
</repositories> |
|
32 |
|
|
33 |
<url>dav:https://devel.gvsig.org/sites/${project.artifactId}/${project.version}</url> |
|
34 |
<scm> |
|
35 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-vectorediting/org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167</connection> |
|
36 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-vectorediting/org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167</developerConnection> |
|
37 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-vector-editing/repository/show/org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.167</url> |
|
38 |
</scm> |
|
39 |
|
|
40 |
<distributionManagement> |
|
41 |
<site> |
|
42 |
<id>gvsig-repository</id> |
|
43 |
<url>dav:https://devel.gvsig.org/download/projects/gvsig-vectorediting/pool/${project.artifactId}/${project.version}</url> |
|
44 |
</site> |
|
45 |
</distributionManagement> |
|
46 |
|
|
47 |
<build> |
|
48 |
<plugins> |
|
49 |
<plugin> |
|
50 |
<groupId>org.apache.maven.plugins</groupId> |
|
51 |
<artifactId>maven-release-plugin</artifactId> |
|
52 |
<configuration> |
|
53 |
<tagBase>https://devel.gvsig.org/svn/gvsig-vectorediting/${project.artifactId}/tags</tagBase> |
|
54 |
</configuration> |
|
55 |
</plugin> |
|
56 |
</plugins> |
|
57 |
</build> |
|
58 |
|
|
59 |
<dependencyManagement> |
|
60 |
<dependencies> |
|
61 |
<dependency> |
|
62 |
<groupId>org.gvsig</groupId> |
|
63 |
<artifactId> org.gvsig.vectorediting </artifactId> |
|
64 |
<version>${org.gvsig.vectorediting.version}</version> |
|
65 |
<scope>import</scope> |
|
66 |
<type>pom</type> |
|
67 |
</dependency> |
|
68 |
<dependency> |
|
69 |
<groupId>org.gvsig</groupId> |
|
70 |
<artifactId>org.gvsig.vectorediting.symmetry.lib.prov.symmetry</artifactId> |
|
71 |
<version>1.0.167</version> |
|
72 |
</dependency> |
|
73 |
</dependencies> |
|
74 |
</dependencyManagement> |
|
75 |
|
|
76 |
<modules> |
|
77 |
<module>org.gvsig.vectorediting.symmetry.lib</module> |
|
78 |
<module>org.gvsig.vectorediting.symmetry.app</module> |
|
79 |
</modules> |
|
80 |
|
|
81 |
<properties> |
|
82 |
<org.gvsig.vectorediting.version>1.0.181</org.gvsig.vectorediting.version> |
|
83 |
</properties> |
|
84 |
</project> |
|
85 |
|
Also available in: Unified diff