Revision 3195 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/fmap/layers/FLyrGeoRaster.java
FLyrGeoRaster.java | ||
---|---|---|
315 | 315 |
*/ |
316 | 316 |
public Point2D world2Img(Point2D wcPoint){ |
317 | 317 |
//Si el punto cae fuera de la imagen salimos devolviendo null |
318 |
|
|
318 | 319 |
while( wcPoint.getX() < this.getMinX() || |
319 | 320 |
wcPoint.getX() > this.getMaxX() || |
320 | 321 |
wcPoint.getY() < this.getMinY() || |
... | ... | |
375 | 376 |
lyrPoints.setName("Points"); |
376 | 377 |
lyrPoints.setVisible(true); |
377 | 378 |
theView.getMapControl().getMapContext().beginAtomicEvent(); |
378 |
theView.getMapControl().getMapContext().getLayers().addLayer(lyrPoints); |
|
379 |
//theView.getMapControl().getMapContext().getLayers().addLayer(lyrPoints); |
|
380 |
FLayers virtualLayers = new FLayers(theView.getMapControl().getMapContext(), null); |
|
381 |
this.setVirtualLayers(virtualLayers); |
|
382 |
this.getVirtualLayers().addLayer(lyrPoints); |
|
379 | 383 |
theView.getMapControl().getMapContext().endAtomicEvent(); |
380 | 384 |
} |
381 | 385 |
return lyrPoints; |
... | ... | |
424 | 428 |
* dialogo y la tabla. |
425 | 429 |
* |
426 | 430 |
*/ |
427 |
public void updateData(int nPunto, Point2D pixel, Point2D map, GeoreferencingDialog dialog, View view, FLyrPoints plyr){
|
|
428 |
if(dialog == null || plyr == null)
|
|
431 |
public void updateData(int nPunto, Point2D pixel, Point2D map, GeoreferencingDialog dialog, View view){ |
|
432 |
if(dialog == null) |
|
429 | 433 |
return; |
430 | 434 |
if(pixel == null && map == null) |
431 | 435 |
return; |
... | ... | |
483 | 487 |
view.getMapControl().getMapContext().invalidate(); |
484 | 488 |
} |
485 | 489 |
//Actualizamos la capa de puntos |
486 |
plyr.updatePoint(pixel, map, nPunto - 1);
|
|
490 |
getFLyrPoints().updatePoint(pixel, map, nPunto - 1);
|
|
487 | 491 |
|
488 | 492 |
} |
489 | 493 |
|
Also available in: Unified diff