Revision 1848 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/provider/DefaultRasterProvider.java
DefaultRasterProvider.java | ||
---|---|---|
119 | 119 |
protected int bandCount = 1; |
120 | 120 |
private int[] dataType = null; |
121 | 121 |
protected NoData noData = null; |
122 |
protected String wktProjection = ""; |
|
123 | 122 |
|
124 | 123 |
protected Statistics stats = null; |
125 | 124 |
protected HistogramComputer histogram = null; |
... | ... | |
548 | 547 |
|
549 | 548 |
if (projectionRmfSerializer.getResult() != null) { |
550 | 549 |
proj = (IProjection) projectionRmfSerializer.getResult(); |
551 |
wktProjection = RasterLocator.getManager().getCRSUtils().convertIProjectionToWkt((IProjection) projectionRmfSerializer.getResult()); |
|
552 | 550 |
} |
553 | 551 |
|
554 | 552 |
if( gcpSerializer.getResult() != null && |
... | ... | |
830 | 828 |
} |
831 | 829 |
|
832 | 830 |
public String getWktProjection() { |
833 |
return wktProjection; |
|
831 |
if(proj != null) |
|
832 |
return RasterLocator.getManager().getCRSUtils().convertIProjectionToWkt((IProjection) proj); |
|
833 |
return null; |
|
834 | 834 |
} |
835 | 835 |
|
836 | 836 |
/* |
... | ... | |
1447 | 1447 |
protected void finalize() throws Throwable { |
1448 | 1448 |
dataType = null; |
1449 | 1449 |
noData = null; |
1450 |
wktProjection = null; |
|
1451 | 1450 |
stats = null; |
1452 | 1451 |
histogram = null; |
1453 | 1452 |
param = null; |
Also available in: Unified diff