Revision 19621 trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/process/GeoreferencingProcess.java

View differences:

GeoreferencingProcess.java
108 108
	
109 109
	private int[]                    bands              = null;
110 110
	
111
	//Tama?o de celda si es pasada por el usuario
112
	private double                   cellSize           = 0;
111
	//Tama?o de celda en X si es pasada por el usuario
112
	private double                   xCellSize           = 0;
113
	//Tama?o de celda en Y si es pasada por el usuario
114
	private double                   yCellSize           = 0;
113 115
	
114 116
	/** Metodo que recoge los parametros del proceso georreferenciacion de un raster
115 117
	* <LI>rasterSE: capa a georeferenciar</LI>
......
124 126
		gpcs = (GeoPoint[])getParam("gpcs");
125 127
		orden= (int)getIntParam("orden");
126 128
		bands = new int[rasterSE.getBandCount()];
127
		cellSize = (double)getDoubleParam("cellSize");
129
		xCellSize = (double)getDoubleParam("xCellSize");
130
		yCellSize = (double)getDoubleParam("yCellSize");
128 131
		
129 132
		for(int i=0; i<rasterSE.getBandCount(); i++)
130 133
			bands[i]= i;
......
162 165
		double ymax=Math.max( Math.max(p1[1],p2[1]),Math.max(p3[1],p4[1]));
163 166
		
164 167
		// OJO CON EL TAMA?O DE CELDA: CONSULTAR PARA EJEMPLO DE JOSE ES 25
165
		if(cellSize <= 0)
166
			cellSize = (xmax - xmin) / (double)rasterSE.getPxWidth();
168
		if(xCellSize <= 0)
169
			xCellSize = (xmax - xmin) / (double)rasterSE.getPxWidth();
170
		if(yCellSize <= 0)
171
			yCellSize = (ymax - ymin) / (double)rasterSE.getPxHeight();
167 172
			
168
		newExtend= new GridExtent(xmin, ymin, xmax, ymax, cellSize);
173
		newExtend= new GridExtent(xmin, ymin, xmax, ymax, xCellSize);
169 174
		int datatype= rasterSE.getBufferFactory().getRasterBuf().getDataType();
170 175
		
171 176
		try {

Also available in: Unified diff