Exemple #1
0
 public void ReadFrom(Stream is1)
 {
     try
     {
         this.mapInfo = MapInfoDocument.Parse(is1).GetMapInfo();
         this.maps    = new Dictionary <int, XSSFMap>();
         foreach (CT_Map ctMap in this.mapInfo.Map)
         {
             this.maps[(int)ctMap.ID] = new XSSFMap(ctMap, this);
         }
     }
     catch (XmlException ex)
     {
         throw new IOException(ex.Message);
     }
 }
Exemple #2
0
        public void ReadFrom(XmlDocument xmldoc)
        {
            try
            {
                MapInfoDocument doc = MapInfoDocument.Parse(xmldoc, NamespaceManager);
                mapInfo = doc.GetMapInfo();

                maps = new Dictionary <int, XSSFMap>();
                foreach (CT_Map map in mapInfo.Map)
                {
                    maps[(int)map.ID] = new XSSFMap(map, this);
                }
            }
            catch (XmlException e)
            {
                throw new IOException(e.Message);
            }
        }