Пример #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)
         );
 }
Пример #2
0
 public PointZShapeField(WordCount offset) : base(offset)
 {
     Point = new PointZField(offset);
 }