IndexFile class
IndexFile parser for .shx files.
For now, the creation of index files is done in the ShapefileWriter. But this can be used to
access the index.
For details on the index file, see
"ESRI(r) Shapefile - A
Technical Description"
@author Ian Schneider
Constructors
- IndexFile(AFileReader afileReader)
Properties
- afileReader ↔ AFileReader
-
getter/setter pair
- buf ↔ LByteBuffer
-
getter/setter pair
- channelOffset ↔ int
-
getter/setter pair
- closed ↔ bool
-
getter/setter pair
-
content
↔ List<
int> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- header ↔ ShapefileHeader
-
getter/setter pair
- lastIndex ↔ int
-
getter/setter pair
- recLen ↔ int
-
getter/setter pair
- recOffset ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
) → void -
close(
) → void -
finalize(
) → void -
getContentLength(
int index) → int - Get the content length of the given record in bytes, not 16 bit words.
-
getHeader(
) → ShapefileHeader - Get the header of this index file.
-
getOffset(
int index) → Future< int> - Get the offset of the record (in 16-bit words).
-
getOffsetInBytes(
int index) → Future< int> - Get the offset of the record (in real bytes, not 16-bit words).
-
getRecordCount(
) → int - Get the number of records in this index.
-
id(
) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< void> - Load the index file from the given reader.
-
readHeader(
AFileReader channel) → Future< void> -
readRecord(
int index) → Future< void> -
readRecords(
AFileReader channel) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- RECS_IN_BUFFER → int
-
final