Interface OGR

  • All Known Implementing Classes:
    JniOGR

    public interface OGR
    Encapsulates calls to the OGR library.

    Author:
    Justin Deoliveira, OpenGeo
    • Method Detail

      • GetDriverCount

        int GetDriverCount()
      • GetDriver

        Object GetDriver​(int i)
      • OpenShared

        Object OpenShared​(String dataSourceName,
                          int mode)
      • IsGEOSEnabled

        boolean IsGEOSEnabled()
      • CheckError

        void CheckError​(int code)
                 throws IOException
        Checks the ogr error status code and throws java exceptions accordingly.
        Parameters:
        code - The ogr error code.
        Throws:
        IOException
      • GetLastErrorMsg

        String GetLastErrorMsg()
      • DriverRelease

        void DriverRelease​(Object driver)
      • DataSourceGetDriver

        Object DataSourceGetDriver​(Object dataSource)
      • DataSourceGetLayerCount

        int DataSourceGetLayerCount​(Object dataSource)
      • DataSourceGetLayer

        Object DataSourceGetLayer​(Object dataSource,
                                  int i)
      • DataSourceGetLayerByName

        Object DataSourceGetLayerByName​(Object dataSource,
                                        String name)
      • DataSourceRelease

        void DataSourceRelease​(Object dataSource)
      • LayerGetLayerDefn

        Object LayerGetLayerDefn​(Object layer)
      • LayerGetFieldCount

        int LayerGetFieldCount​(Object layerDefn)
      • LayerGetFieldDefn

        Object LayerGetFieldDefn​(Object layerDefn,
                                 int i)
      • LayerGetGeometryType

        long LayerGetGeometryType​(Object layerDefn)
      • LayerGetSpatialRef

        Object LayerGetSpatialRef​(Object layer)
      • LayerGetFeatureCount

        long LayerGetFeatureCount​(Object layer)
      • LayerRelease

        void LayerRelease​(Object layer)
      • LayerReleaseLayerDefn

        void LayerReleaseLayerDefn​(Object layerDefn)
      • LayerCanDeleteFeature

        boolean LayerCanDeleteFeature​(Object layer)
      • LayerCanWriteRandom

        boolean LayerCanWriteRandom​(Object layer)
      • LayerCanWriteSequential

        boolean LayerCanWriteSequential​(Object layer)
      • LayerCanCreateField

        boolean LayerCanCreateField​(Object layer)
      • LayerCanIgnoreFields

        boolean LayerCanIgnoreFields​(Object layer)
      • LayerCreateField

        void LayerCreateField​(Object layer,
                              Object fieldDefn,
                              int approx)
      • LayerSyncToDisk

        void LayerSyncToDisk​(Object layer)
      • LayerNewFeature

        Object LayerNewFeature​(Object layerDefn)
      • LayerSetSpatialFilter

        void LayerSetSpatialFilter​(Object layer,
                                   Object geometry)
      • LayerSetAttributeFilter

        void LayerSetAttributeFilter​(Object layer,
                                     String attFilter)
      • LayerSetIgnoredFields

        int LayerSetIgnoredFields​(Object layer,
                                  String[] fields)
      • LayerResetReading

        void LayerResetReading​(Object layer)
      • LayerGetNextFeature

        Object LayerGetNextFeature​(Object layer)
      • LayerDeleteFeature

        boolean LayerDeleteFeature​(Object layer,
                                   long fid)
      • LayerSetFeature

        int LayerSetFeature​(Object layer,
                            Object feature)
      • LayerCreateFeature

        int LayerCreateFeature​(Object layer,
                               Object feature)
      • LayerGetFIDColumnName

        String LayerGetFIDColumnName​(Object layer)
      • FieldGetType

        long FieldGetType​(Object field)
      • FieldGetWidth

        int FieldGetWidth​(Object field)
      • FieldSetWidth

        void FieldSetWidth​(Object field,
                           int width)
      • FieldSetJustifyRight

        void FieldSetJustifyRight​(Object field)
      • FieldSetPrecision

        void FieldSetPrecision​(Object field,
                               int precision)
      • FieldIsIntegerType

        boolean FieldIsIntegerType​(long type)
      • FieldIsRealType

        boolean FieldIsRealType​(long type)
      • FieldIsBinaryType

        boolean FieldIsBinaryType​(long type)
      • FieldIsDateType

        boolean FieldIsDateType​(long type)
      • FieldIsTimeType

        boolean FieldIsTimeType​(long type)
      • FieldIsDateTimeType

        boolean FieldIsDateTimeType​(long type)
      • FieldIsIntegerListType

        boolean FieldIsIntegerListType​(long type)
      • FieldIsRealListType

        boolean FieldIsRealListType​(long type)
      • CreateStringField

        Object CreateStringField​(String name)
      • CreateIntegerField

        Object CreateIntegerField​(String name)
      • CreateBinaryField

        Object CreateBinaryField​(String name)
      • CreateDateTimeField

        Object CreateDateTimeField​(String name)
      • FeatureGetFID

        long FeatureGetFID​(Object feature)
      • FeatureIsFieldSet

        boolean FeatureIsFieldSet​(Object feature,
                                  int i)
      • FeatureSetGeometryDirectly

        void FeatureSetGeometryDirectly​(Object feature,
                                        Object geometry)
      • FeatureGetGeometry

        Object FeatureGetGeometry​(Object feature)
      • FeatureUnsetField

        void FeatureUnsetField​(Object feature,
                               int i)
      • FeatureSetFieldInteger

        void FeatureSetFieldInteger​(Object feature,
                                    int field,
                                    int value)
      • FeatureSetFieldDouble

        void FeatureSetFieldDouble​(Object feature,
                                   int field,
                                   double value)
      • FeatureSetFieldBinary

        void FeatureSetFieldBinary​(Object feature,
                                   int field,
                                   int length,
                                   byte[] value)
      • FeatureSetFieldDateTime

        void FeatureSetFieldDateTime​(Object feature,
                                     int field,
                                     int year,
                                     int month,
                                     int day,
                                     int hour,
                                     int minute,
                                     int second,
                                     int tz)
      • FeatureSetFieldString

        void FeatureSetFieldString​(Object feature,
                                   int field,
                                   String str)
      • FeatureGetFieldAsString

        String FeatureGetFieldAsString​(Object feature,
                                       int i)
      • FeatureGetFieldAsInteger

        int FeatureGetFieldAsInteger​(Object feature,
                                     int i)
      • FeatureGetFieldAsDouble

        double FeatureGetFieldAsDouble​(Object feature,
                                       int i)
      • FeatureGetFieldAsDateTime

        void FeatureGetFieldAsDateTime​(Object feature,
                                       int i,
                                       int[] year,
                                       int[] month,
                                       int[] day,
                                       int[] hour,
                                       int[] minute,
                                       int[] second,
                                       int[] tzFlag)
      • FeatureDestroy

        void FeatureDestroy​(Object feature)
      • GetPointType

        long GetPointType()
      • GetPoint25DType

        long GetPoint25DType()
      • GetLinearRingType

        long GetLinearRingType()
      • GetLineStringType

        long GetLineStringType()
      • GetLineString25DType

        long GetLineString25DType()
      • GetPolygonType

        long GetPolygonType()
      • GetPolygon25DType

        long GetPolygon25DType()
      • GetMultiPointType

        long GetMultiPointType()
      • GetMultiLineStringType

        long GetMultiLineStringType()
      • GetMultiLineString25DType

        long GetMultiLineString25DType()
      • GetMultiPolygonType

        long GetMultiPolygonType()
      • GetMultiPolygon25DType

        long GetMultiPolygon25DType()
      • GetGeometryCollectionType

        long GetGeometryCollectionType()
      • GetGeometryCollection25DType

        long GetGeometryCollection25DType()
      • GetGeometryNoneType

        long GetGeometryNoneType()
      • GetGeometryUnknownType

        long GetGeometryUnknownType()
      • GeometryGetWkbSize

        int GeometryGetWkbSize​(Object geom)
      • GeometryExportToWkb

        int GeometryExportToWkb​(Object geom,
                                byte[] wkb)
      • GeometryCreateFromWkb

        Object GeometryCreateFromWkb​(byte[] wkb,
                                     int[] ret)
      • GeometryExportToWkt

        String GeometryExportToWkt​(Object geom,
                                   int[] ret)
      • GeometryCreateFromWkt

        Object GeometryCreateFromWkt​(String wkt,
                                     int[] ret)
      • GeometryDestroy

        void GeometryDestroy​(Object geometry)
      • SpatialRefGetAuthorityCode

        String SpatialRefGetAuthorityCode​(Object spatialRef,
                                          String authority)
      • SpatialRefExportToWkt

        String SpatialRefExportToWkt​(Object spatialRef)
      • SpatialRefRelease

        void SpatialRefRelease​(Object spatialRef)