public class OgrReader extends SpatialFileReader
Modifier and Type | Class and Description |
---|---|
protected static class |
OgrReader.OgrAttribute |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Object |
GLOBAL_MUTEX |
geometryTypesFilter, READER_PARAM_FILES, READER_PARAM_LAYERS
Constructor and Description |
---|
OgrReader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Frees the resources used by the reader implementation.
|
Attribute[] |
getAttributeMetaData()
Gets the metadata associated with the data source.
|
int |
getAvailableGeometryTypes() |
protected org.gdal.ogr.Layer |
getCurrentLayer() |
java.lang.String[] |
getLayers()
Returns an array of String that defines the layers found in the
SpatiaDataSource
|
java.lang.String |
getName() |
JMapGeoElement |
getNext()
Gets the next element from the data source.
|
java.lang.String |
getParametersParserClassName() |
java.lang.String[] |
getPaths(java.lang.String params)
Returns an array of String which defined the file paths used by the reader.
|
long |
getTimeStamp()
Gets time stamp of the data file.
|
java.lang.String |
getVersion() |
boolean |
hasNext()
Determines if there are any more information to read using the
getNext method. |
void |
open(java.lang.String params)
This method opens the file for the specified layer and sets the its
parameters.
|
void |
reset()
Resets the state of the reader so that the next call to
getNext will return the first element of the data source. |
getGeometryTypesFilter, getNextColunmName, isColunmNameExists, loadReader, setGeometryTypesFilter, validateMetaData
public java.lang.String getName()
getName
in class SpatialFileReader
public java.lang.String getVersion()
getVersion
in class SpatialFileReader
public java.lang.String getParametersParserClassName()
getParametersParserClassName
in class SpatialFileReader
public void open(java.lang.String params) throws java.lang.Exception
open
in class SpatialFileReader
params
- the string containing the parameters for the layer.java.lang.Exception
protected org.gdal.ogr.Layer getCurrentLayer()
public JMapGeoElement getNext() throws java.lang.Exception
hasNext
.getNext
in class SpatialFileReader
java.lang.Exception
SpatialFileReader.hasNext()
,
SpatialFileReader.reset()
,
JMapGeoElement
public boolean hasNext() throws java.lang.Exception
getNext
method.hasNext
in class SpatialFileReader
java.lang.Exception
SpatialFileReader.getNext()
,
SpatialFileReader.reset()
public Attribute[] getAttributeMetaData() throws java.lang.Exception
getAttributeMetaData
in class SpatialFileReader
java.lang.Exception
Attribute
public java.lang.String[] getPaths(java.lang.String params)
getPaths
in class SpatialFileReader
params
- the parameters used to open the SpatialFileDatasourcepublic java.lang.String[] getLayers() throws java.lang.Exception
getLayers
in class SpatialFileReader
java.lang.Exception
public int getAvailableGeometryTypes() throws java.lang.Exception
getAvailableGeometryTypes
in class SpatialFileReader
java.lang.Exception
public long getTimeStamp() throws java.lang.Exception
getTimeStamp
in class SpatialFileReader
java.lang.Exception
public void close() throws java.lang.Exception
close
in class SpatialFileReader
java.lang.Exception
public void reset() throws java.lang.Exception
getNext
will return the first element of the data source.reset
in class SpatialFileReader
java.lang.Exception