Search Results for

    Show / Hide Table of Contents

    Class DotSpatialAffineCoordinateSequenceFactory

    A coordinate sequence factory class that creates DotSpatial's Shape/ShapeRange like coordinate sequences.

    Inheritance
    object
    CoordinateSequenceFactory
    DotSpatialAffineCoordinateSequenceFactory
    Inherited Members
    CoordinateSequenceFactory.Ordinates
    CoordinateSequenceFactory.Create(int, int)
    CoordinateSequenceFactory.GetCommonSequenceParameters(Coordinate[])
    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 DotSpatialAffineCoordinateSequenceFactory : CoordinateSequenceFactory

    Constructors

    | Edit this page View Source

    DotSpatialAffineCoordinateSequenceFactory(Ordinates)

    Declaration
    public DotSpatialAffineCoordinateSequenceFactory(Ordinates ordinates)
    Parameters
    Type Name Description
    Ordinates ordinates

    Properties

    | Edit this page View Source

    Instance

    Returns the singleton instance of DotSpatialAffineCoordinateSequenceFactory.

    Declaration
    public static DotSpatialAffineCoordinateSequenceFactory Instance { get; }
    Property Value
    Type Description
    DotSpatialAffineCoordinateSequenceFactory

    Methods

    | Edit this page View Source

    Create(CoordinateSequence)

    Creates a CoordinateSequence which is a copy of the given CoordinateSequence. This method must handle null arguments by creating an empty sequence.

    Declaration
    public override CoordinateSequence Create(CoordinateSequence coordSeq)
    Parameters
    Type Name Description
    CoordinateSequence coordSeq
    Returns
    Type Description
    CoordinateSequence

    A coordinate sequence

    Overrides
    CoordinateSequenceFactory.Create(CoordinateSequence)
    | Edit this page View Source

    Create(Coordinate[])

    Returns a CoordinateArraySequence based on the given array (the array is not copied).

    Declaration
    public override CoordinateSequence Create(Coordinate[] coordinates)
    Parameters
    Type Name Description
    Coordinate[] coordinates

    the coordinates, which may not be null nor contain null elements.

    Returns
    Type Description
    CoordinateSequence
    Overrides
    CoordinateSequenceFactory.Create(Coordinate[])
    | Edit this page View Source

    Create(double[])

    Creates an instance of this class using the provided xy array for x- and y ordinates

    Declaration
    public CoordinateSequence Create(double[] xy)
    Parameters
    Type Name Description
    double[] xy

    The x- and y-ordinates

    Returns
    Type Description
    CoordinateSequence

    A coordinate sequence

    | Edit this page View Source

    Create(double[], double[], bool)

    Creates an instance of this class using the provided xy array for x- and y ordinates, the zm array for either z-ordinates or measure values. This is indicated by isMeasure.

    Declaration
    public CoordinateSequence Create(double[] xy, double[] zm, bool isMeasure = false)
    Parameters
    Type Name Description
    double[] xy

    The x- and y-ordinates

    double[] zm

    An array of z- or measure values

    bool isMeasure

    A value indicating if zm contains z-ordinates or measure values.

    Returns
    Type Description
    CoordinateSequence

    A coordinate sequence

    | Edit this page View Source

    Create(double[], double[], double[])

    Creates an instance of this class using the provided xy array for x- and y ordinates, the z array for z ordinates and m for measure values.

    Declaration
    public CoordinateSequence Create(double[] xy, double[] z, double[] m)
    Parameters
    Type Name Description
    double[] xy

    The x- and y-ordinates

    double[] z

    An array of z- or measure values

    double[] m

    An array of measure values.

    Returns
    Type Description
    CoordinateSequence

    A coordinate sequence

    | Edit this page View Source

    Create(int, Ordinates)

    Creates a CoordinateSequence of the specified size and ordinates. For this to be useful, the CoordinateSequence implementation must be mutable.

    Declaration
    public override CoordinateSequence Create(int size, Ordinates ordinates)
    Parameters
    Type Name Description
    int size

    The number of coordinates.

    Ordinates ordinates

    The ordinates each coordinate has. XY is fix, Z and M can be set.

    Returns
    Type Description
    CoordinateSequence

    A coordinate sequence.

    Overrides
    CoordinateSequenceFactory.Create(int, Ordinates)
    | Edit this page View Source

    Create(int, int, int)

    Creates a CoordinateSequence of the specified size and dimension with measure support. For this to be useful, the CoordinateSequence implementation must be mutable.

    Declaration
    public override CoordinateSequence Create(int size, int dimension, int measures)
    Parameters
    Type Name Description
    int size

    The number of coordinates in the sequence

    int dimension

    The dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored)

    int measures

    The number of measures of the coordinates in the sequence (if user-specifiable, otherwise ignored)

    Returns
    Type Description
    CoordinateSequence
    Overrides
    CoordinateSequenceFactory.Create(int, int, int)
    Remarks

    If the requested dimension or measures are larger than the CoordinateSequence implementation can provide, then a sequence of maximum possible dimension should be created. An error should not be thrown.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX