Package hec.map.aishape
Class AiShapeObject
java.lang.Object
hec.map.aishape.AiShapeObject
- All Implemented Interfaces:
AiShapeConst,Serializable
- Direct Known Subclasses:
AiShapeArc,AiShapeMultiPoint,AiShapePoint,AiShapePolygon
Base Class for Arc/Info Shapefile objects
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intFields inherited from interface hec.map.aishape.AiShapeConst
DEBUG, FILE_CODE, HIGHLIGHT_MODIFIER, QUERY_FLASH_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTI_POINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POINT_M, SHAPE_TYPE_POINT_Z, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYGON_M, SHAPE_TYPE_POLYGON_Z, SHAPE_TYPE_POLYLINE_M, SHAPE_TYPE_POLYLINE_Z, VERSION, XY_QUERY_TOLERANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract intReturns the number of bytes in the body of this shape when stored on disk.intField[]intgetIndex()voidintreadBoundingBox(EndianInputStream input) intreadRecord(EndianInputStream input) intRead record number and shape type for Shapefile object Check that shape type in record matches the object typeintReturns the total number of bytes in this shape when stored on disk.voidsetAttribute(Attribute attrib) voidwriteBoundingBox(EndianOutputStream output) Writes the bounding box for this shape to the output stream.abstract voidwriteRecord(EndianOutputStream output) voidwriteRecordHeader(EndianOutputStream output) Writes the record header for this shape to the output stream.
-
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
-
writeRecord
- Throws:
IOException
-
contains
-
getExtent
-
setAttribute
-
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
Writes the record header for this shape to the output stream.- Throws:
IOException
-
readRecordHeader
Read record number and shape type for Shapefile object Check that shape type in record matches the object type -
writeBoundingBox
Writes the bounding box for this shape to the output stream.- Throws:
IOException
-
readBoundingBox
-
getIndex
public int getIndex() -
getFields
-
printFields
public void printFields() -
getBytesRead
public int getBytesRead()- Returns:
-