[mapguide-trac] #173: .Net API for MapGuide 1.2 Beta2 cannot access layers

MapGuide Open Source trac_mapguide at osgeo.org
Tue May 29 09:48:37 EDT 2007


#173: .Net API for MapGuide 1.2 Beta2 cannot access layers
-----------------------------------------+----------------------------------
 Reporter:  ksgeograf                    |         Owner:       
     Type:  defect                       |        Status:  new  
 Priority:  medium                       |     Milestone:  1.2  
Component:  General                      |       Version:  1.2.0
 Severity:  minor                        |    Resolution:       
 Keywords:  API layers GetLayers Unpack  |   External_id:       
-----------------------------------------+----------------------------------
Comment (by ksgeograf):

 I tested some more, and it seems that opening the map with the following
 code:
 {{{
 MgMap map = new MgMap();
 map.Open(rs, new ResourceIdentifier(...));
 }}}
 will cause the mentioned exception, when calling GetLayers()

 Using this code instead:
 {{{
 MgMap map = new MgMap();
 map.Open(rs, "Map1");
 }}}
 Will not cause the exception. This is the reason everything works fine
 with the .Net viewer.
 So, some problem exists in reading/unpacking layers from a map that was
 opened, using a resource identifier.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/173#comment:3>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list