[mapguide-trac] #1947: Atil Raster Provider doesn't work on Linux
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Feb 3 01:41:45 EST 2012
#1947: Atil Raster Provider doesn't work on Linux
-----------------------+----------------------------------------------------
Reporter: wuma | Owner: wuma
Type: defect | Status: new
Priority: high | Milestone: 2.4
Component: Server | Version:
Severity: major | Keywords:
External_id: 1443634 |
-----------------------+----------------------------------------------------
Comment(by wuma):
It's because the dynamic_cast<> failed at below location:[[BR]]
'''{{{\Server\src\Services\Feature\ServerFeatureUtil.cpp#569 (Method:
MgByteReader* MgServerFeatureUtil::GetRaster)}}}'''
{{{
if (type == FdoStreamReaderType_Byte)
{
FdoPtr<FdoIStreamReaderTmpl<FdoByte> > byteStreamReader =
==>
FDO_SAFE_ADDREF(dynamic_cast<FdoIStreamReaderTmpl<FdoByte>*>((FdoIStreamReader*)streamReader));
CHECKNULL((FdoIStreamReaderTmpl<FdoByte>*)byteStreamReader,
L"MgServerFeatureUtil.GetRaster");
ByteSourceRasterStreamImpl* rasterStream = new
ByteSourceRasterStreamImpl(byteStreamReader);
Ptr<MgByteSource> byteSource = new MgByteSource(rasterStream);
byteSource->SetMimeType(MgMimeType::Binary);
byteReader = byteSource->GetReader();
}
}}}
Replace dynamic_cast with static_cast will fix this problem.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1947#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list