Revision 610
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15/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.15</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.15/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.ToolsLocator; |
|
29 |
import org.gvsig.tools.dynobject.DynClass; |
|
30 |
import org.gvsig.tools.dynobject.DynObject; |
|
31 |
import org.gvsig.tools.service.spi.AbstractProviderFactory; |
|
32 |
import org.gvsig.tools.service.spi.Provider; |
|
33 |
import org.gvsig.tools.service.spi.ProviderServices; |
|
34 |
import org.gvsig.vectorediting.lib.api.EditingServiceInfo; |
|
35 |
import org.gvsig.vectorediting.lib.spi.DefaultEditingServiceinfo; |
|
36 |
import org.gvsig.vectorediting.lib.spi.EditingProviderFactory; |
|
37 |
|
|
38 |
public class SymmetryEditingProviderFactory extends AbstractProviderFactory |
|
39 |
implements EditingProviderFactory { |
|
40 |
|
|
41 |
public static final String PROVIDER_NAME = "modify-symmetry"; |
|
42 |
|
|
43 |
private final static String PROVIDER_DESCRIPTION = |
|
44 |
"Creates symmetric geometries from selection"; |
|
45 |
|
|
46 |
public void initialize() { |
|
47 |
|
|
48 |
} |
|
49 |
|
|
50 |
public EditingServiceInfo getServiceInfo() { |
|
51 |
EditingServiceInfo serviceInfo = |
|
52 |
new DefaultEditingServiceinfo(PROVIDER_NAME, "", false, null, |
|
53 |
new int[] { Geometry.TYPES.POINT, Geometry.TYPES.MULTIPOINT, |
|
54 |
Geometry.TYPES.SURFACE, Geometry.TYPES.MULTISURFACE, |
|
55 |
Geometry.TYPES.CURVE, Geometry.TYPES.MULTICURVE }); |
|
56 |
|
|
57 |
return serviceInfo; |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
protected Provider doCreate(DynObject parameters, ProviderServices services) { |
|
62 |
return new SymmetryEditingProvider(services, parameters); |
|
63 |
} |
|
64 |
|
|
65 |
@Override |
|
66 |
public DynObject createParameters() { |
|
67 |
DynObject dynobject = super.createParameters(); |
|
68 |
dynobject.setDynValue(PROVIDER_NAME_FIELD, PROVIDER_NAME); |
|
69 |
return dynobject; |
|
70 |
} |
|
71 |
|
|
72 |
@Override |
|
73 |
protected DynClass createParametersDynClass() { |
|
74 |
DynClass dynclass = |
|
75 |
ToolsLocator.getDynObjectManager().createDynClass(PROVIDER_NAME, |
|
76 |
PROVIDER_DESCRIPTION); |
|
77 |
|
|
78 |
dynclass.addDynFieldString(PROVIDER_NAME_FIELD); |
|
79 |
dynclass.addDynFieldObject(FEATURE_STORE_FIELD); |
|
80 |
dynclass.addDynFieldObject(MAPCONTEXT_FIELD); |
|
81 |
|
|
82 |
return dynclass; |
|
83 |
} |
|
84 |
|
|
85 |
} |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15/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.15/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 |
|
|
34 |
import org.gvsig.fmap.dal.exception.DataException; |
|
35 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
|
36 |
import org.gvsig.fmap.dal.feature.Feature; |
|
37 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
|
38 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
39 |
import org.gvsig.fmap.geom.Geometry; |
|
40 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
41 |
import org.gvsig.fmap.geom.aggregate.Aggregate; |
|
42 |
import org.gvsig.fmap.geom.aggregate.MultiCurve; |
|
43 |
import org.gvsig.fmap.geom.aggregate.MultiPoint; |
|
44 |
import org.gvsig.fmap.geom.aggregate.MultiSurface; |
|
45 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
|
46 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
|
47 |
import org.gvsig.fmap.geom.primitive.Curve; |
|
48 |
import org.gvsig.fmap.geom.primitive.Line; |
|
49 |
import org.gvsig.fmap.geom.primitive.Point; |
|
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.dispose.DisposableIterator; |
|
54 |
import org.gvsig.tools.dynobject.DynObject; |
|
55 |
import org.gvsig.tools.i18n.I18nManager; |
|
56 |
import org.gvsig.tools.service.spi.ProviderServices; |
|
57 |
import org.gvsig.vectorediting.lib.api.DrawingStatus; |
|
58 |
import org.gvsig.vectorediting.lib.api.EditingServiceParameter; |
|
59 |
import org.gvsig.vectorediting.lib.api.EditingServiceParameter.TYPE; |
|
60 |
import org.gvsig.vectorediting.lib.api.exceptions.DrawServiceException; |
|
61 |
import org.gvsig.vectorediting.lib.api.exceptions.FinishServiceException; |
|
62 |
import org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException; |
|
63 |
import org.gvsig.vectorediting.lib.api.exceptions.StartServiceException; |
|
64 |
import org.gvsig.vectorediting.lib.spi.AbstractEditingProvider; |
|
65 |
import org.gvsig.vectorediting.lib.spi.DefaultDrawingStatus; |
|
66 |
import org.gvsig.vectorediting.lib.spi.DefaultEditingServiceParameter; |
|
67 |
import org.gvsig.vectorediting.lib.spi.EditingProvider; |
|
68 |
import org.gvsig.vectorediting.lib.spi.EditingProviderFactory; |
|
69 |
import org.gvsig.vectorediting.lib.spi.EditingProviderLocator; |
|
70 |
import org.gvsig.vectorediting.lib.spi.EditingProviderManager; |
|
71 |
import org.gvsig.vectorediting.lib.spi.EditingProviderServices; |
|
72 |
|
|
73 |
public class SymmetryEditingProvider extends AbstractEditingProvider implements |
|
74 |
EditingProvider { |
|
75 |
|
|
76 |
private I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
77 |
|
|
78 |
private EditingServiceParameter selectionParameter; |
|
79 |
|
|
80 |
private EditingServiceParameter firstPointParameter; |
|
81 |
|
|
82 |
private EditingServiceParameter secondPointParameter; |
|
83 |
|
|
84 |
private EditingServiceParameter deleteOriginalGeometriesParameter; |
|
85 |
|
|
86 |
private boolean deleteOriginalGeometries = false; |
|
87 |
|
|
88 |
private Map<EditingServiceParameter, Object> values; |
|
89 |
|
|
90 |
private Map<String, String> options; |
|
91 |
|
|
92 |
private FeatureStore featureStore; |
|
93 |
|
|
94 |
public SymmetryEditingProvider(ProviderServices providerServices, |
|
95 |
DynObject parameters) { |
|
96 |
super(providerServices); |
|
97 |
this.featureStore = |
|
98 |
(FeatureStore) parameters |
|
99 |
.getDynValue(EditingProviderFactory.FEATURE_STORE_FIELD); |
|
100 |
|
|
101 |
this.selectionParameter = |
|
102 |
new DefaultEditingServiceParameter("selection", |
|
103 |
i18nManager.getTranslation("selection"), TYPE.SELECTION); |
|
104 |
|
|
105 |
this.firstPointParameter = |
|
106 |
new DefaultEditingServiceParameter("first_point_of_symmetry_axis", |
|
107 |
i18nManager.getTranslation("first_point_of_symmetry_axis"), |
|
108 |
TYPE.POSITION); |
|
109 |
|
|
110 |
this.secondPointParameter = |
|
111 |
new DefaultEditingServiceParameter("second_point_of_symmetry_axis", |
|
112 |
i18nManager.getTranslation("second_point_of_symmetry_axis"), |
|
113 |
TYPE.POSITION); |
|
114 |
|
|
115 |
this.options = new LinkedHashMap<String, String>(); |
|
116 |
options.put(i18nManager.getTranslation("short_yes"), |
|
117 |
"delete_original_geometries"); |
|
118 |
options.put(i18nManager.getTranslation("short_no"), |
|
119 |
"keep_original_geometries"); |
|
120 |
|
|
121 |
EditingProviderServices editingProviderServices = |
|
122 |
(EditingProviderServices) getProviderServices(); |
|
123 |
|
|
124 |
String consoleMsg = |
|
125 |
editingProviderServices.makeConsoleMessage( |
|
126 |
"delete_original_geometries_question", options); |
|
127 |
|
|
128 |
this.deleteOriginalGeometriesParameter = |
|
129 |
new DefaultEditingServiceParameter("Delete original geometries", |
|
130 |
consoleMsg, options, TYPE.OPTION); |
|
131 |
} |
|
132 |
|
|
133 |
public DrawingStatus getDrawingStatus(Point mousePosition) |
|
134 |
throws DrawServiceException { |
|
135 |
DefaultDrawingStatus drawingStatus = new DefaultDrawingStatus(); |
|
136 |
EditingProviderManager editingProviderManager = |
|
137 |
EditingProviderLocator.getProviderManager(); |
|
138 |
ISymbol auxiliaryLineSymbolEditing = editingProviderManager.getSymbol("auxiliary-line-symbol-editing"); |
|
139 |
ISymbol auxiliaryPointSymbolEditing = editingProviderManager.getSymbol("auxiliary-point-symbol-editing"); |
|
140 |
ISymbol lineSymbolEditing = editingProviderManager.getSymbol("line-symbol-editing"); |
|
141 |
ISymbol polygonSymbolEditing = editingProviderManager.getSymbol("polygon-symbol-editing"); |
|
142 |
|
|
143 |
|
|
144 |
FeatureSelection selected = |
|
145 |
(FeatureSelection) values.get(selectionParameter); |
|
146 |
try { |
|
147 |
if ((selected != null) && !selected.isEmpty()) { |
|
148 |
Point p1 = (Point) values.get(firstPointParameter); |
|
149 |
if (p1 != null) { |
|
150 |
Object p2Value = values.get(secondPointParameter); |
|
151 |
Point p2 = null; |
|
152 |
if ((p2Value != null) && (p2Value instanceof Point)) { |
|
153 |
p2 = (Point) p2Value; |
|
154 |
} else { |
|
155 |
p2 = mousePosition; |
|
156 |
} |
|
157 |
Line line; |
|
158 |
line = |
|
159 |
GeometryLocator.getGeometryManager().createLine( |
|
160 |
featureStore.getDefaultFeatureType() |
|
161 |
.getDefaultGeometryAttribute().getGeomType() |
|
162 |
.getSubType()); |
|
163 |
line.addVertex(p1); |
|
164 |
line.addVertex(p2); |
|
165 |
|
|
166 |
drawingStatus.addStatus(line, auxiliaryLineSymbolEditing, ""); |
|
167 |
|
|
168 |
DisposableIterator it; |
|
169 |
it = selected.fastIterator(); |
|
170 |
|
|
171 |
AffineTransform at; |
|
172 |
try { |
|
173 |
at = getSymmetryAffineTransform(p1, p2); |
|
174 |
} catch (Exception e) { |
|
175 |
throw new DrawServiceException(e); |
|
176 |
} |
|
177 |
|
|
178 |
while (it.hasNext()) { |
|
179 |
Feature feat = (Feature) it.next(); |
|
180 |
Geometry transformedGeometry = feat.getDefaultGeometry().cloneGeometry(); |
|
181 |
transformedGeometry.transform(at); |
|
182 |
|
|
183 |
ISymbol symbol=null; |
|
184 |
if(transformedGeometry instanceof Curve || transformedGeometry instanceof MultiCurve){ |
|
185 |
symbol = lineSymbolEditing; |
|
186 |
} else if(transformedGeometry instanceof Surface || transformedGeometry instanceof MultiSurface){ |
|
187 |
symbol = polygonSymbolEditing; |
|
188 |
} else if(transformedGeometry instanceof Point || transformedGeometry instanceof MultiPoint){ |
|
189 |
symbol = auxiliaryPointSymbolEditing; |
|
190 |
} |
|
191 |
if(transformedGeometry instanceof Aggregate){ |
|
192 |
int primitivesNumber = ((Aggregate)transformedGeometry).getPrimitivesNumber(); |
|
193 |
for (int i = 0; i < primitivesNumber; i++) { |
|
194 |
drawingStatus.addStatus(((Aggregate)transformedGeometry).getPrimitiveAt(i), symbol, ""); |
|
195 |
} |
|
196 |
} else { |
|
197 |
drawingStatus.addStatus(transformedGeometry, symbol, ""); |
|
198 |
} |
|
199 |
} |
|
200 |
it.dispose(); |
|
201 |
} |
|
202 |
return drawingStatus; |
|
203 |
} |
|
204 |
} catch (Exception e) { |
|
205 |
throw new DrawServiceException(e); |
|
206 |
} |
|
207 |
return null; |
|
208 |
} |
|
209 |
|
|
210 |
private AffineTransform getSymmetryAffineTransform(Point axisP1, |
|
211 |
Point axisP2) throws GeometryOperationNotSupportedException, |
|
212 |
GeometryOperationException { |
|
213 |
|
|
214 |
AffineTransform translate = |
|
215 |
AffineTransform |
|
216 |
.getTranslateInstance(-axisP1.getX(), -axisP1.getY()); |
|
217 |
|
|
218 |
EditingProviderServices editingProviderServices = |
|
219 |
(EditingProviderServices) getProviderServices(); |
|
220 |
Double angle = -editingProviderServices.getAngle(axisP1, axisP2); |
|
221 |
AffineTransform rotate = AffineTransform.getRotateInstance(angle); |
|
222 |
|
|
223 |
AffineTransform symmetry = new AffineTransform(1, 0, 0, -1, 0, 0); |
|
224 |
AffineTransform inverseRotate = |
|
225 |
AffineTransform.getRotateInstance(-angle); |
|
226 |
AffineTransform inverseTranslate = |
|
227 |
AffineTransform.getTranslateInstance(axisP1.getX(), axisP1.getY()); |
|
228 |
AffineTransform at = new AffineTransform(translate); |
|
229 |
|
|
230 |
at.preConcatenate(rotate); |
|
231 |
at.preConcatenate(symmetry); |
|
232 |
at.preConcatenate(inverseRotate); |
|
233 |
at.preConcatenate(inverseTranslate); |
|
234 |
return at; |
|
235 |
} |
|
236 |
|
|
237 |
public EditingServiceParameter next() { |
|
238 |
if (values.get(selectionParameter) == null) { |
|
239 |
return this.selectionParameter; |
|
240 |
} else if (values.get(firstPointParameter) == null) { |
|
241 |
return this.firstPointParameter; |
|
242 |
} else if (values.get(secondPointParameter) == null) { |
|
243 |
return this.secondPointParameter; |
|
244 |
} else if (values.get(deleteOriginalGeometriesParameter) == null) { |
|
245 |
return this.deleteOriginalGeometriesParameter; |
|
246 |
} |
|
247 |
return null; |
|
248 |
} |
|
249 |
|
|
250 |
public void stop() { |
|
251 |
values.clear(); |
|
252 |
} |
|
253 |
|
|
254 |
private void validateAndInsertValue(EditingServiceParameter param, |
|
255 |
Object value) throws InvalidEntryException { |
|
256 |
if (param == selectionParameter) { |
|
257 |
if (value instanceof FeatureSelection) { |
|
258 |
values.put(param, value); |
|
259 |
return; |
|
260 |
} |
|
261 |
} else if (param == firstPointParameter) { |
|
262 |
if (value instanceof Point) { |
|
263 |
values.put(param, value); |
|
264 |
return; |
|
265 |
} |
|
266 |
} else if (param == secondPointParameter) { |
|
267 |
if (value instanceof Point) { |
|
268 |
values.put(param, value); |
|
269 |
return; |
|
270 |
} |
|
271 |
} else if (param == deleteOriginalGeometriesParameter) { |
|
272 |
if (value instanceof String) { |
|
273 |
if (((String) value).trim().equalsIgnoreCase( |
|
274 |
i18nManager.getTranslation("short_yes"))) { |
|
275 |
deleteOriginalGeometries = true; |
|
276 |
} else if (((String) value).trim().equalsIgnoreCase( |
|
277 |
i18nManager.getTranslation("short_no"))) { |
|
278 |
deleteOriginalGeometries = false; |
|
279 |
} else { |
|
280 |
throw new InvalidEntryException(null); |
|
281 |
} |
|
282 |
values.put(param, value); |
|
283 |
} |
|
284 |
} |
|
285 |
|
|
286 |
} |
|
287 |
|
|
288 |
public List<EditingServiceParameter> getParameters() { |
|
289 |
List<EditingServiceParameter> list = |
|
290 |
new ArrayList<EditingServiceParameter>(); |
|
291 |
list.add(selectionParameter); |
|
292 |
list.add(firstPointParameter); |
|
293 |
list.add(secondPointParameter); |
|
294 |
return list; |
|
295 |
} |
|
296 |
|
|
297 |
public void setValue(Object value) throws InvalidEntryException { |
|
298 |
EditingServiceParameter param = next(); |
|
299 |
validateAndInsertValue(param, value); |
|
300 |
} |
|
301 |
|
|
302 |
public void finishAndStore() throws FinishServiceException { |
|
303 |
|
|
304 |
FeatureSelection selected = |
|
305 |
(FeatureSelection) values.get(selectionParameter); |
|
306 |
try { |
|
307 |
if (!selected.isEmpty()) { |
|
308 |
Point p1 = (Point) values.get(firstPointParameter); |
|
309 |
Point p2 = (Point) values.get(secondPointParameter); |
|
310 |
if ((p1 != null) && (p2 != null)) { |
|
311 |
|
|
312 |
AffineTransform at; |
|
313 |
try { |
|
314 |
at = getSymmetryAffineTransform(p1, p2); |
|
315 |
} catch (GeometryOperationNotSupportedException e) { |
|
316 |
throw new FinishServiceException(e); |
|
317 |
} catch (GeometryOperationException e) { |
|
318 |
throw new FinishServiceException(e); |
|
319 |
} |
|
320 |
|
|
321 |
DisposableIterator it; |
|
322 |
it = selected.fastIterator(); |
|
323 |
|
|
324 |
while (it.hasNext()) { |
|
325 |
Feature feature = (Feature) it.next(); |
|
326 |
Geometry geom = |
|
327 |
feature.getDefaultGeometry().cloneGeometry(); |
|
328 |
geom.transform(at); |
|
329 |
if (this.deleteOriginalGeometries) { |
|
330 |
// Se sustituye la geometr?a original por la |
|
331 |
// calculada |
|
332 |
EditableFeature editableFeature = |
|
333 |
feature.getEditable(); |
|
334 |
editableFeature.setDefaultGeometry(geom); |
|
335 |
((EditingProviderServices) getProviderServices()) |
|
336 |
.updateFeatureInFeatureStore(editableFeature, |
|
337 |
featureStore); |
|
338 |
} else { |
|
339 |
// Se crea una feature nueva copiando los valores de |
|
340 |
// la feature original excepto aquellos que sean PK |
|
341 |
EditingProviderServices editingProviderServices = |
|
342 |
(EditingProviderServices) getProviderServices(); |
|
343 |
EditableFeature editableFeature = |
|
344 |
editingProviderServices |
|
345 |
.getFeatureCopyWithoutPK(featureStore, |
|
346 |
feature); |
|
347 |
editableFeature.setDefaultGeometry(geom); |
|
348 |
editingProviderServices |
|
349 |
.insertFeatureIntoFeatureStore(editableFeature, |
|
350 |
featureStore); |
|
351 |
} |
|
352 |
} |
|
353 |
it.dispose(); |
|
354 |
featureStore.getFeatureSelection().deselectAll(); |
|
355 |
} |
|
356 |
} |
|
357 |
} catch (DataException e) { |
|
358 |
throw new FinishServiceException(e); |
|
359 |
} |
|
360 |
} |
|
361 |
|
|
362 |
public Geometry finish() throws FinishServiceException { |
|
363 |
return null; |
|
364 |
} |
|
365 |
|
|
366 |
public void start() throws StartServiceException { |
|
367 |
this.values = new HashMap<EditingServiceParameter, Object>(); |
|
368 |
FeatureSelection selected = null; |
|
369 |
if (featureStore != null) { |
|
370 |
try { |
|
371 |
selected = |
|
372 |
(FeatureSelection) featureStore.getFeatureSelection() |
|
373 |
.clone(); |
|
374 |
} catch (DataException e) { |
|
375 |
throw new StartServiceException(e); |
|
376 |
} catch (CloneNotSupportedException e) { |
|
377 |
// Do nothing |
|
378 |
} |
|
379 |
if ((selected != null) && (selected.getSelectedCount() > 0)) { |
|
380 |
values.put(selectionParameter, selected); |
|
381 |
} |
|
382 |
} |
|
383 |
} |
|
384 |
|
|
385 |
public String getName() { |
|
386 |
return SymmetryEditingProviderFactory.PROVIDER_NAME; |
|
387 |
} |
|
388 |
|
|
389 |
} |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15/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.15/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.15/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.15/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.15</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 |
</dependencies> |
|
25 |
</project> |
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15/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.15</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.15/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.111</version> |
|
7 |
</parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.vectorediting.symmetry</artifactId> |
|
10 |
<version>1.0.15</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.15</connection> |
|
36 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-vectorediting/org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15</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.15</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 |
|
|
60 |
<dependencyManagement> |
|
61 |
<dependencies> |
|
62 |
<dependency> |
|
63 |
<groupId>org.gvsig</groupId> |
|
64 |
<artifactId> |
|
65 |
org.gvsig.vectorediting |
|
66 |
</artifactId> |
|
67 |
<version>${org.gvsig.vectorediting.version}</version> |
|
68 |
<scope>import</scope> |
|
69 |
<type>pom</type> |
|
70 |
</dependency> |
|
71 |
<dependency> |
|
72 |
<groupId>org.gvsig</groupId> |
|
73 |
<artifactId>org.gvsig.vectorediting.symmetry.lib.prov.symmetry</artifactId> |
|
74 |
<version>1.0.15</version> |
|
75 |
</dependency> |
|
76 |
</dependencies> |
|
77 |
</dependencyManagement> |
|
78 |
|
|
79 |
<modules> |
|
80 |
<module>org.gvsig.vectorediting.symmetry.lib</module> |
|
81 |
<module>org.gvsig.vectorediting.symmetry.app</module> |
|
82 |
</modules> |
|
83 |
|
|
84 |
<properties> |
|
85 |
<org.gvsig.vectorediting.version>1.0.21</org.gvsig.vectorediting.version> |
|
86 |
</properties> |
|
87 |
</project> |
|
88 |
|
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15/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.15</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.15/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="600800000"> |
|
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.15/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 |
|
org.gvsig.vectorediting.symmetry/tags/org.gvsig.vectorediting.symmetry-1.0.15/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.15</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.15/org.gvsig.vectorediting.symmetry.app/org.gvsig.vectorediting.symmetry.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Tue Nov 03 21:29:51 CET 2015 |
|
2 |
buildNumber=17 |
Also available in: Unified diff