Package org.geotools.data.ogr.jni
Class JniOGR
Object
JniOGR
- All Implemented Interfaces:
OGR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheckError(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) intDataSourceGetLayerCount(Object dataSource) voidDataSourceRelease(Object dataSource) DriverCreateDataSource(Object driver, String dataSourceName, String[] opts) DriverGetName(Object driver) DriverOpen(Object driver, String dataSourceName, int mode) voidDriverRelease(Object driver) voidFeatureDestroy(Object feature) longFeatureGetFID(Object feature) voidFeatureGetFieldAsDateTime(Object feature, int i, int[] year, int[] month, int[] day, int[] hour, int[] minute, int[] second, int[] tzFlag) doubleFeatureGetFieldAsDouble(Object feature, int i) intFeatureGetFieldAsInteger(Object feature, int i) FeatureGetFieldAsString(Object feature, int i) FeatureGetGeometry(Object feature) booleanFeatureIsFieldSet(Object feature, int i) voidFeatureSetFieldBinary(Object feature, int field, int length, byte[] value) voidFeatureSetFieldDateTime(Object feature, int field, int year, int month, int day, int hour, int minute, int second, int tz) voidFeatureSetFieldDouble(Object feature, int field, double value) voidFeatureSetFieldInteger(Object feature, int field, int value) voidFeatureSetFieldString(Object feature, int field, String str) voidFeatureSetGeometryDirectly(Object feature, Object geometry) voidFeatureUnsetField(Object feature, int i) FieldGetName(Object field) longFieldGetType(Object field) intFieldGetWidth(Object field) booleanFieldIsBinaryType(long type) booleanFieldIsDateTimeType(long type) booleanFieldIsDateType(long type) booleanFieldIsIntegerListType(long type) booleanFieldIsIntegerType(long type) booleanFieldIsRealListType(long type) booleanFieldIsRealType(long type) booleanFieldIsTimeType(long type) voidFieldSetJustifyRight(Object field) voidFieldSetPrecision(Object field, int precision) voidFieldSetWidth(Object field, int width) GeometryCreateFromWkb(byte[] wkb, int[] ret) GeometryCreateFromWkt(String wkt, int[] ret) voidGeometryDestroy(Object geometry) intGeometryExportToWkb(Object geom, byte[] wkb) GeometryExportToWkt(Object geom, int[] ret) intGeometryGetWkbSize(Object geom) GetDriver(int i) GetDriverByName(String name) intlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglongbooleanbooleanLayerCanCreateField(Object layer) booleanLayerCanDeleteFeature(Object layer) booleanLayerCanIgnoreFields(Object layer) booleanLayerCanWriteRandom(Object layer) booleanLayerCanWriteSequential(Object layer) intLayerCreateFeature(Object layer, Object feature) voidLayerCreateField(Object layer, Object fieldDefn, int approx) booleanLayerDeleteFeature(Object layer, long fid) LayerGetExtent(Object layer) longLayerGetFeatureCount(Object layer) LayerGetFIDColumnName(Object layer) intLayerGetFieldCount(Object layerDefn) LayerGetFieldDefn(Object layerDefn, int i) longLayerGetGeometryType(Object layerDefn) LayerGetLayerDefn(Object layer) LayerGetName(Object layer) LayerGetNextFeature(Object layer) LayerGetSpatialRef(Object layer) LayerNewFeature(Object layerDefn) voidLayerRelease(Object layer) voidLayerReleaseLayerDefn(Object layerDefn) voidLayerResetReading(Object layer) voidLayerSetAttributeFilter(Object layer, String attFilter) intLayerSetFeature(Object layer, Object feature) intLayerSetIgnoredFields(Object layer, String[] fields) voidLayerSetSpatialFilter(Object layer, Object geometry) voidLayerSyncToDisk(Object layer) NewSpatialRef(String wkt) OpenShared(String dataSourceName, int mode) SpatialRefExportToWkt(Object spatialRef) SpatialRefGetAuthorityCode(Object spatialRef, String authority) voidSpatialRefRelease(Object spatialRef) toEnvelope(Object extent, CoordinateReferenceSystem crs)
-
Constructor Details
-
JniOGR
public JniOGR()
-
-
Method Details
-
IsGEOSEnabled
public boolean IsGEOSEnabled()- Specified by:
IsGEOSEnabledin interfaceOGR
-
getVersion
-
GetDriverCount
public int GetDriverCount()- Specified by:
GetDriverCountin interfaceOGR
-
GetDriver
-
GetDriverByName
- Specified by:
GetDriverByNamein interfaceOGR
-
Open
-
CheckError
Description copied from interface:OGRChecks the ogr error status code and throws java exceptions accordingly.- Specified by:
CheckErrorin interfaceOGR- Parameters:
code- The ogr error code.- Throws:
IOException
-
GetLastErrorMsg
- Specified by:
GetLastErrorMsgin interfaceOGR
-
DriverGetName
- Specified by:
DriverGetNamein interfaceOGR
-
DriverOpen
- Specified by:
DriverOpenin interfaceOGR
-
DriverCreateDataSource
- Specified by:
DriverCreateDataSourcein interfaceOGR
-
DriverRelease
- Specified by:
DriverReleasein interfaceOGR
-
DataSourceGetDriver
- Specified by:
DataSourceGetDriverin interfaceOGR
-
DataSourceGetLayerCount
- Specified by:
DataSourceGetLayerCountin interfaceOGR
-
DataSourceGetLayer
- Specified by:
DataSourceGetLayerin interfaceOGR
-
DataSourceGetLayerByName
- Specified by:
DataSourceGetLayerByNamein interfaceOGR
-
DataSourceRelease
- Specified by:
DataSourceReleasein interfaceOGR
-
DataSourceCreateLayer
public Object DataSourceCreateLayer(Object dataSource, String name, Object srs, long geomType, String[] opts) - Specified by:
DataSourceCreateLayerin interfaceOGR
-
DataSourceExecuteSQL
- Specified by:
DataSourceExecuteSQLin interfaceOGR
-
LayerGetLayerDefn
- Specified by:
LayerGetLayerDefnin interfaceOGR
-
LayerGetFieldCount
- Specified by:
LayerGetFieldCountin interfaceOGR
-
LayerGetFieldDefn
- Specified by:
LayerGetFieldDefnin interfaceOGR
-
LayerGetName
- Specified by:
LayerGetNamein interfaceOGR
-
LayerGetGeometryType
- Specified by:
LayerGetGeometryTypein interfaceOGR
-
LayerGetSpatialRef
- Specified by:
LayerGetSpatialRefin interfaceOGR
-
LayerGetExtent
- Specified by:
LayerGetExtentin interfaceOGR
-
LayerGetFeatureCount
- Specified by:
LayerGetFeatureCountin interfaceOGR
-
LayerRelease
- Specified by:
LayerReleasein interfaceOGR
-
LayerReleaseLayerDefn
- Specified by:
LayerReleaseLayerDefnin interfaceOGR
-
LayerCanDeleteFeature
- Specified by:
LayerCanDeleteFeaturein interfaceOGR
-
LayerCanWriteRandom
- Specified by:
LayerCanWriteRandomin interfaceOGR
-
LayerCanWriteSequential
- Specified by:
LayerCanWriteSequentialin interfaceOGR
-
LayerCanCreateField
- Specified by:
LayerCanCreateFieldin interfaceOGR
-
LayerCanIgnoreFields
- Specified by:
LayerCanIgnoreFieldsin interfaceOGR
-
LayerCreateField
- Specified by:
LayerCreateFieldin interfaceOGR
-
LayerSyncToDisk
- Specified by:
LayerSyncToDiskin interfaceOGR
-
LayerNewFeature
- Specified by:
LayerNewFeaturein interfaceOGR
-
toEnvelope
- Specified by:
toEnvelopein interfaceOGR
-
LayerSetSpatialFilter
- Specified by:
LayerSetSpatialFilterin interfaceOGR
-
LayerSetAttributeFilter
- Specified by:
LayerSetAttributeFilterin interfaceOGR
-
LayerSetIgnoredFields
- Specified by:
LayerSetIgnoredFieldsin interfaceOGR
-
LayerResetReading
- Specified by:
LayerResetReadingin interfaceOGR
-
LayerGetNextFeature
- Specified by:
LayerGetNextFeaturein interfaceOGR
-
LayerDeleteFeature
- Specified by:
LayerDeleteFeaturein interfaceOGR
-
LayerSetFeature
- Specified by:
LayerSetFeaturein interfaceOGR
-
LayerCreateFeature
- Specified by:
LayerCreateFeaturein interfaceOGR
-
LayerGetFIDColumnName
- Specified by:
LayerGetFIDColumnNamein interfaceOGR
-
FieldGetName
- Specified by:
FieldGetNamein interfaceOGR
-
FieldGetType
- Specified by:
FieldGetTypein interfaceOGR
-
FieldGetWidth
- Specified by:
FieldGetWidthin interfaceOGR
-
FieldSetWidth
- Specified by:
FieldSetWidthin interfaceOGR
-
FieldSetJustifyRight
- Specified by:
FieldSetJustifyRightin interfaceOGR
-
FieldSetPrecision
- Specified by:
FieldSetPrecisionin interfaceOGR
-
FieldIsIntegerType
public boolean FieldIsIntegerType(long type) - Specified by:
FieldIsIntegerTypein interfaceOGR
-
FieldIsRealType
public boolean FieldIsRealType(long type) - Specified by:
FieldIsRealTypein interfaceOGR
-
FieldIsBinaryType
public boolean FieldIsBinaryType(long type) - Specified by:
FieldIsBinaryTypein interfaceOGR
-
FieldIsDateType
public boolean FieldIsDateType(long type) - Specified by:
FieldIsDateTypein interfaceOGR
-
FieldIsTimeType
public boolean FieldIsTimeType(long type) - Specified by:
FieldIsTimeTypein interfaceOGR
-
FieldIsDateTimeType
public boolean FieldIsDateTimeType(long type) - Specified by:
FieldIsDateTimeTypein interfaceOGR
-
FieldIsIntegerListType
public boolean FieldIsIntegerListType(long type) - Specified by:
FieldIsIntegerListTypein interfaceOGR
-
FieldIsRealListType
public boolean FieldIsRealListType(long type) - Specified by:
FieldIsRealListTypein interfaceOGR
-
CreateStringField
- Specified by:
CreateStringFieldin interfaceOGR
-
CreateIntegerField
- Specified by:
CreateIntegerFieldin interfaceOGR
-
CreateRealField
- Specified by:
CreateRealFieldin interfaceOGR
-
CreateBinaryField
- Specified by:
CreateBinaryFieldin interfaceOGR
-
CreateDateField
- Specified by:
CreateDateFieldin interfaceOGR
-
CreateTimeField
- Specified by:
CreateTimeFieldin interfaceOGR
-
CreateDateTimeField
- Specified by:
CreateDateTimeFieldin interfaceOGR
-
FeatureGetFID
- Specified by:
FeatureGetFIDin interfaceOGR
-
FeatureIsFieldSet
- Specified by:
FeatureIsFieldSetin interfaceOGR
-
FeatureSetGeometryDirectly
- Specified by:
FeatureSetGeometryDirectlyin interfaceOGR
-
FeatureGetGeometry
- Specified by:
FeatureGetGeometryin interfaceOGR
-
FeatureUnsetField
- Specified by:
FeatureUnsetFieldin interfaceOGR
-
FeatureSetFieldInteger
- Specified by:
FeatureSetFieldIntegerin interfaceOGR
-
FeatureSetFieldDouble
- Specified by:
FeatureSetFieldDoublein interfaceOGR
-
FeatureSetFieldBinary
- Specified by:
FeatureSetFieldBinaryin 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:
FeatureSetFieldDateTimein interfaceOGR
-
FeatureSetFieldString
- Specified by:
FeatureSetFieldStringin interfaceOGR
-
FeatureGetFieldAsString
- Specified by:
FeatureGetFieldAsStringin interfaceOGR
-
FeatureGetFieldAsInteger
- Specified by:
FeatureGetFieldAsIntegerin interfaceOGR
-
FeatureGetFieldAsDouble
- Specified by:
FeatureGetFieldAsDoublein 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:
FeatureGetFieldAsDateTimein interfaceOGR
-
FeatureDestroy
- Specified by:
FeatureDestroyin interfaceOGR
-
GetPointType
public long GetPointType()- Specified by:
GetPointTypein interfaceOGR
-
GetPoint25DType
public long GetPoint25DType()- Specified by:
GetPoint25DTypein interfaceOGR
-
GetLinearRingType
public long GetLinearRingType()- Specified by:
GetLinearRingTypein interfaceOGR
-
GetLineStringType
public long GetLineStringType()- Specified by:
GetLineStringTypein interfaceOGR
-
GetLineString25DType
public long GetLineString25DType()- Specified by:
GetLineString25DTypein interfaceOGR
-
GetPolygonType
public long GetPolygonType()- Specified by:
GetPolygonTypein interfaceOGR
-
GetPolygon25DType
public long GetPolygon25DType()- Specified by:
GetPolygon25DTypein interfaceOGR
-
GetMultiPointType
public long GetMultiPointType()- Specified by:
GetMultiPointTypein interfaceOGR
-
GetMultiLineStringType
public long GetMultiLineStringType()- Specified by:
GetMultiLineStringTypein interfaceOGR
-
GetMultiLineString25DType
public long GetMultiLineString25DType()- Specified by:
GetMultiLineString25DTypein interfaceOGR
-
GetMultiPolygonType
public long GetMultiPolygonType()- Specified by:
GetMultiPolygonTypein interfaceOGR
-
GetMultiPolygon25DType
public long GetMultiPolygon25DType()- Specified by:
GetMultiPolygon25DTypein interfaceOGR
-
GetGeometryCollectionType
public long GetGeometryCollectionType()- Specified by:
GetGeometryCollectionTypein interfaceOGR
-
GetGeometryCollection25DType
public long GetGeometryCollection25DType()- Specified by:
GetGeometryCollection25DTypein interfaceOGR
-
GetGeometryNoneType
public long GetGeometryNoneType()- Specified by:
GetGeometryNoneTypein interfaceOGR
-
GetGeometryUnknownType
public long GetGeometryUnknownType()- Specified by:
GetGeometryUnknownTypein interfaceOGR
-
GeometryGetWkbSize
- Specified by:
GeometryGetWkbSizein interfaceOGR
-
GeometryExportToWkb
- Specified by:
GeometryExportToWkbin interfaceOGR
-
GeometryCreateFromWkb
- Specified by:
GeometryCreateFromWkbin interfaceOGR
-
GeometryExportToWkt
- Specified by:
GeometryExportToWktin interfaceOGR
-
GeometryCreateFromWkt
- Specified by:
GeometryCreateFromWktin interfaceOGR
-
GeometryDestroy
- Specified by:
GeometryDestroyin interfaceOGR
-
SpatialRefGetAuthorityCode
- Specified by:
SpatialRefGetAuthorityCodein interfaceOGR
-
SpatialRefExportToWkt
- Specified by:
SpatialRefExportToWktin interfaceOGR
-
SpatialRefRelease
- Specified by:
SpatialRefReleasein interfaceOGR
-
NewSpatialRef
- Specified by:
NewSpatialRefin interfaceOGR
-