Search Results for

    Show / Hide Table of Contents

    Class PackedCoordinateSequence

    A CoordinateSequence implementation based on a packed arrays.

    Inheritance
    object
    CoordinateSequence
    PackedCoordinateSequence
    PackedDoubleCoordinateSequence
    PackedFloatCoordinateSequence
    Inherited Members
    CoordinateSequence.Dimension
    CoordinateSequence.Measures
    CoordinateSequence.Spatial
    CoordinateSequence.Ordinates
    CoordinateSequence.HasZ
    CoordinateSequence.HasM
    CoordinateSequence.ZOrdinateIndex
    CoordinateSequence.MOrdinateIndex
    CoordinateSequence.CreateCoordinate()
    CoordinateSequence.GetCoordinateCopy(int)
    CoordinateSequence.GetCoordinate(int, Coordinate)
    CoordinateSequence.GetX(int)
    CoordinateSequence.GetY(int)
    CoordinateSequence.GetZ(int)
    CoordinateSequence.GetM(int)
    CoordinateSequence.SetX(int, double)
    CoordinateSequence.SetY(int, double)
    CoordinateSequence.SetZ(int, double)
    CoordinateSequence.SetM(int, double)
    CoordinateSequence.GetOrdinate(int, int)
    CoordinateSequence.GetOrdinate(int, Ordinate)
    CoordinateSequence.First
    CoordinateSequence.Last
    CoordinateSequence.Count
    CoordinateSequence.SetOrdinate(int, int, double)
    CoordinateSequence.SetOrdinate(int, Ordinate, double)
    CoordinateSequence.ExpandEnvelope(Envelope)
    CoordinateSequence.Copy()
    CoordinateSequence.Reversed()
    CoordinateSequence.TryGetOrdinateIndex(Ordinate, out int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.Geometries.Implementation
    Assembly: NetTopologySuite.dll
    Syntax
    [Serializable]
    public abstract class PackedCoordinateSequence : CoordinateSequence

    Constructors

    | Edit this page View Source

    PackedCoordinateSequence(int, int, int)

    Creates an instance of this class

    Declaration
    protected PackedCoordinateSequence(int count, int dimension, int measures)
    Parameters
    Type Name Description
    int count

    The number of Coordinates in the sequence.

    int dimension

    The total number of ordinates that make up a Coordinate in this sequence.

    int measures

    the number of measure-ordinates each {Coordinate in this sequence has.

    Fields

    | Edit this page View Source

    CoordRef

    A soft reference to the Coordinate[] representation of this sequence. Makes repeated coordinate array accesses more efficient.

    Declaration
    [NonSerialized]
    protected WeakReference CoordRef
    Field Value
    Type Description
    WeakReference

    Methods

    | Edit this page View Source

    GetCoordinate(int)

    Returns (possibly a copy of) the ith Coordinate in this collection. Whether or not the Coordinate returned is the actual underlying Coordinate or merely a copy depends on the implementation. Note that in the future the semantics of this method may change to guarantee that the Coordinate returned is always a copy. Callers are advised not to assume that they can modify a CoordinateSequence by modifying the Coordinate returned by this method.

    Declaration
    public override sealed Coordinate GetCoordinate(int i)
    Parameters
    Type Name Description
    int i
    Returns
    Type Description
    Coordinate
    Overrides
    CoordinateSequence.GetCoordinate(int)
    | Edit this page View Source

    GetCoordinateInternal(int)

    Returns a Coordinate representation of the specified coordinate, by always building a new Coordinate object.

    Declaration
    [Obsolete("Unused.  This will be removed in a future release.")]
    protected virtual Coordinate GetCoordinateInternal(int index)
    Parameters
    Type Name Description
    int index

    The coordinate index

    Returns
    Type Description
    Coordinate

    The Coordinate at the given index

    | Edit this page View Source

    ReleaseCoordinateArray()

    Releases the weak reference to the coordinate array.

    Declaration
    public void ReleaseCoordinateArray()
    Remarks

    This is necessary if you directly modify the array from GetRawCoordinates.

    | Edit this page View Source

    ToCoordinateArray()

    Returns (possibly copies of) the Coordinates in this collection. Whether or not the Coordinates returned are the actual underlying Coordinates or merely copies depends on the implementation. Note that if this implementation does not store its data as an array of Coordinates, this method will incur a performance penalty because the array needs to be built from scratch.

    Declaration
    public override sealed Coordinate[] ToCoordinateArray()
    Returns
    Type Description
    Coordinate[]
    Overrides
    CoordinateSequence.ToCoordinateArray()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Extension Methods

    CoordinateSequenceEx.GetHashCode(CoordinateSequence, int, Func<int, int>)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX