[Mapguide-trac] [mapguide-trac] #2192: MgMultiGeometry::Deserialize doesn't work with MgAgfStream

MapGuide Open Source trac_mapguide at osgeo.org
Fri Nov 30 11:21:35 PST 2012


#2192: MgMultiGeometry::Deserialize doesn't work with MgAgfStream
------------------------------+---------------------------------------------
   Reporter:  waltweltonlair  |       Owner:  waltweltonlair
       Type:  defect          |      Status:  new           
   Priority:  high            |   Milestone:  2.5           
  Component:  General         |     Version:  2.4.0         
   Severity:  major           |    Keywords:                
External_id:                  |  
------------------------------+---------------------------------------------
 The following code currently fails:

 {{{
     Ptr<MgMultiGeometry> geom = ...;

     MgAgfReaderWriter agfReaderWriter;
     Ptr<MgByteReader> reader = agfReaderWriter.Write(geom);
     Ptr<MgGeometry> multiGeometry = agfReaderWriter.Read(reader);
 }}}

 The MgAgfReaderWriter::Read call results in a call to
 MgMultiGeometry::Deserialize with an MgAgfStream, but Deserialize is not
 correctly handling this case.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/2192>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list