gistoolkit.datasources.shapefile
Class ShapeFileHeader

java.lang.Object
  extended bygistoolkit.datasources.shapefile.ShapeFileHeader

public class ShapeFileHeader
extends java.lang.Object

Class to represent the header in the shape file.


Field Summary
(package private)  int myFileCode
          File Code, must be the value 9994
(package private)  int myFileLength
          File Length;
(package private)  double myMmax
          BoundingBox Zmax
(package private)  double myMmin
          BoundingBox Zmin
(package private)  int myShapeType
           
(package private)  int myUnused1
          Unused 1;
(package private)  int myUnused2
          Unused 2;
(package private)  int myUnused3
          Unused 3;
(package private)  int myUnused4
          Unused 4;
(package private)  int myUnused5
          Unused 5;
(package private)  int myVersion
          Version of the file.
(package private)  double myXmax
          BoundingBox Xmax
(package private)  double myXmin
          BoundingBox Xmin
(package private)  double myYmax
          BoundingBox Ymax
(package private)  double myYmin
          BoundingBox Ymin
(package private)  double myZmax
          BoundingBox Zmax
(package private)  double myZmin
          BoundingBox Zmin
static int SHAPE_MULTIPATCH
           
static int SHAPE_MULTIPOINT
           
static int SHAPE_MULTIPOINTM
           
static int SHAPE_MULTIPOINTZ
           
static int SHAPE_NULL
          Shape Type Value Shape Type 0 Null Shape 1 Point 3 PolyLine 5 Polygon 8 MultiPoint 11 PointZ 13 PolyLineZ 15 PolygonZ 18 MultiPointZ 21 PointM 23 PolyLineM 25 PolygonM 28 MultiPointM 31 MultiPatch
static int SHAPE_POINT
           
static int SHAPE_POINTM
           
static int SHAPE_POINTZ
           
static int SHAPE_POLYGON
           
static int SHAPE_POLYGONM
           
static int SHAPE_POLYGONZ
           
static int SHAPE_POLYLINE
           
static int SHAPE_POLYLINEM
           
static int SHAPE_POLYLINEZ
           
 
Constructor Summary
ShapeFileHeader()
          ShapeFileHeader constructor comment.
 
Method Summary
 int getFileCode()
          Return the file code.
 Envelope getFileEnvelope()
          Get the envelope of the shape file.
 int getFileLength()
          Return the number of 16 bit words in the shape file as recorded in the header
 int getHeaderLength()
          Return the length of the header in 16 bit words..
 int getVersion()
          Return the version of the file.
 void readHeader(LEDataInputStream in)
          Read the header from the shape file.
 void setWarnings(boolean inWarning)
          Print warnings to system.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myFileCode

int myFileCode
File Code, must be the value 9994


myUnused1

int myUnused1
Unused 1;


myUnused2

int myUnused2
Unused 2;


myUnused3

int myUnused3
Unused 3;


myUnused4

int myUnused4
Unused 4;


myUnused5

int myUnused5
Unused 5;


myFileLength

int myFileLength
File Length;


myVersion

int myVersion
Version of the file.


SHAPE_NULL

public static final int SHAPE_NULL
Shape Type Value Shape Type 0 Null Shape 1 Point 3 PolyLine 5 Polygon 8 MultiPoint 11 PointZ 13 PolyLineZ 15 PolygonZ 18 MultiPointZ 21 PointM 23 PolyLineM 25 PolygonM 28 MultiPointM 31 MultiPatch

See Also:
Constant Field Values

SHAPE_POINT

public static final int SHAPE_POINT
See Also:
Constant Field Values

SHAPE_POLYLINE

public static final int SHAPE_POLYLINE
See Also:
Constant Field Values

SHAPE_POLYGON

public static final int SHAPE_POLYGON
See Also:
Constant Field Values

SHAPE_MULTIPOINT

public static final int SHAPE_MULTIPOINT
See Also:
Constant Field Values

SHAPE_POINTZ

public static final int SHAPE_POINTZ
See Also:
Constant Field Values

SHAPE_POLYLINEZ

public static final int SHAPE_POLYLINEZ
See Also:
Constant Field Values

SHAPE_POLYGONZ

public static final int SHAPE_POLYGONZ
See Also:
Constant Field Values

SHAPE_MULTIPOINTZ

public static final int SHAPE_MULTIPOINTZ
See Also:
Constant Field Values

SHAPE_POINTM

public static final int SHAPE_POINTM
See Also:
Constant Field Values

SHAPE_POLYLINEM

public static final int SHAPE_POLYLINEM
See Also:
Constant Field Values

SHAPE_POLYGONM

public static final int SHAPE_POLYGONM
See Also:
Constant Field Values

SHAPE_MULTIPOINTM

public static final int SHAPE_MULTIPOINTM
See Also:
Constant Field Values

SHAPE_MULTIPATCH

public static final int SHAPE_MULTIPATCH
See Also:
Constant Field Values

myShapeType

int myShapeType

myXmin

double myXmin
BoundingBox Xmin


myYmin

double myYmin
BoundingBox Ymin


myXmax

double myXmax
BoundingBox Xmax


myYmax

double myYmax
BoundingBox Ymax


myZmin

double myZmin
BoundingBox Zmin


myZmax

double myZmax
BoundingBox Zmax


myMmin

double myMmin
BoundingBox Zmin


myMmax

double myMmax
BoundingBox Zmax

Constructor Detail

ShapeFileHeader

public ShapeFileHeader()
ShapeFileHeader constructor comment.

Method Detail

getFileCode

public int getFileCode()
Return the file code.


getVersion

public int getVersion()
Return the version of the file.


getFileEnvelope

public Envelope getFileEnvelope()
Get the envelope of the shape file.


setWarnings

public void setWarnings(boolean inWarning)
Print warnings to system.out.


getHeaderLength

public int getHeaderLength()
Return the length of the header in 16 bit words..


getFileLength

public int getFileLength()
Return the number of 16 bit words in the shape file as recorded in the header


readHeader

public void readHeader(LEDataInputStream in)
                throws java.io.IOException
Read the header from the shape file.

Throws:
java.io.IOException