GPKGGeometryData

Objective-C

@interface GPKGGeometryData : NSObject

Swift

class GPKGGeometryData : NSObject

GeoPackage Geometry Data

  • True if an extended geometry, false if standard

    Declaration

    Objective-C

    @property (nonatomic) BOOL extended;

    Swift

    var extended: Bool { get set }
  • True if the geometry is empty

    Declaration

    Objective-C

    @property (nonatomic) BOOL empty;

    Swift

    var empty: Bool { get set }
  • Byte ordering, big or little endian

    Declaration

    Objective-C

    @property (nonatomic) CFByteOrder byteOrder;

    Swift

    var byteOrder: CFByteOrder { get set }
  • Geometry envelope

    Declaration

    Objective-C

    @property (nonatomic, strong) SFGeometryEnvelope *envelope;

    Swift

    var envelope: SFGeometryEnvelope! { get set }
  • Spatial Reference System Id

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *srsId;

    Swift

    var srsId: NSNumber! { get set }
  • Well-Known Binary Geometry index of where the bytes start

    Declaration

    Objective-C

    @property (nonatomic) int wkbGeometryIndex;

    Swift

    var wkbGeometryIndex: Int32 { get set }
  • Geometry

    Declaration

    Objective-C

    @property (nonatomic, strong) SFGeometry *geometry;

    Swift

    var geometry: SFGeometry! { get set }
  • Get geometry filter

    Declaration

    Objective-C

    + (NSObject<SFGeometryFilter> *)geometryFilter;

    Swift

    class func geometryFilter() -> (any SFGeometryFilter)!

    Return Value

    geometry filter

  • Set the geometry filter

    Declaration

    Objective-C

    + (void)setGeometryFilter:(NSObject<SFGeometryFilter> *)filter;

    Swift

    class func setGeometryFilter(_ filter: (any SFGeometryFilter)!)

    Parameters

    filter

    geometry filter

  • Get the default SRS id

    Declaration

    Objective-C

    + (NSNumber *)defaultSrsId;

    Swift

    class func defaultSrsId() -> NSNumber!

    Return Value

    SRS id

  • Set the default SRS id

    Declaration

    Objective-C

    + (void)setDefaultSrsId:(NSNumber *)srsId;

    Swift

    class func setDefaultSrsId(_ srsId: NSNumber!)

    Parameters

    srsId

    SRS id

  • Get the default byte order

    Declaration

    Objective-C

    + (int)defaultByteOrder;

    Swift

    class func defaultByteOrder() -> Int32

    Return Value

    byte order

  • Set the default byte order

    Declaration

    Objective-C

    + (void)setDefaultByteOrder:(int)byteOrder;

    Swift

    class func setDefaultByteOrder(_ byteOrder: Int32)

    Parameters

    byteOrder

    byte order

  • Create geometry data, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)create;

    Swift

    class func create() -> GPKGGeometryData!

    Return Value

    geometry data

  • Create geometry data, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithGeometry:(SFGeometry *)geometry;

    Swift

    class func create(with geometry: SFGeometry!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create geometry data and build the envelope, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndBuildEnvelopeWithGeometry:(SFGeometry *)geometry;

    Swift

    class func createAndBuildEnvelope(with geometry: SFGeometry!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create geometry data

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithSrsId:(NSNumber *)srsId;

    Swift

    class func create(withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    srsId

    SRS id

    Return Value

    geometry data

  • Create geometry data

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithSrsId:(NSNumber *)srsId
                              andGeometry:(SFGeometry *)geometry;

    Swift

    class func create(withSrsId srsId: NSNumber!, andGeometry geometry: SFGeometry!) -> GPKGGeometryData!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    geometry data

  • Create geometry data and build the envelope

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndBuildEnvelopeWithSrsId:(NSNumber *)srsId
                                              andGeometry:(SFGeometry *)geometry;

    Swift

    class func createAndBuildEnvelope(withSrsId srsId: NSNumber!, andGeometry geometry: SFGeometry!) -> GPKGGeometryData!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    geometry data

  • Create geometry data and write the GeoPackage geometry bytes, default SRS Id of {@link #defaultSrsId()}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndWriteWithGeometry:(SFGeometry *)geometry;

    Swift

    class func createAndWrite(with geometry: SFGeometry!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create geometry data, build the envelope, and write the GeoPackage geometry bytes, default SRS Id of {@link #defaultSrsId()}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createBuildEnvelopeAndWriteWithGeometry:
        (SFGeometry *)geometry;

    Swift

    class func createBuildEnvelopeAndWrite(with geometry: SFGeometry!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create geometry data and write the GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndWriteWithSrsId:(NSNumber *)srsId
                                      andGeometry:(SFGeometry *)geometry;

    Swift

    class func createAndWrite(withSrsId srsId: NSNumber!, andGeometry geometry: SFGeometry!) -> GPKGGeometryData!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    geometry data

  • Create geometry data, build the envelope, and write the GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createBuildEnvelopeAndWriteWithSrsId:(NSNumber *)srsId
                                                   andGeometry:
                                                       (SFGeometry *)geometry;

    Swift

    class func createBuildEnvelopeAndWrite(withSrsId srsId: NSNumber!, andGeometry geometry: SFGeometry!) -> GPKGGeometryData!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    geometry data

  • Create the geometry data from GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithData:(NSData *)data;

    Swift

    class func create(with data: Data!) -> GPKGGeometryData!

    Parameters

    data

    GeoPackage geometry byte data

    Return Value

    geometry data

  • Create the geometry data, default SRS Id of {@link #defaultSrsId()}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithGeometry:(SFGeometry *)geometry
                                 andEnvelope:(SFGeometryEnvelope *)envelope;

    Swift

    class func create(with geometry: SFGeometry!, andEnvelope envelope: SFGeometryEnvelope!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithSrsId:(NSNumber *)srsId
                              andGeometry:(SFGeometry *)geometry
                              andEnvelope:(SFGeometryEnvelope *)envelope;

    Swift

    class func create(withSrsId srsId: NSNumber!, andGeometry geometry: SFGeometry!, andEnvelope envelope: SFGeometryEnvelope!) -> GPKGGeometryData!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    envelope

    geometry envelope

    Return Value

    geometry data

  • Copy the geometry data and create

    Declaration

    Objective-C

    + (GPKGGeometryData *)createWithGeometryData:(GPKGGeometryData *)geometryData;

    Swift

    class func create(with geometryData: GPKGGeometryData!) -> GPKGGeometryData!

    Parameters

    geometryData

    geometry data

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createFromWkb:(NSData *)data;

    Swift

    class func create(fromWkb data: Data!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes and build the envelope, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndBuildEnvelopeFromWkb:(NSData *)data;

    Swift

    class func createAndBuildEnvelope(fromWkb data: Data!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createFromWkb:(NSData *)data withSrsId:(NSNumber *)srsId;

    Swift

    class func create(fromWkb data: Data!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    data

    well-known byte data

    srsId

    SRS id

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes and build the envelope

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndBuildEnvelopeFromWkb:(NSData *)data
                                              withSrsId:(NSNumber *)srsId;

    Swift

    class func createAndBuildEnvelope(fromWkb data: Data!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    data

    well-known byte data

    srsId

    SRS id

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes and write the GeoPackage geometry bytes, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndWriteFromWkb:(NSData *)data;

    Swift

    class func createAndWrite(fromWkb data: Data!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes, build the envelope, and write the GeoPackage geometry bytes, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createBuildEnvelopeAndWriteFromWkb:(NSData *)data;

    Swift

    class func createBuildEnvelopeAndWrite(fromWkb data: Data!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes and write the GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndWriteFromWkb:(NSData *)data
                                      withSrsId:(NSNumber *)srsId;

    Swift

    class func createAndWrite(fromWkb data: Data!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    data

    well-known byte data

    srsId

    SRS id

    Return Value

    geometry data

  • Create the geometry data from Well-Known Bytes, build the envelope, and write the GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createBuildEnvelopeAndWriteFromWkb:(NSData *)data
                                                   withSrsId:(NSNumber *)srsId;

    Swift

    class func createBuildEnvelopeAndWrite(fromWkb data: Data!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    data

    well-known byte data

    srsId

    SRS id

    Return Value

    geometry data

  • Create a geometry from Well-Known Bytes

    Declaration

    Objective-C

    + (SFGeometry *)createGeometryFromWkb:(NSData *)data;

    Swift

    class func createGeometry(fromWkb data: Data!) -> SFGeometry!

    Parameters

    data

    well-known byte data

    Return Value

    geometry

  • Create the geometry data from Well-Known Text, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createFromWkt:(NSString *)text;

    Swift

    class func create(fromWkt text: String!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text and build the envelope, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndBuildEnvelopeFromWkt:(NSString *)text;

    Swift

    class func createAndBuildEnvelope(fromWkt text: String!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text

    Declaration

    Objective-C

    + (GPKGGeometryData *)createFromWkt:(NSString *)text
                              withSrsId:(NSNumber *)srsId;

    Swift

    class func create(fromWkt text: String!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    text

    well-known text

    srsId

    SRS id

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text and build the envelope

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndBuildEnvelopeFromWkt:(NSString *)text
                                              withSrsId:(NSNumber *)srsId;

    Swift

    class func createAndBuildEnvelope(fromWkt text: String!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    text

    well-known text

    srsId

    SRS id

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text and write the GeoPackage geometry bytes, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndWriteFromWkt:(NSString *)text;

    Swift

    class func createAndWrite(fromWkt text: String!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text, build the envelope, and write the GeoPackage geometry bytes, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (GPKGGeometryData *)createBuildEnvelopeAndWriteFromWkt:(NSString *)text;

    Swift

    class func createBuildEnvelopeAndWrite(fromWkt text: String!) -> GPKGGeometryData!

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text and write the GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createAndWriteFromWkt:(NSString *)text
                                      withSrsId:(NSNumber *)srsId;

    Swift

    class func createAndWrite(fromWkt text: String!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    text

    well-known text

    srsId

    SRS id

    Return Value

    geometry data

  • Create the geometry data from Well-Known Text, build the envelope, and write the GeoPackage geometry bytes

    Declaration

    Objective-C

    + (GPKGGeometryData *)createBuildEnvelopeAndWriteFromWkt:(NSString *)text
                                                   withSrsId:(NSNumber *)srsId;

    Swift

    class func createBuildEnvelopeAndWrite(fromWkt text: String!, withSrsId srsId: NSNumber!) -> GPKGGeometryData!

    Parameters

    text

    well-known text

    srsId

    SRS id

    Return Value

    geometry data

  • Create a geometry from Well-Known Text

    Declaration

    Objective-C

    + (SFGeometry *)createGeometryFromWkt:(NSString *)text;

    Swift

    class func createGeometry(fromWkt text: String!) -> SFGeometry!

    Parameters

    text

    well-known text

    Return Value

    geometry

  • GeoPackage geometry bytes from the geometry, default SRS Id of {@link #defaultSrsId()}

    Declaration

    Objective-C

    + (NSData *)dataFromGeometry:(SFGeometry *)geometry;

    Swift

    class func data(from geometry: SFGeometry!) -> Data!

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from the geometry with built envelope, default SRS Id of {@link #defaultSrsId()}

    Declaration

    Objective-C

    + (NSData *)dataAndBuildEnvelopeFromGeometry:(SFGeometry *)geometry;

    Swift

    class func dataAndBuildEnvelope(from geometry: SFGeometry!) -> Data!

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from the geometry

    Declaration

    Objective-C

    + (NSData *)dataFromGeometry:(SFGeometry *)geometry withSrsId:(NSNumber *)srsId;

    Swift

    class func data(from geometry: SFGeometry!, withSrsId srsId: NSNumber!) -> Data!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from the geometry with built envelope

    Declaration

    Objective-C

    + (NSData *)dataAndBuildEnvelopeFromGeometry:(SFGeometry *)geometry
                                       withSrsId:(NSNumber *)srsId;

    Swift

    class func dataAndBuildEnvelope(from geometry: SFGeometry!, withSrsId srsId: NSNumber!) -> Data!

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known bytes, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (NSData *)dataFromWkb:(NSData *)data;

    Swift

    class func data(fromWkb data: Data!) -> Data!

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known bytes with built envelope, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (NSData *)dataAndBuildEnvelopeFromWkb:(NSData *)data;

    Swift

    class func dataAndBuildEnvelope(fromWkb data: Data!) -> Data!

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known bytes

    Declaration

    Objective-C

    + (NSData *)dataFromWkb:(NSData *)data withSrsId:(NSNumber *)srsId;

    Swift

    class func data(fromWkb data: Data!, withSrsId srsId: NSNumber!) -> Data!

    Parameters

    data

    well-known byte data

    srsId

    SRS id

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known bytes with built envelope

    Declaration

    Objective-C

    + (NSData *)dataAndBuildEnvelopeFromWkb:(NSData *)data
                                  withSrsId:(NSNumber *)srsId;

    Swift

    class func dataAndBuildEnvelope(fromWkb data: Data!, withSrsId srsId: NSNumber!) -> Data!

    Parameters

    data

    well-known byte data

    srsId

    SRS id

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known text, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (NSData *)dataFromWkt:(NSString *)text;

    Swift

    class func data(fromWkt text: String!) -> Data!

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known text with built envelope, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    + (NSData *)dataAndBuildEnvelopeFromWkt:(NSString *)text;

    Swift

    class func dataAndBuildEnvelope(fromWkt text: String!) -> Data!

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known text

    Declaration

    Objective-C

    + (NSData *)dataFromWkt:(NSString *)text withSrsId:(NSNumber *)srsId;

    Swift

    class func data(fromWkt text: String!, withSrsId srsId: NSNumber!) -> Data!

    Parameters

    text

    well-known text

    srsId

    SRS id

    Return Value

    GeoPackage geometry byte data

  • GeoPackage geometry bytes from Well-Known text with built envelope

    Declaration

    Objective-C

    + (NSData *)dataAndBuildEnvelopeFromWkt:(NSString *)text
                                  withSrsId:(NSNumber *)srsId;

    Swift

    class func dataAndBuildEnvelope(fromWkt text: String!, withSrsId srsId: NSNumber!) -> Data!

    Parameters

    text

    well-known text

    srsId

    SRS id

    Return Value

    GeoPackage geometry byte data

  • Well-Known Bytes from the geometry data

    Declaration

    Objective-C

    + (NSData *)wkbFromGeometryData:(GPKGGeometryData *)geometryData;

    Swift

    class func wkb(from geometryData: GPKGGeometryData!) -> Data!

    Parameters

    geometryData

    geometry data

    Return Value

    well-known byte data

  • Well-Known Bytes from the geometry

    Declaration

    Objective-C

    + (NSData *)wkbFromGeometry:(SFGeometry *)geometry;

    Swift

    class func wkb(from geometry: SFGeometry!) -> Data!

    Parameters

    geometry

    geometry

    Return Value

    well-known byte data

  • Well-Known Bytes from GeoPackage geometry bytes

    Declaration

    Objective-C

    + (NSData *)wkbFromData:(NSData *)data;

    Swift

    class func wkb(from data: Data!) -> Data!

    Parameters

    data

    GeoPackage geometry byte data

    Return Value

    well-known byte data

  • Well-Known Bytes from Well-Known Text

    Declaration

    Objective-C

    + (NSData *)wkbFromWkt:(NSString *)text;

    Swift

    class func wkb(fromWkt text: String!) -> Data!

    Parameters

    text

    well-known text

    Return Value

    well-known byte data

  • Well-Known Text from the geometry data

    Declaration

    Objective-C

    + (NSString *)wktFromGeometryData:(GPKGGeometryData *)geometryData;

    Swift

    class func wkt(from geometryData: GPKGGeometryData!) -> String!

    Parameters

    geometryData

    geometry data

    Return Value

    well-known text

  • Well-Known Text from the geometry

    Declaration

    Objective-C

    + (NSString *)wktFromGeometry:(SFGeometry *)geometry;

    Swift

    class func wkt(from geometry: SFGeometry!) -> String!

    Parameters

    geometry

    geometry

    Return Value

    well-known text

  • Well-Known Text from GeoPackage Geometry Bytes

    Declaration

    Objective-C

    + (NSString *)wktFromData:(NSData *)data;

    Swift

    class func wkt(from data: Data!) -> String!

    Parameters

    data

    GeoPackage geometry byte data

    Return Value

    well-known text

  • Well-Known Text from Well-Known Bytes

    Declaration

    Objective-C

    + (NSString *)wktFromWkb:(NSData *)data;

    Swift

    class func wkt(fromWkb data: Data!) -> String!

    Parameters

    data

    well-known byte data

    Return Value

    well-known text

  • Default Initialize, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new geometry data

  • Initialize, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    - (instancetype)initWithGeometry:(SFGeometry *)geometry;

    Swift

    init!(geometry: SFGeometry!)

    Return Value

    new geometry data

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeometry:(SFGeometry *)geometry
                    andBuildEnvelope:(BOOL)buildEnvelope;

    Swift

    init!(geometry: SFGeometry!, andBuildEnvelope buildEnvelope: Bool)

    Parameters

    geometry

    geometry

    buildEnvelope

    true to build and set the envelope

    Return Value

    new geometry data

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithSrsId:(NSNumber *)srsId;

    Swift

    init!(srsId: NSNumber!)

    Parameters

    srsId

    Spatial Reference System Id

    Return Value

    new geometry data

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithSrsId:(NSNumber *)srsId
                      andGeometry:(SFGeometry *)geometry;

    Swift

    init!(srsId: NSNumber!, andGeometry geometry: SFGeometry!)

    Parameters

    srsId

    SRS id

    geometry

    geometry

    Return Value

    new geometry data

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithSrsId:(NSNumber *)srsId
                      andGeometry:(SFGeometry *)geometry
                 andBuildEnvelope:(BOOL)buildEnvelope;

    Swift

    init!(srsId: NSNumber!, andGeometry geometry: SFGeometry!, andBuildEnvelope buildEnvelope: Bool)

    Parameters

    srsId

    SRS id

    geometry

    geometry

    buildEnvelope

    true to build and set the envelope

    Return Value

    new geometry data

  • Initialize, default SRS Id of {@link #defaultSrsId}

    Declaration

    Objective-C

    - (instancetype)initWithGeometry:(SFGeometry *)geometry
                         andEnvelope:(SFGeometryEnvelope *)envelope;

    Swift

    init!(geometry: SFGeometry!, andEnvelope envelope: SFGeometryEnvelope!)

    Return Value

    new geometry data

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithSrsId:(NSNumber *)srsId
                      andGeometry:(SFGeometry *)geometry
                      andEnvelope:(SFGeometryEnvelope *)envelope;

    Swift

    init!(srsId: NSNumber!, andGeometry geometry: SFGeometry!, andEnvelope envelope: SFGeometryEnvelope!)

    Parameters

    srsId

    SRS id

    geometry

    geometry

    envelope

    geometry envelope

    Return Value

    new geometry data

  • Copy Initialize

    Declaration

    Objective-C

    - (instancetype)initWithGeometryData:(GPKGGeometryData *)geometryData;

    Swift

    init!(geometryData: GPKGGeometryData!)

    Parameters

    geometryData

    geometry data

    Return Value

    new geometry data

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithData:(NSData *)data;

    Swift

    init!(data: Data!)

    Parameters

    data

    byte data

    Return Value

    new geometry data

  • Populate the geometry data from the byte data

    Declaration

    Objective-C

    - (void)fromData:(NSData *)data;

    Swift

    func fromData(_ data: Data!)

    Parameters

    data

    byte data

  • Write the geometry to byte data

    Declaration

    Objective-C

    - (NSData *)toData;

    Swift

    func toData() -> Data!

    Return Value

    byte data

  • Get the bounding box of the geometry envelope

    Declaration

    Objective-C

    - (GPKGBoundingBox *)boundingBox;

    Swift

    func boundingBox() -> GPKGBoundingBox!

    Return Value

    bounding box

  • Get the geometry or read it from geometry bytes

    Declaration

    Objective-C

    - (SFGeometry *)getOrReadGeometry;

    Swift

    func getOrReadGeometry() -> SFGeometry!

    Return Value

    geometry

  • Set the byte data

    Declaration

    Objective-C

    - (void)setData:(NSData *)data;

    Swift

    func setData(_ data: Data!)

    Parameters

    data

    byte data

  • Set the byte data

    Declaration

    Objective-C

    - (void)setData:(NSData *)data andGeometryIndex:(int)wkbGeometryIndex;

    Swift

    func setData(_ data: Data!, andGeometryIndex wkbGeometryIndex: Int32)

    Parameters

    data

    byte data

    wkbGeometryIndex

    well-known geometry byte data start index

  • Set the geometry header byte data

    Declaration

    Objective-C

    - (void)setHeaderData:(NSData *)headerData;

    Swift

    func setHeader(_ headerData: Data!)

    Parameters

    headerData

    header byte data

  • Set the geometry byte data. Updates the empty flag. Extended flag should be manually set with {@link #setExtended(boolean)} as needed.

    Declaration

    Objective-C

    - (void)setGeometryData:(NSData *)geometryData;

    Swift

    func setGeometryData(_ geometryData: Data!)
  • Set the geometry and write to bytes

    Declaration

    Objective-C

    - (NSData *)setDataWithGeometry:(SFGeometry *)geometry;

    Swift

    func setDataWith(_ geometry: SFGeometry!) -> Data!

    Parameters

    geometry

    geometry

    Return Value

    geometry byte data

  • Set the geometry, build the envelope, and write to bytes

    Declaration

    Objective-C

    - (NSData *)setDataAndBuildEnvelopeWithGeometry:(SFGeometry *)geometry;

    Swift

    func setDataAndBuildEnvelopeWith(_ geometry: SFGeometry!) -> Data!

    Parameters

    geometry

    geometry

    Return Value

    geometry byte data

  • Set the geometry from Well-Known bytes

    Declaration

    Objective-C

    - (void)setGeometryFromWkb:(NSData *)data;

    Swift

    func setGeometryFromWkb(_ data: Data!)

    Parameters

    data

    well-known byte data

  • Set the geometry from Well-Known text

    Declaration

    Objective-C

    - (void)setGeometryFromWkt:(NSString *)text;

    Swift

    func setGeometryFromWkt(_ text: String!)

    Parameters

    text

    well-known text

  • Clear the byte data

    Declaration

    Objective-C

    - (void)clearData;

    Swift

    func clearData()
  • Clear the header byte data and overall byte data

    Declaration

    Objective-C

    - (void)clearHeaderData;

    Swift

    func clearHeaderData()
  • Clear the geometry byte data and overall byte data

    Declaration

    Objective-C

    - (void)clearGeometryData;

    Swift

    func clear()
  • Get the byte data of the entire GeoPackage geometry including GeoPackage header and WKB bytes

    Declaration

    Objective-C

    - (NSData *)data;

    Swift

    func data() -> Data!

    Return Value

    byte data

  • Get the GeoPackage header byte data

    Declaration

    Objective-C

    - (NSData *)headerData;

    Swift

    func headerData() -> Data!

    Return Value

    header byte data

  • Get the Well-Known Binary Geometry byte data

    Declaration

    Objective-C

    - (NSData *)wkb;

    Swift

    func wkb() -> Data!

    Return Value

    wkb byte data

  • Get a Well-Known text string from the geometry

    Declaration

    Objective-C

    - (NSString *)wkt;

    Swift

    func wkt() -> String!

    Return Value

    well-known text string

  • Get the envelope if it exists or build, set, and retrieve it from the geometry

    Declaration

    Objective-C

    - (SFGeometryEnvelope *)getOrBuildEnvelope;

    Swift

    func getOrBuildEnvelope() -> SFGeometryEnvelope!

    Return Value

    geometry envelope

  • Build, set, and retrieve the envelope from the geometry

    Declaration

    Objective-C

    - (SFGeometryEnvelope *)buildEnvelope;

    Swift

    func buildEnvelope() -> SFGeometryEnvelope!

    Return Value

    geometry envelope

  • Get the bounding box of the geometry envelope if it exists or build, set and retrieve it from the geometry

    Declaration

    Objective-C

    - (GPKGBoundingBox *)getOrBuildBoundingBox;

    Swift

    func getOrBuildBoundingBox() -> GPKGBoundingBox!

    Return Value

    bounding box

  • Build, set, and retrieve the bounding box from the geometry

    Declaration

    Objective-C

    - (GPKGBoundingBox *)buildBoundingBox;

    Swift

    func buildBoundingBox() -> GPKGBoundingBox!

    Return Value

    bounding box

  • Get the envelope flag indicator

    1 for xy, 2 for xyz, 3 for xym, 4 for xyzm (null would be 0)

    Declaration

    Objective-C

    + (int)indicatorWithEnvelope:(SFGeometryEnvelope *)envelope;

    Swift

    class func indicator(with envelope: SFGeometryEnvelope!) -> Int32

    Parameters

    envelope

    geometry envelope

    Return Value

    flag indicator

  • Transform the geometry data using the provided projection transform

    Declaration

    Objective-C

    - (GPKGGeometryData *)transform:(SFPGeometryTransform *)transform;

    Swift

    func transform(_ transform: SFPGeometryTransform!) -> GPKGGeometryData!

    Parameters

    transform

    geometry transform

    Return Value

    transformed geometry data