Class AiShapeObject

java.lang.Object
hec.map.aishape.AiShapeObject
All Implemented Interfaces:
AiShapeConst, Serializable
Direct Known Subclasses:
AiShapeArc, AiShapeMultiPoint, AiShapePoint, AiShapePolygon

public abstract class AiShapeObject extends Object implements Serializable, AiShapeConst
Base Class for Arc/Info Shapefile objects
See Also:
  • Field Details

    • _contentLength

      protected int _contentLength
    • _type

      protected int _type
    • _index

      protected int _index
    • _contentRead

      protected int _contentRead
  • Constructor Details

    • AiShapeObject

      public AiShapeObject(int type, int index)
    • AiShapeObject

      public AiShapeObject(int type)
  • Method Details

    • readRecord

      public int readRecord(EndianInputStream input)
    • writeRecord

      public abstract void writeRecord(EndianOutputStream output) throws IOException
      Throws:
      IOException
    • contains

      public boolean contains(double tolerance, WorldPt pt)
    • getExtent

      public WorldRect getExtent()
    • setAttribute

      public void setAttribute(Attribute attrib)
    • getAttribute

      public Attribute getAttribute()
    • recordByteLength

      public int recordByteLength()
      Returns the total number of bytes in this shape when stored on disk.
    • contentByteLength

      public abstract int contentByteLength()
      Returns the number of bytes in the body of this shape when stored on disk.
    • writeRecordHeader

      public void writeRecordHeader(EndianOutputStream output) throws IOException
      Writes the record header for this shape to the output stream.
      Throws:
      IOException
    • readRecordHeader

      public int readRecordHeader(EndianInputStream input)
      Read record number and shape type for Shapefile object Check that shape type in record matches the object type
    • writeBoundingBox

      public void writeBoundingBox(EndianOutputStream output) throws IOException
      Writes the bounding box for this shape to the output stream.
      Throws:
      IOException
    • readBoundingBox

      public int readBoundingBox(EndianInputStream input)
    • getIndex

      public int getIndex()
    • getFields

      public Field[] getFields()
    • printFields

      public void printFields()
    • getBytesRead

      public int getBytesRead()
      Returns: