Package org.geotools.data.ogr.jni
Class JniOGR
- Object
-
- JniOGR
-
-
Constructor Summary
Constructors Constructor Description JniOGR()
-
Method Summary
-
-
-
Method Detail
-
IsGEOSEnabled
public boolean IsGEOSEnabled()
- Specified by:
IsGEOSEnabled
in interfaceOGR
-
getVersion
public String getVersion()
-
GetDriverCount
public int GetDriverCount()
- Specified by:
GetDriverCount
in interfaceOGR
-
GetDriverByName
public Object GetDriverByName(String name)
- Specified by:
GetDriverByName
in interfaceOGR
-
OpenShared
public Object OpenShared(String dataSourceName, int mode)
- Specified by:
OpenShared
in interfaceOGR
-
CheckError
public void CheckError(int code) throws IOException
Description copied from interface:OGR
Checks the ogr error status code and throws java exceptions accordingly.- Specified by:
CheckError
in interfaceOGR
- Parameters:
code
- The ogr error code.- Throws:
IOException
-
GetLastErrorMsg
public String GetLastErrorMsg()
- Specified by:
GetLastErrorMsg
in interfaceOGR
-
DriverGetName
public String DriverGetName(Object driver)
- Specified by:
DriverGetName
in interfaceOGR
-
DriverOpen
public Object DriverOpen(Object driver, String dataSourceName, int mode)
- Specified by:
DriverOpen
in interfaceOGR
-
DriverCreateDataSource
public Object DriverCreateDataSource(Object driver, String dataSourceName, String[] opts)
- Specified by:
DriverCreateDataSource
in interfaceOGR
-
DriverRelease
public void DriverRelease(Object driver)
- Specified by:
DriverRelease
in interfaceOGR
-
DataSourceGetDriver
public Object DataSourceGetDriver(Object dataSource)
- Specified by:
DataSourceGetDriver
in interfaceOGR
-
DataSourceGetLayerCount
public int DataSourceGetLayerCount(Object dataSource)
- Specified by:
DataSourceGetLayerCount
in interfaceOGR
-
DataSourceGetLayer
public Object DataSourceGetLayer(Object dataSource, int i)
- Specified by:
DataSourceGetLayer
in interfaceOGR
-
DataSourceGetLayerByName
public Object DataSourceGetLayerByName(Object dataSource, String name)
- Specified by:
DataSourceGetLayerByName
in interfaceOGR
-
DataSourceRelease
public void DataSourceRelease(Object dataSource)
- Specified by:
DataSourceRelease
in interfaceOGR
-
DataSourceCreateLayer
public Object DataSourceCreateLayer(Object dataSource, String name, Object srs, long geomType, String[] opts)
- Specified by:
DataSourceCreateLayer
in interfaceOGR
-
DataSourceExecuteSQL
public Object DataSourceExecuteSQL(Object dataSource, String sql, Object spatialFilter)
- Specified by:
DataSourceExecuteSQL
in interfaceOGR
-
LayerGetLayerDefn
public Object LayerGetLayerDefn(Object layer)
- Specified by:
LayerGetLayerDefn
in interfaceOGR
-
LayerGetFieldCount
public int LayerGetFieldCount(Object layerDefn)
- Specified by:
LayerGetFieldCount
in interfaceOGR
-
LayerGetFieldDefn
public Object LayerGetFieldDefn(Object layerDefn, int i)
- Specified by:
LayerGetFieldDefn
in interfaceOGR
-
LayerGetName
public String LayerGetName(Object layer)
- Specified by:
LayerGetName
in interfaceOGR
-
LayerGetGeometryType
public long LayerGetGeometryType(Object layerDefn)
- Specified by:
LayerGetGeometryType
in interfaceOGR
-
LayerGetSpatialRef
public Object LayerGetSpatialRef(Object layer)
- Specified by:
LayerGetSpatialRef
in interfaceOGR
-
LayerGetExtent
public Object LayerGetExtent(Object layer)
- Specified by:
LayerGetExtent
in interfaceOGR
-
LayerGetFeatureCount
public long LayerGetFeatureCount(Object layer)
- Specified by:
LayerGetFeatureCount
in interfaceOGR
-
LayerRelease
public void LayerRelease(Object layer)
- Specified by:
LayerRelease
in interfaceOGR
-
LayerReleaseLayerDefn
public void LayerReleaseLayerDefn(Object layerDefn)
- Specified by:
LayerReleaseLayerDefn
in interfaceOGR
-
LayerCanDeleteFeature
public boolean LayerCanDeleteFeature(Object layer)
- Specified by:
LayerCanDeleteFeature
in interfaceOGR
-
LayerCanWriteRandom
public boolean LayerCanWriteRandom(Object layer)
- Specified by:
LayerCanWriteRandom
in interfaceOGR
-
LayerCanWriteSequential
public boolean LayerCanWriteSequential(Object layer)
- Specified by:
LayerCanWriteSequential
in interfaceOGR
-
LayerCanCreateField
public boolean LayerCanCreateField(Object layer)
- Specified by:
LayerCanCreateField
in interfaceOGR
-
LayerCanIgnoreFields
public boolean LayerCanIgnoreFields(Object layer)
- Specified by:
LayerCanIgnoreFields
in interfaceOGR
-
LayerCreateField
public void LayerCreateField(Object layer, Object fieldDefn, int approx)
- Specified by:
LayerCreateField
in interfaceOGR
-
LayerSyncToDisk
public void LayerSyncToDisk(Object layer)
- Specified by:
LayerSyncToDisk
in interfaceOGR
-
LayerNewFeature
public Object LayerNewFeature(Object layerDefn)
- Specified by:
LayerNewFeature
in interfaceOGR
-
toEnvelope
public ReferencedEnvelope toEnvelope(Object extent, CoordinateReferenceSystem crs)
- Specified by:
toEnvelope
in interfaceOGR
-
LayerSetSpatialFilter
public void LayerSetSpatialFilter(Object layer, Object geometry)
- Specified by:
LayerSetSpatialFilter
in interfaceOGR
-
LayerSetAttributeFilter
public void LayerSetAttributeFilter(Object layer, String attFilter)
- Specified by:
LayerSetAttributeFilter
in interfaceOGR
-
LayerSetIgnoredFields
public int LayerSetIgnoredFields(Object layer, String[] fields)
- Specified by:
LayerSetIgnoredFields
in interfaceOGR
-
LayerResetReading
public void LayerResetReading(Object layer)
- Specified by:
LayerResetReading
in interfaceOGR
-
LayerGetNextFeature
public Object LayerGetNextFeature(Object layer)
- Specified by:
LayerGetNextFeature
in interfaceOGR
-
LayerDeleteFeature
public boolean LayerDeleteFeature(Object layer, long fid)
- Specified by:
LayerDeleteFeature
in interfaceOGR
-
LayerSetFeature
public int LayerSetFeature(Object layer, Object feature)
- Specified by:
LayerSetFeature
in interfaceOGR
-
LayerCreateFeature
public int LayerCreateFeature(Object layer, Object feature)
- Specified by:
LayerCreateFeature
in interfaceOGR
-
LayerGetFIDColumnName
public String LayerGetFIDColumnName(Object layer)
- Specified by:
LayerGetFIDColumnName
in interfaceOGR
-
FieldGetName
public String FieldGetName(Object field)
- Specified by:
FieldGetName
in interfaceOGR
-
FieldGetType
public long FieldGetType(Object field)
- Specified by:
FieldGetType
in interfaceOGR
-
FieldGetWidth
public int FieldGetWidth(Object field)
- Specified by:
FieldGetWidth
in interfaceOGR
-
FieldSetWidth
public void FieldSetWidth(Object field, int width)
- Specified by:
FieldSetWidth
in interfaceOGR
-
FieldSetJustifyRight
public void FieldSetJustifyRight(Object field)
- Specified by:
FieldSetJustifyRight
in interfaceOGR
-
FieldSetPrecision
public void FieldSetPrecision(Object field, int precision)
- Specified by:
FieldSetPrecision
in interfaceOGR
-
FieldIsIntegerType
public boolean FieldIsIntegerType(long type)
- Specified by:
FieldIsIntegerType
in interfaceOGR
-
FieldIsRealType
public boolean FieldIsRealType(long type)
- Specified by:
FieldIsRealType
in interfaceOGR
-
FieldIsBinaryType
public boolean FieldIsBinaryType(long type)
- Specified by:
FieldIsBinaryType
in interfaceOGR
-
FieldIsDateType
public boolean FieldIsDateType(long type)
- Specified by:
FieldIsDateType
in interfaceOGR
-
FieldIsTimeType
public boolean FieldIsTimeType(long type)
- Specified by:
FieldIsTimeType
in interfaceOGR
-
FieldIsDateTimeType
public boolean FieldIsDateTimeType(long type)
- Specified by:
FieldIsDateTimeType
in interfaceOGR
-
FieldIsIntegerListType
public boolean FieldIsIntegerListType(long type)
- Specified by:
FieldIsIntegerListType
in interfaceOGR
-
FieldIsRealListType
public boolean FieldIsRealListType(long type)
- Specified by:
FieldIsRealListType
in interfaceOGR
-
CreateStringField
public Object CreateStringField(String name)
- Specified by:
CreateStringField
in interfaceOGR
-
CreateIntegerField
public Object CreateIntegerField(String name)
- Specified by:
CreateIntegerField
in interfaceOGR
-
CreateRealField
public Object CreateRealField(String name)
- Specified by:
CreateRealField
in interfaceOGR
-
CreateBinaryField
public Object CreateBinaryField(String name)
- Specified by:
CreateBinaryField
in interfaceOGR
-
CreateDateField
public Object CreateDateField(String name)
- Specified by:
CreateDateField
in interfaceOGR
-
CreateTimeField
public Object CreateTimeField(String name)
- Specified by:
CreateTimeField
in interfaceOGR
-
CreateDateTimeField
public Object CreateDateTimeField(String name)
- Specified by:
CreateDateTimeField
in interfaceOGR
-
FeatureGetFID
public long FeatureGetFID(Object feature)
- Specified by:
FeatureGetFID
in interfaceOGR
-
FeatureIsFieldSet
public boolean FeatureIsFieldSet(Object feature, int i)
- Specified by:
FeatureIsFieldSet
in interfaceOGR
-
FeatureSetGeometryDirectly
public void FeatureSetGeometryDirectly(Object feature, Object geometry)
- Specified by:
FeatureSetGeometryDirectly
in interfaceOGR
-
FeatureGetGeometry
public Object FeatureGetGeometry(Object feature)
- Specified by:
FeatureGetGeometry
in interfaceOGR
-
FeatureUnsetField
public void FeatureUnsetField(Object feature, int i)
- Specified by:
FeatureUnsetField
in interfaceOGR
-
FeatureSetFieldInteger
public void FeatureSetFieldInteger(Object feature, int field, int value)
- Specified by:
FeatureSetFieldInteger
in interfaceOGR
-
FeatureSetFieldDouble
public void FeatureSetFieldDouble(Object feature, int field, double value)
- Specified by:
FeatureSetFieldDouble
in interfaceOGR
-
FeatureSetFieldBinary
public void FeatureSetFieldBinary(Object feature, int field, int length, byte[] value)
- Specified by:
FeatureSetFieldBinary
in interfaceOGR
-
FeatureSetFieldDateTime
public void FeatureSetFieldDateTime(Object feature, int field, int year, int month, int day, int hour, int minute, int second, int tz)
- Specified by:
FeatureSetFieldDateTime
in interfaceOGR
-
FeatureSetFieldString
public void FeatureSetFieldString(Object feature, int field, String str)
- Specified by:
FeatureSetFieldString
in interfaceOGR
-
FeatureGetFieldAsString
public String FeatureGetFieldAsString(Object feature, int i)
- Specified by:
FeatureGetFieldAsString
in interfaceOGR
-
FeatureGetFieldAsInteger
public int FeatureGetFieldAsInteger(Object feature, int i)
- Specified by:
FeatureGetFieldAsInteger
in interfaceOGR
-
FeatureGetFieldAsDouble
public double FeatureGetFieldAsDouble(Object feature, int i)
- Specified by:
FeatureGetFieldAsDouble
in interfaceOGR
-
FeatureGetFieldAsDateTime
public void FeatureGetFieldAsDateTime(Object feature, int i, int[] year, int[] month, int[] day, int[] hour, int[] minute, int[] second, int[] tzFlag)
- Specified by:
FeatureGetFieldAsDateTime
in interfaceOGR
-
FeatureDestroy
public void FeatureDestroy(Object feature)
- Specified by:
FeatureDestroy
in interfaceOGR
-
GetPointType
public long GetPointType()
- Specified by:
GetPointType
in interfaceOGR
-
GetPoint25DType
public long GetPoint25DType()
- Specified by:
GetPoint25DType
in interfaceOGR
-
GetLinearRingType
public long GetLinearRingType()
- Specified by:
GetLinearRingType
in interfaceOGR
-
GetLineStringType
public long GetLineStringType()
- Specified by:
GetLineStringType
in interfaceOGR
-
GetLineString25DType
public long GetLineString25DType()
- Specified by:
GetLineString25DType
in interfaceOGR
-
GetPolygonType
public long GetPolygonType()
- Specified by:
GetPolygonType
in interfaceOGR
-
GetPolygon25DType
public long GetPolygon25DType()
- Specified by:
GetPolygon25DType
in interfaceOGR
-
GetMultiPointType
public long GetMultiPointType()
- Specified by:
GetMultiPointType
in interfaceOGR
-
GetMultiLineStringType
public long GetMultiLineStringType()
- Specified by:
GetMultiLineStringType
in interfaceOGR
-
GetMultiLineString25DType
public long GetMultiLineString25DType()
- Specified by:
GetMultiLineString25DType
in interfaceOGR
-
GetMultiPolygonType
public long GetMultiPolygonType()
- Specified by:
GetMultiPolygonType
in interfaceOGR
-
GetMultiPolygon25DType
public long GetMultiPolygon25DType()
- Specified by:
GetMultiPolygon25DType
in interfaceOGR
-
GetGeometryCollectionType
public long GetGeometryCollectionType()
- Specified by:
GetGeometryCollectionType
in interfaceOGR
-
GetGeometryCollection25DType
public long GetGeometryCollection25DType()
- Specified by:
GetGeometryCollection25DType
in interfaceOGR
-
GetGeometryNoneType
public long GetGeometryNoneType()
- Specified by:
GetGeometryNoneType
in interfaceOGR
-
GetGeometryUnknownType
public long GetGeometryUnknownType()
- Specified by:
GetGeometryUnknownType
in interfaceOGR
-
GeometryGetWkbSize
public int GeometryGetWkbSize(Object geom)
- Specified by:
GeometryGetWkbSize
in interfaceOGR
-
GeometryExportToWkb
public int GeometryExportToWkb(Object geom, byte[] wkb)
- Specified by:
GeometryExportToWkb
in interfaceOGR
-
GeometryCreateFromWkb
public Object GeometryCreateFromWkb(byte[] wkb, int[] ret)
- Specified by:
GeometryCreateFromWkb
in interfaceOGR
-
GeometryExportToWkt
public String GeometryExportToWkt(Object geom, int[] ret)
- Specified by:
GeometryExportToWkt
in interfaceOGR
-
GeometryCreateFromWkt
public Object GeometryCreateFromWkt(String wkt, int[] ret)
- Specified by:
GeometryCreateFromWkt
in interfaceOGR
-
GeometryDestroy
public void GeometryDestroy(Object geometry)
- Specified by:
GeometryDestroy
in interfaceOGR
-
SpatialRefGetAuthorityCode
public String SpatialRefGetAuthorityCode(Object spatialRef, String authority)
- Specified by:
SpatialRefGetAuthorityCode
in interfaceOGR
-
SpatialRefExportToWkt
public String SpatialRefExportToWkt(Object spatialRef)
- Specified by:
SpatialRefExportToWkt
in interfaceOGR
-
SpatialRefRelease
public void SpatialRefRelease(Object spatialRef)
- Specified by:
SpatialRefRelease
in interfaceOGR
-
NewSpatialRef
public Object NewSpatialRef(String wkt)
- Specified by:
NewSpatialRef
in interfaceOGR
-
-