Esempio n. 1
0
 public void AddVectors(Dictionary<GeoXYPoint, GeoPointStyle> points, Dictionary<GeoXYLine, GeoLineStyle> lines, Dictionary<GeoPolygonRegion, GeoPolygonStyle> polygons)
 {
     if (points != null)
     {
         foreach (KeyValuePair<GeoXYPoint, GeoPointStyle> pair in points)
         {
             GeoDisplayPoint item = new GeoDisplayPoint(pair.Key, pair.Value);
             this.m_PointList.Add(item);
             this.m_IsDataChangedWhenUpdating = true;
         }
     }
     if (lines != null)
     {
         foreach (KeyValuePair<GeoXYLine, GeoLineStyle> pair2 in lines)
         {
             GeoDisplayLine line = new GeoDisplayLine(pair2.Key, pair2.Value);
             this.m_LineList.Add(line);
             this.m_IsDataChangedWhenUpdating = true;
         }
     }
     if (polygons != null)
     {
         foreach (KeyValuePair<GeoPolygonRegion, GeoPolygonStyle> pair3 in polygons)
         {
             GeoDisplayPolygonRegion region = new GeoDisplayPolygonRegion(pair3.Key, pair3.Value);
             this.m_PolygonRegionList.Add(region);
             this.m_IsDataChangedWhenUpdating = true;
         }
     }
     this.RaiseDataChangedEvent(this, new EventArgs());
 }
Esempio n. 2
0
 private void ReadPointCategory(GraphicalObjectType type)
 {
     if (type == GraphicalObjectType.POINT)
     {
         double x = this.ReadDouble(ByteOrder.LittleEndian);
         double y = this.ReadDouble(ByteOrder.LittleEndian);
         GeoDisplayPoint item = new GeoDisplayPoint(new GeoXYPoint(x, y), this.m_DefaultPointStyle);
         item.AddFeature("ID", this.CreateMapUnitId());
         this.m_PointList.Add(item);
     }
     else
     {
         List<double> list = null;
         list = this.ReadValueList(1);
         if (type == GraphicalObjectType.PointM)
         {
         }
     }
 }
Esempio n. 3
0
 private void ReadPoint(string[] AlineStr)
 {
     double x = double.Parse(AlineStr[1]);
     double y = double.Parse(AlineStr[2]);
     GeoXYPoint point = new GeoXYPoint(x, y);
     GeoDisplayPoint item = new GeoDisplayPoint(point);
     this.m_PointList.Add(item);
 }