Revision 9056 branches/v10/libraries/libCq CMS for java.old/src/org/cresques/io/GdalFile.java
GdalFile.java | ||
---|---|---|
30 | 30 |
import java.awt.image.BufferedImage; |
31 | 31 |
import java.awt.image.DataBuffer; |
32 | 32 |
import java.io.IOException; |
33 |
import java.util.Date; |
|
34 | 33 |
import java.util.Vector; |
35 | 34 |
|
36 | 35 |
import org.cresques.cts.ICoordTrans; |
37 | 36 |
import org.cresques.cts.IProjection; |
38 | 37 |
import org.cresques.filter.RasterBuf; |
39 | 38 |
import org.cresques.io.data.Metadata; |
39 |
import org.cresques.io.exceptions.NotSupportedExtensionException; |
|
40 | 40 |
import org.cresques.px.Extent; |
41 | 41 |
|
42 | 42 |
import es.gva.cit.jgdal.Gdal; |
... | ... | |
717 | 717 |
|
718 | 718 |
private Extent v = null; |
719 | 719 |
|
720 |
public GdalFile(IProjection proj, String fName){ |
|
720 |
public GdalFile(IProjection proj, String fName)throws NotSupportedExtensionException{
|
|
721 | 721 |
super(proj, fName); |
722 | 722 |
extent = new Extent(); |
723 | 723 |
try { |
... | ... | |
731 | 731 |
setBand(BLUE_BAND, 2); |
732 | 732 |
} else |
733 | 733 |
setBand(RED_BAND|GREEN_BAND|BLUE_BAND, 0); |
734 |
} catch (GdalException e) { |
|
735 |
throw new NotSupportedExtensionException("Extension not supported"); |
|
734 | 736 |
} catch(Exception e){ |
735 | 737 |
System.out.println("Error en GdalOpen"); |
736 | 738 |
e.printStackTrace(); |
Also available in: Unified diff