|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iver.cit.gvsig.fmap.drivers.shp.ShapeFileHeader
Class to represent the header in the shape file.
Field Summary | |
int |
myFileCode
File Code, must be the value 9994 |
int |
myFileLength
File Length; |
double |
myMmax
BoundingBox Zmax |
double |
myMmin
BoundingBox Zmin |
int |
myShapeType
|
int |
myUnused1
Unused 1; |
int |
myUnused2
Unused 2; |
int |
myUnused3
Unused 3; |
int |
myUnused4
Unused 4; |
int |
myUnused5
Unused 5; |
int |
myVersion
Version of the file. |
double |
myXmax
BoundingBox Xmax |
double |
myXmin
BoundingBox Xmin |
double |
myYmax
BoundingBox Ymax |
double |
myYmin
BoundingBox Ymin |
double |
myZmax
BoundingBox Zmax |
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. |
java.awt.geom.Rectangle2D.Double |
getFileExtents()
Get the extents 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(java.nio.ByteBuffer in)
Read the header from the shape file. |
void |
setWarnings(boolean inWarning)
Print warnings to system.out. |
void |
write(java.nio.ByteBuffer out,
int type,
int numGeoms,
int length,
double minX,
double minY,
double maxX,
double maxY,
double minZ,
double maxZ,
double minM,
double maxM)
|
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_NULL
public static final int SHAPE_POINT
public static final int SHAPE_POLYLINE
public static final int SHAPE_POLYGON
public static final int SHAPE_MULTIPOINT
public static final int SHAPE_POINTZ
public static final int SHAPE_POLYLINEZ
public static final int SHAPE_POLYGONZ
public static final int SHAPE_MULTIPOINTZ
public static final int SHAPE_POINTM
public static final int SHAPE_POLYLINEM
public static final int SHAPE_POLYGONM
public static final int SHAPE_MULTIPOINTM
public static final int SHAPE_MULTIPATCH
public int myFileCode
public int myUnused1
public int myUnused2
public int myUnused3
public int myUnused4
public int myUnused5
public int myFileLength
public int myVersion
public int myShapeType
public double myXmin
public double myYmin
public double myXmax
public double myYmax
public double myZmin
public double myZmax
public double myMmin
public double myMmax
Constructor Detail |
public ShapeFileHeader()
Method Detail |
public int getFileCode()
public int getVersion()
public java.awt.geom.Rectangle2D.Double getFileExtents()
public void setWarnings(boolean inWarning)
inWarning
- boolean.public int getHeaderLength()
public int getFileLength()
public void readHeader(java.nio.ByteBuffer in)
in
- ByteBuffer.public void write(java.nio.ByteBuffer out, int type, int numGeoms, int length, double minX, double minY, double maxX, double maxY, double minZ, double maxZ, double minM, double maxM) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |