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 int
protected int
protected int
protected int
Fields 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 TypeMethodDescriptionboolean
abstract int
Returns the number of bytes in the body of this shape when stored on disk.int
Field[]
int
getIndex()
void
int
readBoundingBox
(EndianInputStream input) int
readRecord
(EndianInputStream input) int
Read record number and shape type for Shapefile object Check that shape type in record matches the object typeint
Returns the total number of bytes in this shape when stored on disk.void
setAttribute
(Attribute attrib) void
writeBoundingBox
(EndianOutputStream output) Writes the bounding box for this shape to the output stream.abstract void
writeRecord
(EndianOutputStream output) void
writeRecordHeader
(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:
-