Revision 12433
branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrRaster.java | ||
---|---|---|
850 | 850 |
} |
851 | 851 |
|
852 | 852 |
public boolean reProject(MapControl mapC) { |
853 |
|
|
854 |
//Descomentar cuando se valla a habilitar la reproyecci�n de raster |
|
855 |
|
|
856 |
// ViewPort vPort = mapC.getViewPort(); |
|
857 |
// ICoordTrans ct = this.getProjection().getCT(vPort.getProjection()); |
|
858 |
// GeoRasterFile grf = ((CmsRasterDriver)this.getSource().getDriver()).getRasterFile(); |
|
859 |
// this.setCoordTrans(ct); |
|
860 |
// if(grf instanceof GdalFile){ |
|
861 |
// if((((GdalFile)grf).isGeoreferenced()) && (((GdalFile)grf).hasProjection())){ |
|
862 |
// ReprojectRaster repRaster = new ReprojectRaster(this, file, mapC); |
|
863 |
// repRaster.warp(vPort.getProjection()); |
|
864 |
// return false; |
|
865 |
// } |
|
866 |
// } |
|
867 |
// System.err.println("coordTrans = " + this.getProjection().getAbrev() + " " |
|
868 |
// + vPort.getProjection().getAbrev()); |
|
869 |
//Si no termina el m�todo por el anterior return es que no se ha reproyectado por lo que es AddLayer el |
|
870 |
//que tiene que cargar la capa. |
|
871 | 853 |
return true; |
872 | 854 |
} |
873 | 855 |
|
Also available in: Unified diff