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