Revision 1260 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.intersection/src/main/java/org/gvsig/geoprocess/algorithm/intersection/IntersectionAlgorithm.java
IntersectionAlgorithm.java | ||
---|---|---|
59 | 59 |
public static final String INTER = "INTER"; |
60 | 60 |
public static final String SELECTGEOM_INPUT = "SELECTGEOM_INPUT"; |
61 | 61 |
public static final String SELECTGEOM_OVERLAY = "SELECTGEOM_OVERLAY"; |
62 |
private NamesTranslator nameTranslator; |
|
63 | 62 |
|
63 |
|
|
64 | 64 |
/* |
65 | 65 |
* (non-Javadoc) |
66 | 66 |
* @see es.unex.sextante.core.GeoAlgorithm#defineCharacteristics() |
... | ... | |
164 | 164 |
|
165 | 165 |
IntersectionOperation operation = new IntersectionOperation(storeOverlay, this); |
166 | 166 |
operation.setTaskStatus(getStatus()); |
167 |
this.nameTranslator = NamesTranslator.createTrimTranslator(10);
|
|
167 |
this.namesTranslator = NamesTranslator.createTrimTranslator(11);
|
|
168 | 168 |
|
169 | 169 |
//La de puntos se genera siempre |
170 | 170 |
outFeatStorePoint = |
171 | 171 |
buildOutPutStoreFromUnion(featureType1, featureType2, |
172 | 172 |
IVectorLayer.SHAPE_TYPE_POINT, |
173 |
getTranslation("Intersection_point"), RESULT_POINT,nameTranslator);
|
|
173 |
getTranslation("Intersection_point"), RESULT_POINT); |
|
174 | 174 |
|
175 | 175 |
if (outFeatStorePoint != null) { |
176 | 176 |
getStatus().setTitle("Point"); |
... | ... | |
181 | 181 |
if (isPolygon(storeLayer) && isPolygon(storeOverlay)) { |
182 | 182 |
outFeatStorePol = |
183 | 183 |
buildOutPutStoreFromUnion(featureType1, featureType2, |
184 |
IVectorLayer.SHAPE_TYPE_POLYGON, getTranslation("Intersection_polygon"), RESULT_POL, nameTranslator);
|
|
184 |
IVectorLayer.SHAPE_TYPE_POLYGON, getTranslation("Intersection_polygon"), RESULT_POL); |
|
185 | 185 |
if (outFeatStorePol != null) { |
186 | 186 |
getStatus().setTitle("Polygon"); |
187 | 187 |
operation.computesGeometryOperation(storeLayer, |
... | ... | |
194 | 194 |
if (!isPoint(storeLayer) && !isPoint(storeOverlay)) { |
195 | 195 |
outFeatStoreLine = |
196 | 196 |
buildOutPutStoreFromUnion(featureType1, featureType2, |
197 |
IVectorLayer.SHAPE_TYPE_LINE, getTranslation("Intersection_line"), RESULT_LINE, nameTranslator);
|
|
197 |
IVectorLayer.SHAPE_TYPE_LINE, getTranslation("Intersection_line"), RESULT_LINE); |
|
198 | 198 |
if (outFeatStoreLine != null) { |
199 | 199 |
getStatus().setTitle("Line"); |
200 | 200 |
operation.computesGeometryOperation(storeLayer, |
Also available in: Unified diff