Revision 2980 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/fmap/layers/FLyrGeoRaster.java

View differences:

FLyrGeoRaster.java
283 283
		try{
284 284
			wcWidth = getFullExtent().getWidth();
285 285
			wcHeight = getFullExtent().getHeight();
286
			pixelImgX = (int)((pixel.getX() * wcWidth) / SelectFilePanel.widthPxImg);
287
			pixelImgY = (int)((pixel.getY() * wcHeight) / SelectFilePanel.heightPxImg);
286
			pixelImgX = (int)((((pixel.getX() * wcWidth) / SelectFilePanel.widthPxImg)) + this.getFullExtent().getMinX());
287
			pixelImgY = (int)((((pixel.getY() * wcHeight) / SelectFilePanel.heightPxImg)) + this.getFullExtent().getMinY());
288 288
		}catch(DriverException ex){}
289 289
		p.setLocation(pixelImgX, pixelImgY);
290
		System.out.println("ENTRADA="+pixel);
291
		System.out.println("SALIDA="+p);
292
		System.out.println("wc AxH="+wcWidth+" "+wcHeight);
293
		System.out.println("img AxH="+SelectFilePanel.widthPxImg+" "+SelectFilePanel.heightPxImg);
294 290
		return p;
295 291
	}
296 292
	

Also available in: Unified diff