|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.shpapi.FileHeader
public class FileHeader
Class representing an ESRI Index File Header.
Uses class ByteUtils ShapeUtils modified from the original package com.bbn.openmap.layer.shape
Copyright (C) 1998 BBN Corporation 10 Moulton St. Cambridge, MA 02138
Constructor Summary | |
---|---|
FileHeader(java.io.RandomAccessFile rafShp_)
Construct a IndexFileHeader from a file name. |
|
FileHeader(java.io.RandomAccessFile rafShp_,
boolean newHeader)
Construct a IndexFileHeader from a file name. |
Method Summary | |
---|---|
long |
getFileLength()
method: getFileLength() returns the length of the shape file in bytes |
SHPEnvelope |
getFileMBR()
method: getFileMBR(); Returns the bounding box of this shape file. |
int |
getFileShapeType()
method: getFileShapeType() returns the code for the shape type of the file |
int |
getFileVersion()
method: getFileVersion() returns the version of the shape file |
void |
writeHeader()
method: writeHeader() Writes a blank header into the shape file. |
void |
writeHeader(int filelength,
int shptype,
SHPEnvelope mbr)
method: writeHeader(int filelength, byte shptype,SHPEnvelope mbr) Writes a header into the shape file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHeader(java.io.RandomAccessFile rafShp_) throws java.io.IOException
rafShp_
-
java.io.IOException
public FileHeader(java.io.RandomAccessFile rafShp_, boolean newHeader) throws java.io.IOException
rafShp_
- newHeader
-
java.io.IOException
Method Detail |
---|
public SHPEnvelope getFileMBR()
public long getFileLength()
public int getFileVersion()
public int getFileShapeType()
public void writeHeader() throws java.io.IOException
java.io.IOException
public void writeHeader(int filelength, int shptype, SHPEnvelope mbr) throws java.io.IOException
filelength
- shptype
- mbr
-
java.io.IOException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org