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, validateMetaDatapublic java.lang.String getName()
getName in class SpatialFileReaderpublic java.lang.String getVersion()
getVersion in class SpatialFileReaderpublic java.lang.String getParametersParserClassName()
getParametersParserClassName in class SpatialFileReaderpublic void open(java.lang.String params)
throws java.lang.Exception
open in class SpatialFileReaderparams - the string containing the parameters for the layer.java.lang.Exceptionprotected org.gdal.ogr.Layer getCurrentLayer()
public JMapGeoElement getNext() throws java.lang.Exception
hasNext.getNext in class SpatialFileReaderjava.lang.ExceptionSpatialFileReader.hasNext(),
SpatialFileReader.reset(),
JMapGeoElementpublic boolean hasNext()
throws java.lang.Exception
getNext method.hasNext in class SpatialFileReaderjava.lang.ExceptionSpatialFileReader.getNext(),
SpatialFileReader.reset()public Attribute[] getAttributeMetaData() throws java.lang.Exception
getAttributeMetaData in class SpatialFileReaderjava.lang.ExceptionAttributepublic java.lang.String[] getPaths(java.lang.String params)
getPaths in class SpatialFileReaderparams - the parameters used to open the SpatialFileDatasourcepublic java.lang.String[] getLayers()
throws java.lang.Exception
getLayers in class SpatialFileReaderjava.lang.Exceptionpublic int getAvailableGeometryTypes()
throws java.lang.Exception
getAvailableGeometryTypes in class SpatialFileReaderjava.lang.Exceptionpublic long getTimeStamp()
throws java.lang.Exception
getTimeStamp in class SpatialFileReaderjava.lang.Exceptionpublic void close()
throws java.lang.Exception
close in class SpatialFileReaderjava.lang.Exceptionpublic void reset()
throws java.lang.Exception
getNext will return the first element of the data source.reset in class SpatialFileReaderjava.lang.Exception