Class JniOGR

  • All Implemented Interfaces:
    OGR

    public class JniOGR
    extends Object
    implements OGR
    • Constructor Detail

      • JniOGR

        public JniOGR()
    • Method Detail

      • IsGEOSEnabled

        public boolean IsGEOSEnabled()
        Specified by:
        IsGEOSEnabled in interface OGR
      • getVersion

        public String getVersion()
      • GetDriverCount

        public int GetDriverCount()
        Specified by:
        GetDriverCount in interface OGR
      • GetDriver

        public Object GetDriver​(int i)
        Specified by:
        GetDriver in interface OGR
      • GetDriverByName

        public Object GetDriverByName​(String name)
        Specified by:
        GetDriverByName in interface OGR
      • OpenShared

        public Object OpenShared​(String dataSourceName,
                                 int mode)
        Specified by:
        OpenShared in interface OGR
      • Open

        public Object Open​(String dataSourceName,
                           int mode)
        Specified by:
        Open in interface OGR
      • 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 interface OGR
        Parameters:
        code - The ogr error code.
        Throws:
        IOException
      • GetLastErrorMsg

        public String GetLastErrorMsg()
        Specified by:
        GetLastErrorMsg in interface OGR
      • DriverGetName

        public String DriverGetName​(Object driver)
        Specified by:
        DriverGetName in interface OGR
      • DriverOpen

        public Object DriverOpen​(Object driver,
                                 String dataSourceName,
                                 int mode)
        Specified by:
        DriverOpen in interface OGR
      • DriverCreateDataSource

        public Object DriverCreateDataSource​(Object driver,
                                             String dataSourceName,
                                             String[] opts)
        Specified by:
        DriverCreateDataSource in interface OGR
      • DriverRelease

        public void DriverRelease​(Object driver)
        Specified by:
        DriverRelease in interface OGR
      • DataSourceGetDriver

        public Object DataSourceGetDriver​(Object dataSource)
        Specified by:
        DataSourceGetDriver in interface OGR
      • DataSourceGetLayerCount

        public int DataSourceGetLayerCount​(Object dataSource)
        Specified by:
        DataSourceGetLayerCount in interface OGR
      • DataSourceGetLayer

        public Object DataSourceGetLayer​(Object dataSource,
                                         int i)
        Specified by:
        DataSourceGetLayer in interface OGR
      • DataSourceGetLayerByName

        public Object DataSourceGetLayerByName​(Object dataSource,
                                               String name)
        Specified by:
        DataSourceGetLayerByName in interface OGR
      • DataSourceRelease

        public void DataSourceRelease​(Object dataSource)
        Specified by:
        DataSourceRelease in interface OGR
      • DataSourceCreateLayer

        public Object DataSourceCreateLayer​(Object dataSource,
                                            String name,
                                            Object srs,
                                            long geomType,
                                            String[] opts)
        Specified by:
        DataSourceCreateLayer in interface OGR
      • DataSourceExecuteSQL

        public Object DataSourceExecuteSQL​(Object dataSource,
                                           String sql,
                                           Object spatialFilter)
        Specified by:
        DataSourceExecuteSQL in interface OGR
      • LayerGetLayerDefn

        public Object LayerGetLayerDefn​(Object layer)
        Specified by:
        LayerGetLayerDefn in interface OGR
      • LayerGetFieldCount

        public int LayerGetFieldCount​(Object layerDefn)
        Specified by:
        LayerGetFieldCount in interface OGR
      • LayerGetFieldDefn

        public Object LayerGetFieldDefn​(Object layerDefn,
                                        int i)
        Specified by:
        LayerGetFieldDefn in interface OGR
      • LayerGetName

        public String LayerGetName​(Object layer)
        Specified by:
        LayerGetName in interface OGR
      • LayerGetGeometryType

        public long LayerGetGeometryType​(Object layerDefn)
        Specified by:
        LayerGetGeometryType in interface OGR
      • LayerGetSpatialRef

        public Object LayerGetSpatialRef​(Object layer)
        Specified by:
        LayerGetSpatialRef in interface OGR
      • LayerGetExtent

        public Object LayerGetExtent​(Object layer)
        Specified by:
        LayerGetExtent in interface OGR
      • LayerGetFeatureCount

        public long LayerGetFeatureCount​(Object layer)
        Specified by:
        LayerGetFeatureCount in interface OGR
      • LayerRelease

        public void LayerRelease​(Object layer)
        Specified by:
        LayerRelease in interface OGR
      • LayerReleaseLayerDefn

        public void LayerReleaseLayerDefn​(Object layerDefn)
        Specified by:
        LayerReleaseLayerDefn in interface OGR
      • LayerCanDeleteFeature

        public boolean LayerCanDeleteFeature​(Object layer)
        Specified by:
        LayerCanDeleteFeature in interface OGR
      • LayerCanWriteRandom

        public boolean LayerCanWriteRandom​(Object layer)
        Specified by:
        LayerCanWriteRandom in interface OGR
      • LayerCanWriteSequential

        public boolean LayerCanWriteSequential​(Object layer)
        Specified by:
        LayerCanWriteSequential in interface OGR
      • LayerCanCreateField

        public boolean LayerCanCreateField​(Object layer)
        Specified by:
        LayerCanCreateField in interface OGR
      • LayerCanIgnoreFields

        public boolean LayerCanIgnoreFields​(Object layer)
        Specified by:
        LayerCanIgnoreFields in interface OGR
      • LayerCreateField

        public void LayerCreateField​(Object layer,
                                     Object fieldDefn,
                                     int approx)
        Specified by:
        LayerCreateField in interface OGR
      • LayerSyncToDisk

        public void LayerSyncToDisk​(Object layer)
        Specified by:
        LayerSyncToDisk in interface OGR
      • LayerNewFeature

        public Object LayerNewFeature​(Object layerDefn)
        Specified by:
        LayerNewFeature in interface OGR
      • LayerSetSpatialFilter

        public void LayerSetSpatialFilter​(Object layer,
                                          Object geometry)
        Specified by:
        LayerSetSpatialFilter in interface OGR
      • LayerSetAttributeFilter

        public void LayerSetAttributeFilter​(Object layer,
                                            String attFilter)
        Specified by:
        LayerSetAttributeFilter in interface OGR
      • LayerSetIgnoredFields

        public int LayerSetIgnoredFields​(Object layer,
                                         String[] fields)
        Specified by:
        LayerSetIgnoredFields in interface OGR
      • LayerResetReading

        public void LayerResetReading​(Object layer)
        Specified by:
        LayerResetReading in interface OGR
      • LayerGetNextFeature

        public Object LayerGetNextFeature​(Object layer)
        Specified by:
        LayerGetNextFeature in interface OGR
      • LayerDeleteFeature

        public boolean LayerDeleteFeature​(Object layer,
                                          long fid)
        Specified by:
        LayerDeleteFeature in interface OGR
      • LayerSetFeature

        public int LayerSetFeature​(Object layer,
                                   Object feature)
        Specified by:
        LayerSetFeature in interface OGR
      • LayerCreateFeature

        public int LayerCreateFeature​(Object layer,
                                      Object feature)
        Specified by:
        LayerCreateFeature in interface OGR
      • LayerGetFIDColumnName

        public String LayerGetFIDColumnName​(Object layer)
        Specified by:
        LayerGetFIDColumnName in interface OGR
      • FieldGetName

        public String FieldGetName​(Object field)
        Specified by:
        FieldGetName in interface OGR
      • FieldGetType

        public long FieldGetType​(Object field)
        Specified by:
        FieldGetType in interface OGR
      • FieldGetWidth

        public int FieldGetWidth​(Object field)
        Specified by:
        FieldGetWidth in interface OGR
      • FieldSetWidth

        public void FieldSetWidth​(Object field,
                                  int width)
        Specified by:
        FieldSetWidth in interface OGR
      • FieldSetJustifyRight

        public void FieldSetJustifyRight​(Object field)
        Specified by:
        FieldSetJustifyRight in interface OGR
      • FieldSetPrecision

        public void FieldSetPrecision​(Object field,
                                      int precision)
        Specified by:
        FieldSetPrecision in interface OGR
      • FieldIsIntegerType

        public boolean FieldIsIntegerType​(long type)
        Specified by:
        FieldIsIntegerType in interface OGR
      • FieldIsRealType

        public boolean FieldIsRealType​(long type)
        Specified by:
        FieldIsRealType in interface OGR
      • FieldIsBinaryType

        public boolean FieldIsBinaryType​(long type)
        Specified by:
        FieldIsBinaryType in interface OGR
      • FieldIsDateType

        public boolean FieldIsDateType​(long type)
        Specified by:
        FieldIsDateType in interface OGR
      • FieldIsTimeType

        public boolean FieldIsTimeType​(long type)
        Specified by:
        FieldIsTimeType in interface OGR
      • FieldIsDateTimeType

        public boolean FieldIsDateTimeType​(long type)
        Specified by:
        FieldIsDateTimeType in interface OGR
      • FieldIsIntegerListType

        public boolean FieldIsIntegerListType​(long type)
        Specified by:
        FieldIsIntegerListType in interface OGR
      • FieldIsRealListType

        public boolean FieldIsRealListType​(long type)
        Specified by:
        FieldIsRealListType in interface OGR
      • CreateStringField

        public Object CreateStringField​(String name)
        Specified by:
        CreateStringField in interface OGR
      • CreateIntegerField

        public Object CreateIntegerField​(String name)
        Specified by:
        CreateIntegerField in interface OGR
      • CreateRealField

        public Object CreateRealField​(String name)
        Specified by:
        CreateRealField in interface OGR
      • CreateBinaryField

        public Object CreateBinaryField​(String name)
        Specified by:
        CreateBinaryField in interface OGR
      • CreateDateField

        public Object CreateDateField​(String name)
        Specified by:
        CreateDateField in interface OGR
      • CreateTimeField

        public Object CreateTimeField​(String name)
        Specified by:
        CreateTimeField in interface OGR
      • CreateDateTimeField

        public Object CreateDateTimeField​(String name)
        Specified by:
        CreateDateTimeField in interface OGR
      • FeatureGetFID

        public long FeatureGetFID​(Object feature)
        Specified by:
        FeatureGetFID in interface OGR
      • FeatureIsFieldSet

        public boolean FeatureIsFieldSet​(Object feature,
                                         int i)
        Specified by:
        FeatureIsFieldSet in interface OGR
      • FeatureSetGeometryDirectly

        public void FeatureSetGeometryDirectly​(Object feature,
                                               Object geometry)
        Specified by:
        FeatureSetGeometryDirectly in interface OGR
      • FeatureGetGeometry

        public Object FeatureGetGeometry​(Object feature)
        Specified by:
        FeatureGetGeometry in interface OGR
      • FeatureUnsetField

        public void FeatureUnsetField​(Object feature,
                                      int i)
        Specified by:
        FeatureUnsetField in interface OGR
      • FeatureSetFieldInteger

        public void FeatureSetFieldInteger​(Object feature,
                                           int field,
                                           int value)
        Specified by:
        FeatureSetFieldInteger in interface OGR
      • FeatureSetFieldDouble

        public void FeatureSetFieldDouble​(Object feature,
                                          int field,
                                          double value)
        Specified by:
        FeatureSetFieldDouble in interface OGR
      • FeatureSetFieldBinary

        public void FeatureSetFieldBinary​(Object feature,
                                          int field,
                                          int length,
                                          byte[] value)
        Specified by:
        FeatureSetFieldBinary in interface OGR
      • 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 interface OGR
      • FeatureSetFieldString

        public void FeatureSetFieldString​(Object feature,
                                          int field,
                                          String str)
        Specified by:
        FeatureSetFieldString in interface OGR
      • FeatureGetFieldAsString

        public String FeatureGetFieldAsString​(Object feature,
                                              int i)
        Specified by:
        FeatureGetFieldAsString in interface OGR
      • FeatureGetFieldAsInteger

        public int FeatureGetFieldAsInteger​(Object feature,
                                            int i)
        Specified by:
        FeatureGetFieldAsInteger in interface OGR
      • FeatureGetFieldAsDouble

        public double FeatureGetFieldAsDouble​(Object feature,
                                              int i)
        Specified by:
        FeatureGetFieldAsDouble in interface OGR
      • 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 interface OGR
      • FeatureDestroy

        public void FeatureDestroy​(Object feature)
        Specified by:
        FeatureDestroy in interface OGR
      • GetPointType

        public long GetPointType()
        Specified by:
        GetPointType in interface OGR
      • GetPoint25DType

        public long GetPoint25DType()
        Specified by:
        GetPoint25DType in interface OGR
      • GetLinearRingType

        public long GetLinearRingType()
        Specified by:
        GetLinearRingType in interface OGR
      • GetLineStringType

        public long GetLineStringType()
        Specified by:
        GetLineStringType in interface OGR
      • GetPolygonType

        public long GetPolygonType()
        Specified by:
        GetPolygonType in interface OGR
      • GetPolygon25DType

        public long GetPolygon25DType()
        Specified by:
        GetPolygon25DType in interface OGR
      • GetMultiPointType

        public long GetMultiPointType()
        Specified by:
        GetMultiPointType in interface OGR
      • GetMultiPolygonType

        public long GetMultiPolygonType()
        Specified by:
        GetMultiPolygonType in interface OGR
      • GetGeometryNoneType

        public long GetGeometryNoneType()
        Specified by:
        GetGeometryNoneType in interface OGR
      • GeometryGetWkbSize

        public int GeometryGetWkbSize​(Object geom)
        Specified by:
        GeometryGetWkbSize in interface OGR
      • GeometryExportToWkb

        public int GeometryExportToWkb​(Object geom,
                                       byte[] wkb)
        Specified by:
        GeometryExportToWkb in interface OGR
      • GeometryCreateFromWkb

        public Object GeometryCreateFromWkb​(byte[] wkb,
                                            int[] ret)
        Specified by:
        GeometryCreateFromWkb in interface OGR
      • GeometryExportToWkt

        public String GeometryExportToWkt​(Object geom,
                                          int[] ret)
        Specified by:
        GeometryExportToWkt in interface OGR
      • GeometryCreateFromWkt

        public Object GeometryCreateFromWkt​(String wkt,
                                            int[] ret)
        Specified by:
        GeometryCreateFromWkt in interface OGR
      • GeometryDestroy

        public void GeometryDestroy​(Object geometry)
        Specified by:
        GeometryDestroy in interface OGR
      • SpatialRefGetAuthorityCode

        public String SpatialRefGetAuthorityCode​(Object spatialRef,
                                                 String authority)
        Specified by:
        SpatialRefGetAuthorityCode in interface OGR
      • SpatialRefExportToWkt

        public String SpatialRefExportToWkt​(Object spatialRef)
        Specified by:
        SpatialRefExportToWkt in interface OGR
      • SpatialRefRelease

        public void SpatialRefRelease​(Object spatialRef)
        Specified by:
        SpatialRefRelease in interface OGR
      • NewSpatialRef

        public Object NewSpatialRef​(String wkt)
        Specified by:
        NewSpatialRef in interface OGR