|
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.IndexFile
public class IndexFile
Class representing an ESRI Shape File.
Uses class ShapeUtils modified from the original package com.bbn.openmap.layer.shape
Copyright (C) 1998 BBN Corporation 10 Moulton St. Cambridge, MA 02138
Constructor Summary | |
---|---|
IndexFile(java.lang.String url)
Construct a IndexFile from a file name. |
|
IndexFile(java.lang.String url,
java.lang.String rwflag)
Construct a IndexFile from a file name. |
Method Summary | |
---|---|
void |
appendRecord(IndexRecord record,
SHPEnvelope mbr)
appends an index record to the indexfile |
void |
close()
|
SHPEnvelope |
getFileMBR()
method: getFileMBR() returns the minimum bounding rectangle of the shape-file |
IndexRecord[] |
getIndexArray()
method: getIndexArray() clones local field indexArray |
IndexRecord |
getIndexRecord(int RecNo)
method: getIndexRecord (int RecNo) function to get Index Record by Record number |
int |
getRecordLength(int RecNo)
method: getRecordLength (int RecNo) function to get Record Length by Record number |
int |
getRecordNum()
method: getRecordNum() function to get number of Records |
int |
getRecordOffset(int RecNo)
methode: getRecordOffset (int RecNo) function to get Record offset by Record number |
void |
writeHeader(int shptype,
SHPEnvelope mbr)
method: writeHeader(int filelength, byte shptype,SHPEnvelope mbr) Writes a header into the index file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexFile(java.lang.String url) throws java.io.IOException
url
-
java.io.IOException
public IndexFile(java.lang.String url, java.lang.String rwflag) throws java.io.IOException
url
- rwflag
-
java.io.IOException
Method Detail |
---|
public void close()
public void writeHeader(int shptype, SHPEnvelope mbr) throws java.io.IOException
shptype
- mbr
-
java.io.IOException
public SHPEnvelope getFileMBR()
public IndexRecord[] getIndexArray()
public int getRecordNum()
public int getRecordOffset(int RecNo)
RecNo
-
public int getRecordLength(int RecNo)
RecNo
-
public IndexRecord getIndexRecord(int RecNo)
RecNo
-
public void appendRecord(IndexRecord record, SHPEnvelope mbr) throws java.io.IOException
record
- 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