-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPolyLineShape.cs
More file actions
33 lines (25 loc) · 763 Bytes
/
PolyLineShape.cs
File metadata and controls
33 lines (25 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ShapeUtilities
{
public class PolyLineShape:BaseShapeRecord,IHasPoints
{
public ShpBox BoundingBox { get; set; }
public int NumParts { get; set; }
public int NumPoints { get; set; }
public List<int> Parts { get; set; }
public List<ShpPoint> Points { get; set; }
public PolyLineShape(BinaryReader br):base(br)
{
BoundingBox = new ShpBox(br);
NumParts = br.ReadInt32();
NumPoints = br.ReadInt32();
Parts = ReadParts(br, NumParts);
Points = this.ReadPoints(br, NumPoints);
}
}
}