Search Results for

    Show / Hide Table of Contents

    Class DotSpatialAffineCoordinateSequence

    A coordinate sequence that follows the dotspatial shape range

    Inheritance
    object
    CoordinateSequence
    DotSpatialAffineCoordinateSequence
    Inherited Members
    CoordinateSequence.Dimension
    CoordinateSequence.Measures
    CoordinateSequence.Spatial
    CoordinateSequence.Ordinates
    CoordinateSequence.HasZ
    CoordinateSequence.HasM
    CoordinateSequence.ZOrdinateIndex
    CoordinateSequence.MOrdinateIndex
    CoordinateSequence.CreateCoordinate()
    CoordinateSequence.GetCoordinate(int)
    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)
    object.ToString()
    Namespace: NetTopologySuite.Geometries.Implementation
    Assembly: NetTopologySuite.dll
    Syntax
    [Serializable]
    public class DotSpatialAffineCoordinateSequence : CoordinateSequence

    Constructors

    | Edit this page View Source

    DotSpatialAffineCoordinateSequence(CoordinateSequence, Ordinates)

    Creates a sequence based on the given coordinate sequence.

    Declaration
    public DotSpatialAffineCoordinateSequence(CoordinateSequence coordSeq, Ordinates ordinates)
    Parameters
    Type Name Description
    CoordinateSequence coordSeq

    The coordinate sequence.

    Ordinates ordinates

    The ordinates to copy

    | Edit this page View Source

    DotSpatialAffineCoordinateSequence(IReadOnlyCollection<Coordinate>, Ordinates)

    Creates an instance of this class

    Declaration
    public DotSpatialAffineCoordinateSequence(IReadOnlyCollection<Coordinate> coordinates, Ordinates ordinates)
    Parameters
    Type Name Description
    IReadOnlyCollection<Coordinate> coordinates

    The coordinates

    Ordinates ordinates
    | Edit this page View Source

    DotSpatialAffineCoordinateSequence(double[], double[], double[])

    Declaration
    public DotSpatialAffineCoordinateSequence(double[] xy, double[] z, double[] m)
    Parameters
    Type Name Description
    double[] xy
    double[] z
    double[] m
    | Edit this page View Source

    DotSpatialAffineCoordinateSequence(int, Ordinates)

    Constructs a sequence of a given size, populated with new Coordinates.

    Declaration
    public DotSpatialAffineCoordinateSequence(int size, Ordinates ordinates)
    Parameters
    Type Name Description
    int size

    The size of the sequence to create.

    Ordinates ordinates

    The kind of ordinates.

    | Edit this page View Source

    DotSpatialAffineCoordinateSequence(int, int, int)

    Constructs a sequence of a given size, populated with new Coordinates.

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

    The size of the sequence to create.

    int dimension

    The number of dimensions.

    int measures

    The number of measures.

    Properties

    | Edit this page View Source

    M

    Gets the vector with measure values

    Declaration
    public double[] M { get; }
    Property Value
    Type Description
    double[]
    Remarks

    If you modify the values of this vector externally, you need to call ReleaseCoordinateArray()!

    | Edit this page View Source

    XY

    Gets the vector with x- and y-ordinate values;

    Declaration
    public double[] XY { get; }
    Property Value
    Type Description
    double[]
    Remarks

    If you modify the values of this vector externally, you need to call ReleaseCoordinateArray()!

    | Edit this page View Source

    Z

    Gets the vector with z-ordinate values

    Declaration
    public double[] Z { get; }
    Property Value
    Type Description
    double[]
    Remarks

    If you modify the values of this vector externally, you need to call ReleaseCoordinateArray()!

    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

    GetCoordinate(int, Coordinate)

    Copies the i'th coordinate in the sequence to the supplied Coordinate. At least the first two dimensions must be copied.

    Declaration
    public override void GetCoordinate(int index, Coordinate coord)
    Parameters
    Type Name Description
    int index

    The index of the coordinate to copy.

    Coordinate coord

    A Coordinate to receive the value.

    Overrides
    CoordinateSequence.GetCoordinate(int, Coordinate)
    | Edit this page View Source

    GetCoordinateCopy(int)

    Returns a copy of the i'th coordinate in this sequence. This method optimizes the situation where the caller is going to make a copy anyway - if the implementation has already created a new Coordinate object, no further copy is needed.

    Declaration
    public override Coordinate GetCoordinateCopy(int i)
    Parameters
    Type Name Description
    int i

    The index of the coordinate to retrieve.

    Returns
    Type Description
    Coordinate

    A copy of the i'th coordinate in the sequence

    Overrides
    CoordinateSequence.GetCoordinateCopy(int)
    | Edit this page View Source

    GetM(int)

    Returns ordinate M of the specified coordinate if available.

    Declaration
    public override double GetM(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    double

    The value of the M ordinate in the index'th coordinate, or NullOrdinate if not defined.

    Overrides
    CoordinateSequence.GetM(int)
    | 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 as described by Dimension and Measures.
    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

    The ordinate value, or NullOrdinate if the sequence does not provide values for ordinateIndex"/>

    Overrides
    CoordinateSequence.GetOrdinate(int, int)
    Remarks

    If the sequence does not provide value for the required ordinate, the implementation must not throw an exception, it should return NullOrdinate.

    | Edit this page View Source

    GetX(int)

    Returns ordinate X (0) of the specified coordinate.

    Declaration
    public override double GetX(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    double

    The value of the X ordinate in the index'th coordinate.

    Overrides
    CoordinateSequence.GetX(int)
    | Edit this page View Source

    GetY(int)

    Returns ordinate Y (1) of the specified coordinate.

    Declaration
    public override double GetY(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    double

    The value of the Y ordinate in the index'th coordinate.

    Overrides
    CoordinateSequence.GetY(int)
    | Edit this page View Source

    GetZ(int)

    Returns ordinate Z of the specified coordinate if available.

    Declaration
    public override double GetZ(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    double

    The value of the Z ordinate in the index'th coordinate, or NullOrdinate if not defined.

    Overrides
    CoordinateSequence.GetZ(int)
    | Edit this page View Source

    ReleaseCoordinateArray()

    Releases the weak reference to the weak referenced coordinate array

    Declaration
    public void ReleaseCoordinateArray()
    Remarks

    This is necessary if you modify the values of the XY, Z, M arrays externally.

    | Edit this page View Source

    Reversed()

    Creates a reversed version of this coordinate sequence with cloned Coordinates

    Declaration
    public override CoordinateSequence Reversed()
    Returns
    Type Description
    CoordinateSequence

    A reversed version of this sequence

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

    SetM(int, double)

    Sets ordinate M of the specified coordinate to the specified value if present.

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

    The index of the coordinate whose M value to set if present.

    double value

    The value to set the coordinate's M value to if present.

    Overrides
    CoordinateSequence.SetM(int, double)
    | Edit this page View Source

    SetOrdinate(int, int, double)

    Sets the value for a given 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 in the sequence.

    int ordinateIndex

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

    double value

    The new ordinate value.

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

    If the sequence can't store the ordinate value, the implementation must not throw an exception, it should simply ignore the call.

    | Edit this page View Source

    SetX(int, double)

    Sets ordinate X (0) of the specified coordinate to the specified value.

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

    The index of the coordinate whose X value to set.

    double value

    The value to set the coordinate's X value to.

    Overrides
    CoordinateSequence.SetX(int, double)
    | Edit this page View Source

    SetY(int, double)

    Sets ordinate Y (1) of the specified coordinate to the specified value.

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

    The index of the coordinate whose Y value to set.

    double value

    The value to set the coordinate's Y value to.

    Overrides
    CoordinateSequence.SetY(int, double)
    | Edit this page View Source

    SetZ(int, double)

    Sets ordinate Z of the specified coordinate to the specified value if present.

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

    The index of the coordinate whose Z value to set if present.

    double value

    The value to set the coordinate's Z value to if present.

    Overrides
    CoordinateSequence.SetZ(int, double)
    | 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 Coordinate[] ToCoordinateArray()
    Returns
    Type Description
    Coordinate[]
    Overrides
    CoordinateSequence.ToCoordinateArray()

    Extension Methods

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