private class BC_MIFFile.Reader extends Object implements org.geotools.data.FeatureReader
Private FeatureReader inner class for reading Features from the MIF file
Modifier and Type | Field and Description |
---|---|
private BC_MIFValueSetter[] |
fieldValueSetters |
private Object[] |
inputBuffer |
private org.geotools.feature.Feature |
inputFeature |
private BC_MIFFileTokenizer |
mid |
private BC_MIFFileTokenizer |
mif |
private boolean |
mifEOF |
private String |
mifText |
Modifier | Constructor and Description |
---|---|
private |
Reader(BC_MIFFileTokenizer mifTokenizer,
BC_MIFFileTokenizer midTokenizer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
org.geotools.feature.FeatureType |
getFeatureType() |
boolean |
hasNext() |
org.geotools.feature.Feature |
next() |
private org.geotools.feature.Feature |
readFeature()
Reads a single MIF Object (Point, Line, Region, etc.) as a Feature
|
private com.vividsolutions.jts.geom.Geometry |
readGeometry()
Reads one geometric object from the MIF file
|
private com.vividsolutions.jts.geom.Geometry |
readLineObject()
Reads Line information from the MIF stream
|
private com.vividsolutions.jts.geom.Coordinate |
readMIFCoordinate()
Reads a couple of coordinates (x,y) from input stream, applying the
transform factor if required.
|
private com.vividsolutions.jts.geom.Geometry |
readPLineObject()
Reads Multi-Line (PLine) information from the MIF stream.
|
private com.vividsolutions.jts.geom.Geometry |
readPointObject()
Reads Point information from the MIF stream
|
private com.vividsolutions.jts.geom.Geometry |
readRectObject()
Reads Line information from the MIF stream
|
private com.vividsolutions.jts.geom.Geometry |
readRegionObject()
Reads Region (Polygon) information from the MIF stream
|
private com.vividsolutions.jts.geom.Geometry |
readTextObject() |
private BC_MIFFileTokenizer mif
private BC_MIFFileTokenizer mid
private boolean mifEOF
private String mifText
private org.geotools.feature.Feature inputFeature
private Object[] inputBuffer
private BC_MIFValueSetter[] fieldValueSetters
private Reader(BC_MIFFileTokenizer mifTokenizer, BC_MIFFileTokenizer midTokenizer) throws IOException
IOException
public boolean hasNext()
hasNext
in interface org.geotools.data.FeatureReader
public org.geotools.feature.Feature next() throws NoSuchElementException
next
in interface org.geotools.data.FeatureReader
NoSuchElementException
public org.geotools.feature.FeatureType getFeatureType()
getFeatureType
in interface org.geotools.data.FeatureReader
public void close()
close
in interface org.geotools.data.FeatureReader
protected void finalize() throws Throwable
private org.geotools.feature.Feature readFeature() throws IOException
IOException
private com.vividsolutions.jts.geom.Geometry readGeometry() throws IOException
IOException
- Error retrieving geometry from input MIF streamprivate com.vividsolutions.jts.geom.Geometry readPLineObject() throws IOException
IOException
- Error retrieving geometry from input MIF streamprivate com.vividsolutions.jts.geom.Geometry readRectObject() throws IOException
IOException
- Error retrieving geometry from input MIF streamprivate com.vividsolutions.jts.geom.Geometry readRegionObject() throws IOException
IOException
- Error retrieving geometry from input MIF streamprivate com.vividsolutions.jts.geom.Coordinate readMIFCoordinate() throws IOException
IOException
- if couldn't build a valid Coordinate objectprivate com.vividsolutions.jts.geom.Geometry readPointObject() throws IOException
IOException
- Error retrieving geometry from input MIF streamprivate com.vividsolutions.jts.geom.Geometry readLineObject() throws IOException
IOException
- Error retrieving geometry from input MIF streamprivate com.vividsolutions.jts.geom.Geometry readTextObject() throws IOException
IOException
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.