Revision 4621 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/fmap/layers/FLyrGeoRaster.java
FLyrGeoRaster.java | ||
---|---|---|
55 | 55 |
import com.iver.cit.gvsig.fmap.operations.Cancellable; |
56 | 56 |
import com.iver.cit.gvsig.gui.View; |
57 | 57 |
import com.iver.cit.gvsig.gui.Dialogs.GeoreferencingDialog; |
58 |
import com.iver.cit.gvsig.gui.Panels.TablePointsPanel.PointTable; |
|
59 | 58 |
|
60 | 59 |
|
61 | 60 |
/** |
... | ... | |
75 | 74 |
* Dialogo de georreferenciaci?n asociado a la capa. |
76 | 75 |
*/ |
77 | 76 |
private GeoreferencingDialog geoDialog = null; |
77 |
|
|
78 | 78 |
/** |
79 | 79 |
* Funci?n encargada de realizar la transformaci?n para las coordenadas |
80 | 80 |
* del viewPort que se quiere dibujar. Para esta transformaci?n se tiene |
... | ... | |
86 | 86 |
*/ |
87 | 87 |
public ViewPort toImageCoord(ViewPort vp) throws DriverException{ |
88 | 88 |
this.viewPortWithoutTransformation = vp; |
89 |
|
|
89 | 90 |
if(this.assignExtent == null) |
90 | 91 |
return vp; |
91 | 92 |
|
... | ... | |
101 | 102 |
assignExtent.height()); |
102 | 103 |
Rectangle2D imageExtent = super.getFullExtent(); |
103 | 104 |
Rectangle2D vpExtent = vp.getExtent(); |
104 |
double vpMinX = 0D, vpMinY = 0D; |
|
105 |
|
|
105 |
|
|
106 | 106 |
//Traslaci?n del viewport estando el extent posicionado en el 0,0 |
107 | 107 |
Rectangle2D vpTrasExtent = new Rectangle2D.Double( vpExtent.getMinX() - userExtent.getMinX(), |
108 | 108 |
vpExtent.getMinY() - userExtent.getMinY(), |
... | ... | |
284 | 284 |
*/ |
285 | 285 |
public Point2D img2World(Point2D pixel){ |
286 | 286 |
Point2D p = new Point2D.Double(); |
287 |
double wcWidth = 0.0, wcHeight = 0.0, ptoWCX = 0.0, ptoWCY = 0.0;
|
|
287 |
double wcWidth = 0.0, wcHeight = 0.0; |
|
288 | 288 |
int pixelImgX = 0, pixelImgY = 0; |
289 | 289 |
try{ |
290 | 290 |
wcWidth = getFullExtent().getWidth(); |
Also available in: Unified diff