Beispiel #1
0
 public ShapefileHeaderField(WordCount offset) : base(offset)
 {
     FileCode   = new IntField(offset, Endianness.Big);
     Unused1    = new IntField(offset + WordCount.FromBytes(4), Endianness.Big);
     Unused2    = new IntField(offset + WordCount.FromBytes(8), Endianness.Big);
     Unused3    = new IntField(offset + WordCount.FromBytes(12), Endianness.Big);
     Unused4    = new IntField(offset + WordCount.FromBytes(16), Endianness.Big);
     Unused5    = new IntField(offset + WordCount.FromBytes(20), Endianness.Big);
     FileLength = new WordCountField(offset + WordCount.FromBytes(24));
     Version    = new IntField(offset + WordCount.FromBytes(28), Endianness.Little);
     ShapeType  = new ShapeTypeField(offset + WordCount.FromBytes(32));
     BoxMin     = new PointZField(
         offset + WordCount.FromBytes(36),
         offset + WordCount.FromBytes(44),
         offset + WordCount.FromBytes(68),
         offset + WordCount.FromBytes(84)
         );
     BoxMax = new PointZField(
         offset + WordCount.FromBytes(52),
         offset + WordCount.FromBytes(60),
         offset + WordCount.FromBytes(76),
         offset + WordCount.FromBytes(92)
         );
 }
Beispiel #2
0
 public MultiPatchShapeField(WordCount offset) : base(offset)
 {
     Box       = new BoundingBox2dField(offset);
     NumParts  = new IntField(offset + WordCount.FromBytes(32), Endianness.Little);
     NumPoints = new IntField(offset + WordCount.FromBytes(36), Endianness.Little);
 }
Beispiel #3
0
 public ShpRecordHeaderField(WordCount offset) : base(offset)
 {
     RecordNumber  = new IntField(offset, Endianness.Big);
     ContentLength = new WordCountField(offset + RecordNumber.Length);
 }
Beispiel #4
0
 public MultiPartGeometryField(WordCount offset) : base(offset)
 {
     Box       = new BoundingBox2dField(offset);
     NumParts  = new IntField(Box.Offset + Box.Length, Endianness.Little);
     NumPoints = new IntField(NumParts.Offset + NumParts.Length, Endianness.Little);
 }
 public MultiPointMShapeField(WordCount offset) : base(offset)
 {
     Box       = new BoundingBox2dField(offset);
     NumPoints = new IntField(offset + Box.Length, Endianness.Little);
 }
Beispiel #6
0
 public ShapeTypeField(WordCount offset) : base(offset)
 {
     //In the ESRI spec, ShapeType values are always Little-Endian
     ShapeTypeIntField = new IntField(offset, Endianness.Little);
 }