SFLinearRing

Objective-C

@interface SFLinearRing : SFLineString

Swift

class SFLinearRing : SFLineString

A LineString that is both closed and simple.

  • Create

    Declaration

    Objective-C

    + (SFLinearRing *)linearRing;

    Return Value

    new linear ring

  • Create

    Declaration

    Objective-C

    + (SFLinearRing *)linearRingWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;

    Parameters

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new linear ring

  • Create

    Declaration

    Objective-C

    + (SFLinearRing *)linearRingWithPoints:(NSMutableArray<SFPoint *> *)points;

    Parameters

    points

    list of points

    Return Value

    new linear ring

  • Create

    Declaration

    Objective-C

    + (SFLinearRing *)linearRingWithLinearRing:(SFLinearRing *)linearRing;

    Parameters

    linearRing

    linear ring

    Return Value

    new linear ring

  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new linear ring

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;

    Swift

    init!(hasZ: Bool, andHasM hasM: Bool)

    Parameters

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new linear ring

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithPoints:(NSMutableArray<SFPoint *> *)points;

    Swift

    init!(points: NSMutableArray!)

    Parameters

    points

    list of points

    Return Value

    new linear ring

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithLinearRing:(SFLinearRing *)linearRing;

    Swift

    init!(linearRing: SFLinearRing!)

    Parameters

    linearRing

    linear ring

    Return Value

    new linear ring