gistoolkit.datasources.shapefile
Class EnvelopeShapeFileReader
java.lang.Object
gistoolkit.datasources.shapefile.ShapeFileStream
gistoolkit.datasources.shapefile.EnvelopeShapeFileReader
- public class EnvelopeShapeFileReader
- extends ShapeFileStream
A ShapeFileReader is used to pull shapes out of a shapefile one at a
time.
- Author:
- head
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myShpStream
protected LEDataInputStream myShpStream
myShxStream
protected LEDataInputStream myShxStream
EnvelopeShapeFileReader
public EnvelopeShapeFileReader(java.lang.String inFilename)
throws java.io.FileNotFoundException,
java.io.IOException
- Create a reader on the named file
readHeader
protected void readHeader()
- Reads the shapefile header record
read
public ShapeFileRecord read(Envelope inEnvelope)
throws java.io.IOException
- Read a single shapefile record
- Returns:
- the read shapefile record or null if there are no more records
- Throws:
java.io.IOException