Revision 317 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.algorithm/org.gvsig.geoprocess.algorithm.clip/src/main/java/org/gvsig/geoprocess/algorithm/clip/ClipAlgorithm.java

View differences:

ClipAlgorithm.java
125 125
				ClipOperation operation = new ClipOperation(clippingGeometry, this);
126 126
				operation.setTaskStatus(getStatus());
127 127
				operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, selectedGeom, true);
128
			} else {
129
				buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_POLYGON,
130
							getTranslation("Null_polygon"), RESULT_POL);
128 131
			}
129 132
			
130 133
			if(isLine(storeLayer) || isUndefined(storeLayer)) {
......
135 138
				ClipOperation operation = new ClipOperation(clippingGeometry, this);
136 139
				operation.setTaskStatus(getStatus());
137 140
				operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, selectedGeom, true);
141
			} else {
142
				buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_LINE,
143
						getTranslation("Null_line"), RESULT_LIN);
138 144
			}
139 145
			
140 146
			if(isPoint(storeLayer) || isUndefined(storeLayer)) {
......
145 151
				ClipOperation operation = new ClipOperation(clippingGeometry, this);
146 152
				operation.setTaskStatus(getStatus());
147 153
				operation.computesGeometryOperation(storeLayer, outFeatStore, attrNames, selectedGeom, true);
154
			} else {
155
				buildOutPutStore(featureType, IVectorLayer.SHAPE_TYPE_POINT,
156
						getTranslation("Null_point"), RESULT_POINT);
148 157
			}
149 158
		} catch (DataException e) {
150 159
			Sextante.addErrorToLog(e);

Also available in: Unified diff