| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(String url)
Construct a IndexFile from a file name.  | 
|
IndexFile(String url,
                   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(String url)
          throws IOException
url - 
IOException
public IndexFile(String url,
                 String rwflag)
          throws IOException
url - rwflag - 
IOException| Method Detail | 
|---|
public void close()
public void writeHeader(int shptype,
                        SHPEnvelope mbr)
                 throws IOException
shptype - mbr - 
IOExceptionpublic 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 IOException
record - mbr - 
IOException
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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