|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhg.igd.earth.model.input.shapefile.ShapeUtils
Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private static byte[] |
leiBuffer
A buffer for reading/writing little endian ints. |
static int |
SHAPE_FILE_HEADER_LENGTH
The length of a shape file header in bytes. |
static int |
SHAPE_FILE_HEADER_LENGTH_DB
|
static int |
SHAPE_FILE_RECORD_HEADER_LENGTH
The length of a shape file record header in bytes. |
static int |
SHAPE_TYPE_ARC
The indicator for an arc (polyline) shape type. |
static int |
SHAPE_TYPE_MULTIPOINT
The indicator for a multipoint shape type. |
static int |
SHAPE_TYPE_NULL
The indicator for a null shape type. |
static int |
SHAPE_TYPE_POINT
The indicator for a point shape type. |
static int |
SHAPE_TYPE_POLYGON
The indicator for a polygon shape type. |
static int |
SHAPE_TYPE_POLYLINE
The indicator for a polyline (arc) shape type. |
Constructor Summary | |
ShapeUtils()
|
Method Summary | |
static int |
readBEInt(byte[] b,
int off)
Reads a big endian integer. |
static ESRIBoundingBox |
readBox(byte[] b,
int off)
Reads a bounding box record. |
static double |
readLEDouble(byte[] b,
int off)
Reads a little endian double. |
static int |
readLEInt(byte[] b,
int off)
Reads a little endian integer. |
static int |
readLEInt(RandomAccessFile in)
Reads a little endian int from the current location of the given file. |
static long |
readLELong(byte[] b,
int off)
Reads a little endian 8 byte integer. |
static ESRIPoint |
readPoint(byte[] b,
int off)
Reads a point record. |
static int |
writeBEInt(byte[] b,
int off,
int val)
Writes the given integer to the given buffer at the given location in big endian format. |
static int |
writeBox(byte[] b,
int off,
ESRIBoundingBox box)
Writes the given bounding box to the given buffer at the given location. |
static int |
writeLEDouble(byte[] b,
int off,
double val)
Writes the given double to the given buffer at the given location in little endian format. |
static int |
writeLEInt(byte[] b,
int off,
int val)
Writes the given integer to the given buffer at the given location in little endian format. |
static int |
writeLELong(byte[] b,
int off,
long val)
Writes the given long to the given buffer at the given location in little endian format. |
static int |
writePoint(byte[] b,
int off,
ESRIPoint point)
Writes the given point to the given buffer at the given location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SHAPE_FILE_HEADER_LENGTH
public static final int SHAPE_FILE_HEADER_LENGTH_DB
public static final int SHAPE_FILE_RECORD_HEADER_LENGTH
public static final int SHAPE_TYPE_NULL
public static final int SHAPE_TYPE_POINT
public static final int SHAPE_TYPE_ARC
public static final int SHAPE_TYPE_POLYLINE
public static final int SHAPE_TYPE_POLYGON
public static final int SHAPE_TYPE_MULTIPOINT
private static byte[] leiBuffer
Constructor Detail |
public ShapeUtils()
Method Detail |
public static int readBEInt(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static int readLEInt(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static int readLEInt(RandomAccessFile in) throws IOException
in
- an input file
IOException
public static long readLELong(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the long resides
public static double readLEDouble(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the double resides
public static ESRIPoint readPoint(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static ESRIBoundingBox readBox(byte[] b, int off)
b
- the raw data bufferoff
- the offset into the buffer where the int resides
public static int writeBEInt(byte[] b, int off, int val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the integer to write
public static int writeLEInt(byte[] b, int off, int val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the integer to write
public static int writeLELong(byte[] b, int off, long val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the long to write
public static int writeLEDouble(byte[] b, int off, double val)
b
- the data bufferoff
- the offset into the buffer where writing should occurval
- the double to write
public static int writePoint(byte[] b, int off, ESRIPoint point)
b
- the data bufferoff
- the offset into the buffer where writing should occur
public static int writeBox(byte[] b, int off, ESRIBoundingBox box)
b
- the data bufferoff
- the offset into the buffer where writing should occur
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |