[fdo][FDO234][New] GDAL: Calling FdoIRaster::SetDataModel with model type of Pa...

Greg Boone greg.boone at autodesk.com
Fri Oct 27 15:10:57 EDT 2006


You can view the artifact detail at the following URL:

    https://fdo.osgeo.org/servlets/Scarab/id/FDO234

Type
 Defect

Artifact ID
 FDO234 (GDAL: Calling FdoIRaster::SetDataModel with model type of Pallette fails)

Reported by
 Greg Boone
 gregboone (greg.boone at autodesk.com)

New artifact details:
---------------------------------------------------------

- Artifact Status set to new value
  New
- Priority set to new value
  P3
- Operating system set to new value
  Windows XP
- Subcomponent set to new value
  RASTER
- Component set to new value
  GDAL
- Artifact created
- Summary set to new value
  GDAL: Calling FdoIRaster::SetDataModel with model type of Pallette fails
- Target milestone set to new value
  3.2.0
- Steps to Reproduce set to new value
  I am attempting to run the following test....

void RfpTestPng::testLoad()
{
    wprintf (L"Testing: %ls\n\n", L"RfpTestPng::testLoad()");
    FdoPtr<FdoIConnection> connection = CreateConnection();
    connection->SetConnectionString(L"DefaultRasterFileLocation=../../TestData/PNG");
    connection->Open();

    FdoICommand* cmd = connection->CreateCommand(FdoCommandType_Select);
    FdoPtr<FdoISelect> cmdSelect = dynamic_cast<FdoISelect*>(cmd);
    cmdSelect->SetFeatureClassName(L"default");
    FdoPtr<FdoIFeatureReader> featureReader = cmdSelect->Execute();

    FdoInt32 count=0;
    while (featureReader->ReadNext())
    {
        FdoStringP name = featureReader->GetString(L"FeatId");
        FdoPtr<FdoIRaster> raster = featureReader->GetRaster(L"Raster");
        FdoInt32 xsize = raster->GetImageXSize();
        FdoInt32 ysize = raster->GetImageYSize();

	  FdoPtr<FdoRasterDataModel> dataModel = raster->GetDataModel();
        FdoInt32 ppb = dataModel->GetBitsPerPixel();
	  FdoRasterDataModelType dmType = dataModel->GetDataModelType(); <<<<<

	  FdoInt32 xTileSize = dataModel->GetTileSizeX();
	  FdoInt32 yTileSize = dataModel->GetTileSizeY();

	  dataModel->SetTileSizeX(1024);
	  dataModel->SetTileSizeY(1024);

	  raster->SetDataModel(dataModel);


1) When I call GetDataModelType() I receive a response of FdoRasterDataModelType_Palette. 

2) When I call SetDataModel(dataModel) I do not change the data model type. I only change the tile size.

3) I receive an exception because of the following.... FdoRasterDataModelType_Palette not supported. 


---------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Fdo_issues mailing list