Revision 23659 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/clipping/ClippingData.java

View differences:

ClippingData.java
66 66
	 * datos.
67 67
	 */
68 68
	public void initSize() {
69
		//pxHeight = Math.abs(ulPx.getY() - lrPx.getY()) + 1;
70
		//pxWidth = Math.abs(ulPx.getX() - lrPx.getX()) + 1;
71
		
72
		//pxHeight = Math.ceil(lrPx.getY()) - Math.floor(ulPx.getY());
73
		//pxWidth = Math.ceil(lrPx.getX()) - Math.floor(ulPx.getX());
74 69
		pxHeight = Math.ceil(getPxMaxY()) - Math.floor(getPxMinY());
75 70
		pxWidth = Math.ceil(getPxMaxX()) - Math.floor(getPxMinX());
76 71
		ratioWidthHeight = (double) (pxWidth / pxHeight);
77
		//cellSize = Math.abs(ulWc.getX() - lrWc.getX()) / Math.abs(ulPx.getX() - lrPx.getX());
78 72
		updateObservers();
79 73
	}
80 74
	

Also available in: Unified diff