Revision 1191 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.difference/src/main/java/org/gvsig/geoprocess/algorithm/difference/DifferenceAlgorithm.java
DifferenceAlgorithm.java | ||
---|---|---|
118 | 118 |
|
119 | 119 |
if (isPolygon(storeLayer) || isUndefined(storeLayer)) { |
120 | 120 |
FeatureStore outFeatStore = |
121 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_POLYGON, |
|
121 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_MULTIPOLYGON,
|
|
122 | 122 |
getTranslation("Difference_polygon"), RESULT_POL); |
123 | 123 |
|
124 | 124 |
operation.computesGeometryOperation(storeLayer, outFeatStore, |
125 | 125 |
attrNames, selectedGeomInput, selectedGeomOutput, true); |
126 | 126 |
} else { |
127 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_POLYGON, |
|
127 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_MULTIPOLYGON,
|
|
128 | 128 |
getTranslation("Null_polygon"), RESULT_POL); |
129 | 129 |
} |
130 | 130 |
|
131 | 131 |
if (isLine(storeLayer) || isUndefined(storeLayer)) { |
132 | 132 |
FeatureStore outFeatStore = |
133 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_LINE, |
|
133 |
buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_MULTILINE,
|
|
134 | 134 |
getTranslation("Difference_line"), RESULT_LINE); |
135 | 135 |
|
136 | 136 |
operation.computesGeometryOperation(storeLayer, outFeatStore, |
137 | 137 |
attrNames, selectedGeomInput, selectedGeomOutput, true); |
138 | 138 |
} else { |
139 |
buildOutPutStore(featureType.getCopy(), IVectorLayer.SHAPE_TYPE_LINE, |
|
139 |
buildOutPutStore(featureType.getCopy(), IVectorLayer.SHAPE_TYPE_MULTILINE,
|
|
140 | 140 |
getTranslation("Null_line"), RESULT_LINE); |
141 | 141 |
} |
142 | 142 |
|
Also available in: Unified diff