Revision 20840 trunk/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/layers/FLyrRasterSE.java
FLyrRasterSE.java | ||
---|---|---|
86 | 86 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
87 | 87 |
import com.iver.andami.PluginServices; |
88 | 88 |
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException; |
89 |
import com.iver.cit.gvsig.exceptions.layers.ReloadLayerException; |
|
89 | 90 |
import com.iver.cit.gvsig.fmap.ViewPort; |
90 | 91 |
import com.iver.cit.gvsig.fmap.core.FShape; |
91 | 92 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
... | ... | |
1619 | 1620 |
return false; |
1620 | 1621 |
break; |
1621 | 1622 |
case IRasterLayerActions.CREATEOVERVIEWS: |
1622 |
if (getDataSource().overviewsSupport())
|
|
1623 |
if ((getDataSource() != null) && (getDataSource().overviewsSupport()))
|
|
1623 | 1624 |
return true; |
1624 | 1625 |
else |
1625 | 1626 |
return false; |
... | ... | |
1791 | 1792 |
static public void setConfiguration(IConfiguration configuration) { |
1792 | 1793 |
FLyrRasterSE.configuration = configuration; |
1793 | 1794 |
} |
1795 |
|
|
1796 |
/* |
|
1797 |
* (non-Javadoc) |
|
1798 |
* @see com.iver.cit.gvsig.fmap.layers.FLyrDefault#reload() |
|
1799 |
*/ |
|
1800 |
public void reload() throws ReloadLayerException { |
|
1801 |
try { |
|
1802 |
super.reload(); |
|
1803 |
load(); |
|
1804 |
getMapContext().invalidate(); |
|
1805 |
} catch (LoadLayerException e) { |
|
1806 |
setAvailable(false); |
|
1807 |
throw new ReloadLayerException(getName(), e); |
|
1808 |
} |
|
1809 |
} |
|
1794 | 1810 |
|
1795 | 1811 |
/*****************************************************/ |
1796 | 1812 |
|
Also available in: Unified diff