예제 #1
0
        internal List <Datarow> DoParserPointData(XmlNodeList nodelist, string tableName, MapExtent extent)
        {
            List <Datarow> rows = new List <Datarow>();

            foreach (XmlNode node in nodelist)
            {
                int       id;
                MapExtent textent;
                if (!DoParserIdAndExtent(node, out id, out textent))
                {
                    continue;
                }
                if (textent.IsIntersectWith(extent))
                {
                    Datarow datarow = new Datarow(textent.LeftTop, textent);
                    rows.Add(datarow);
                }
            }
            return(rows);
        }
예제 #2
0
        internal List <Datarow> DoParserLineData(XmlNodeList nodelist, string tableName, MapExtent extent)
        {
            List <Datarow> rows = new List <Datarow>();

            foreach (XmlNode node in nodelist)
            {
                int             id;
                List <MapPoint> points;
                if (!DoParserIdAndExtent(node, out id, out points))
                {
                    continue;
                }
                MapLine mapLine = new MapLine();
                mapLine.Points = points;
                if (mapLine.Extent.IsIntersectWith(extent))
                {
                    Datarow datarow = new Datarow(mapLine, mapLine.Extent);
                    rows.Add(datarow);
                }
            }
            return(rows);
        }
예제 #3
0
        internal List <Datarow> DoParserRasterData(XmlNodeList nodelist, string tableName, MapExtent extent)
        {
            List <Datarow> rows   = new List <Datarow>();
            string         ddPath = System.IO.Path.Combine(_datasourcePath, tableName + ".lsdd");

            foreach (XmlNode node in nodelist)
            {
                int       id;
                MapExtent textent;
                if (!DoParserIdAndExtent(node, out id, out textent))
                {
                    continue;
                }
                if (textent.IsIntersectWith(extent))
                {
                    string  fileddPath = ddPath + id;
                    Datarow datarow    = new Datarow(fileddPath, textent);
                    rows.Add(datarow);
                }
            }
            return(rows);
        }