[FWTools] BuildOverviews from AutoCreateWarpedVRT

Luiz Motta luizmottanet at hotmail.com
Fri Dec 21 12:42:16 EST 2007



When i use dataset from call method Gdal.AutoCreateWarpedVRT(..)
and after i make overviews for this dataset i receive the error menssage
when dataset is dispose.

Error menssage:
ERROR 1: Attempt to destroy non-GTI transformer.

It´s is hard error ? or is the only warning.

Thanks,
Luiz Motta

PS: Code this program in C#

public static  void TestOverview()
{
Gdal.AllRegister();

// Read original dataset
Dataset ds = Gdal.Open(@"C:\_Img\Test_FWTools\UTM_sad69_sample.tif",
Access.GA_ReadOnly);

// Params for Warped
string dst_wkt;
OSGeo.OGR.SpatialReference oSR = new OSGeo.OGR.SpatialReference("");
oSR.SetWellKnownGeogCS("WGS84");
oSR.ExportToWkt(out dst_wkt);

string src_wkt = ds.GetProjection();

Dataset dsWarp = Gdal.AutoCreateWarpedVRT(ds, src_wkt, dst_wkt,
ResampleAlg.GRA_NearestNeighbour, 0);

// Free Original
ds.FlushCache();
ds.Dispose();

dsWarp.BuildOverviews("NEAREST", new int[] { 2 });
dsWarp.FlushCache();

// Show menssage:
// ERROR 1: Attempt to destroy non-GTI transformer.
dsWarp.Dispose(); 
}

-- 
View this message in context: http://www.nabble.com/BuildOverviews-from-AutoCreateWarpedVRT-tp14459532p14459532.html
Sent from the FWTools mailing list archive at Nabble.com.




More information about the FWTools mailing list