public abstract class ESRIRecord extends ShapeUtils
Modifier and Type | Field and Description |
---|---|
int |
contentLength
The length of the data portion of this record.
|
int |
recordNumber
The ordinal of this record.
|
DBF_ATTRIBUTE, DBF_AUTOINCREMENT, DBF_BINARY, DBF_CHARACTER, DBF_DATE, DBF_DOUBLE, DBF_FLOAT, DBF_LOGICAL, DBF_LONG, DBF_MEMO, DBF_NUMERIC, DBF_OLE, DBF_TIMESTAMP, DBF_TYPE_AUTOINCREMENT, DBF_TYPE_BINARY, DBF_TYPE_CHARACTER, DBF_TYPE_DATE, DBF_TYPE_DOUBLE, DBF_TYPE_FLOAT, DBF_TYPE_LOGICAL, DBF_TYPE_LONG, DBF_TYPE_MEMO, DBF_TYPE_NUMERIC, DBF_TYPE_OLE, DBF_TYPE_TIMESTAMP, PARAM_DBF, PARAM_SHP, PARAM_SHX, SHAPE_BOUNDS_ATTRIBUTE, SHAPE_DBF_DASHPATTERN, SHAPE_DBF_DASHPHASE, SHAPE_DBF_DESCRIPTION, SHAPE_DBF_FILLCOLOR, SHAPE_DBF_INFO_ATTRIBUTE, SHAPE_DBF_LINECOLOR, SHAPE_DBF_LINEWIDTH, SHAPE_DBF_SELECTCOLOR, SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_INDEX_ATTRIBUTE, SHAPE_MAX_MEASURE_ATTRIBUTE, SHAPE_MAX_Z_ATTRIBUTE, SHAPE_MEASURE_ATTRIBUTE, SHAPE_MIN_MEASURE_ATTRIBUTE, SHAPE_MIN_Z_ATTRIBUTE, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPATCH, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_MULTIPOINTM, SHAPE_TYPE_MULTIPOINTZ, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POINTM, SHAPE_TYPE_POINTZ, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYGONM, SHAPE_TYPE_POLYGONZ, SHAPE_TYPE_POLYLINE, SHAPE_TYPE_POLYLINEM, SHAPE_TYPE_POLYLINEZ, SHAPE_Z_ATTRIBUTE
Constructor and Description |
---|
ESRIRecord()
Initialize an empty record.
|
ESRIRecord(byte[] b,
int off)
Initialize a record from a buffer.
|
Modifier and Type | Method and Description |
---|---|
abstract OMGeometry |
addOMGeometry(OMGeometryList list)
Generates OMGeometry and adds them to the given list.
|
abstract void |
addOMGraphics(OMGraphicList list,
DrawingAttributes drawingAttributes)
Generates 2D OMGraphics and adds them to the given list.
|
int |
getBinaryStoreSize()
Returns the number of bytes needed to store the record header
and record data.
|
abstract ESRIBoundingBox |
getBoundingBox()
Gets this record's bounding box.
|
int |
getContentLength()
Accessor for the content length of this record.
|
abstract int |
getRecordLength()
Yields the length of this record's data portion.
|
int |
getRecordNumber()
Accessor for record number field.
|
abstract int |
getShapeType()
Gets this record's shape type as an int.
|
int |
write(byte[] b,
int off)
Writes this record to the given buffer at the given offset.
|
getStringForType, readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint
public int recordNumber
public int contentLength
public ESRIRecord()
public ESRIRecord(byte[] b, int off)
b
- the bufferoff
- the offsetpublic abstract void addOMGraphics(OMGraphicList list, DrawingAttributes drawingAttributes)
list
- the graphics listdrawingAttributes
- Attributes that describe how to render
the graphics.public abstract OMGeometry addOMGeometry(OMGeometryList list)
list
- the geometry listpublic abstract ESRIBoundingBox getBoundingBox()
public abstract int getShapeType()
public abstract int getRecordLength()
public int getBinaryStoreSize()
public int write(byte[] b, int off)
b
- the bufferoff
- the offsetpublic int getRecordNumber()
public int getContentLength()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details