Revision 43 org.gvsig.sextante/trunk/org.gvsig.sextante.app/org.gvsig.sextante.app.algorithm/org.gvsig.sextante.app.algorithm.buffer/src/main/java/org/gvsig/sextante/app/algorithm/buffer/ConstantDistance.java

View differences:

ConstantDistance.java
21 21
package org.gvsig.sextante.app.algorithm.buffer;
22 22

  
23 23
import org.cresques.cts.IProjection;
24
import org.gvsig.fmap.dal.feature.Feature;
25
import org.gvsig.sextante.app.extension.core.MapTools;
24 26

  
25 27
/**
26 28
 * Computes a constant size of each geometry built
......
32 34
	 * (non-Javadoc)
33 35
	 * @see org.gvsig.sextante.app.algorithm.buffer.IDistance#getBufferDistance(double, org.cresques.cts.IProjection, int, int)
34 36
	 */
35
	public double getBufferDistance(double distance, IProjection viewProj,
37
	public double getBufferDistance(double distance, IProjection projection,
36 38
			int distanceUnits, int mapUnits) {
37
		return 0;
39
		return MapTools.getInInternalUnits(distance, projection, distanceUnits, mapUnits);
38 40
	}
39 41

  
42
	public void setFeature(Feature feature) {
43
	}
44

  
40 45
}

Also available in: Unified diff