Search Results for

    Show / Hide Table of Contents

    Class PackedDoubleCoordinateSequence

    Packed coordinate sequence implementation based on doubles.

    Inheritance
    object
    CoordinateSequence
    PackedCoordinateSequence
    PackedDoubleCoordinateSequence
    Inherited Members
    PackedCoordinateSequence.CoordRef
    PackedCoordinateSequence.GetCoordinate(int)
    PackedCoordinateSequence.ToCoordinateArray()
    PackedCoordinateSequence.ReleaseCoordinateArray()
    PackedCoordinateSequence.ToString()
    PackedCoordinateSequence.GetCoordinateInternal(int)
    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, Ordinate)
    CoordinateSequence.First
    CoordinateSequence.Last
    CoordinateSequence.Count
    CoordinateSequence.SetOrdinate(int, Ordinate, double)
    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 class PackedDoubleCoordinateSequence : PackedCoordinateSequence

    Constructors

    | Edit this page View Source

    PackedDoubleCoordinateSequence(Coordinate[])

    Initializes a new instance of the PackedDoubleCoordinateSequence class.

    Declaration
    public PackedDoubleCoordinateSequence(Coordinate[] coords)
    Parameters
    Type Name Description
    Coordinate[] coords

    An array of Coordinates.

    | Edit this page View Source

    PackedDoubleCoordinateSequence(Coordinate[], int)

    Initializes a new instance of the PackedDoubleCoordinateSequence class.

    Declaration
    [Obsolete("Use an overload that accepts measures.  This overload will be removed in a future release.")]
    public PackedDoubleCoordinateSequence(Coordinate[] coords, int dimension)
    Parameters
    Type Name Description
    Coordinate[] coords

    An array of Coordinates.

    int dimension

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

    | Edit this page View Source

    PackedDoubleCoordinateSequence(Coordinate[], int, int)

    Initializes a new instance of the PackedDoubleCoordinateSequence class.

    Declaration
    public PackedDoubleCoordinateSequence(Coordinate[] coords, int dimension, int measures)
    Parameters
    Type Name Description
    Coordinate[] coords

    An array of Coordinates.

    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.

    | Edit this page View Source

    PackedDoubleCoordinateSequence(double[], int, int)

    Initializes a new instance of the PackedDoubleCoordinateSequence class.

    Declaration
    public PackedDoubleCoordinateSequence(double[] coords, int dimension, int measures)
    Parameters
    Type Name Description
    double[] coords

    An array of double values that contains the ordinate values of 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.

    | Edit this page View Source

    PackedDoubleCoordinateSequence(int, int, int)

    Initializes a new instance of the PackedDoubleCoordinateSequence class.

    Declaration
    public PackedDoubleCoordinateSequence(int size, int dimension, int measures)
    Parameters
    Type Name Description
    int size

    The number of coordinates in this 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.

    | Edit this page View Source

    PackedDoubleCoordinateSequence(float[], int, int)

    Initializes a new instance of the PackedDoubleCoordinateSequence class.

    Declaration
    public PackedDoubleCoordinateSequence(float[] coords, int dimension, int measures)
    Parameters
    Type Name Description
    float[] coords

    An array of float values that contains the ordinate values of 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.

    Methods

    | Edit this page View Source

    Copy()

    Returns a deep copy of this collection.

    Declaration
    public override CoordinateSequence Copy()
    Returns
    Type Description
    CoordinateSequence

    A copy of the coordinate sequence containing copies of all points

    Overrides
    CoordinateSequence.Copy()
    | Edit this page View Source

    ExpandEnvelope(Envelope)

    Expands the given Envelope to include the coordinates in the sequence. Allows implementing classes to optimize access to coordinate values.

    Declaration
    public override Envelope ExpandEnvelope(Envelope env)
    Parameters
    Type Name Description
    Envelope env

    The envelope to expand.

    Returns
    Type Description
    Envelope

    A reference to the expanded envelope.

    Overrides
    CoordinateSequence.ExpandEnvelope(Envelope)
    | Edit this page View Source

    GetOrdinate(int, int)

    Returns the ordinate of a coordinate in this sequence. Ordinate indices 0 and 1 are assumed to be X and Y. Ordinate indices greater than 1 have user-defined semantics (for instance, they may contain other dimensions or measure values).

    Declaration
    public override double GetOrdinate(int index, int ordinateIndex)
    Parameters
    Type Name Description
    int index

    The coordinate index in the sequence.

    int ordinateIndex

    The ordinate index in the coordinate (in range [0, dimension-1]).

    Returns
    Type Description
    double
    Overrides
    CoordinateSequence.GetOrdinate(int, int)
    Remarks

    Beware, for performance reasons the ordinate index is not checked, if it's over dimensions you may not get an exception but a meaningless value.

    | Edit this page View Source

    GetRawCoordinates()

    Gets the underlying array containing the coordinate values.

    Declaration
    public double[] GetRawCoordinates()
    Returns
    Type Description
    double[]

    The array of coordinate values

    | Edit this page View Source

    Reversed()

    Returns a reversed copy of this CoordinateSequence.

    Declaration
    public override CoordinateSequence Reversed()
    Returns
    Type Description
    CoordinateSequence

    A reversed copy of this CoordinateSequence.

    Overrides
    CoordinateSequence.Reversed()
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when Copy() returned null.

    | Edit this page View Source

    SetOrdinate(int, int, double)

    Sets the ordinate of a coordinate in this sequence.

    Declaration
    public override void SetOrdinate(int index, int ordinateIndex, double value)
    Parameters
    Type Name Description
    int index

    The coordinate index.

    int ordinateIndex

    The ordinate index in the coordinate, 0 based, smaller than the number of dimensions.

    double value

    The new ordinate value.

    Overrides
    CoordinateSequence.SetOrdinate(int, int, double)
    Remarks

    Warning: for performance reasons the ordinate index is not checked. If it is larger than the dimension a meaningless value may be returned.

    Extension Methods

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