Search Results for

    Show / Hide Table of Contents

    Class PackedCoordinateSequenceFactory

    Builds packed array coordinate sequences. The array data type can be either double or float, and defaults to double.

    Inheritance
    object
    CoordinateSequenceFactory
    PackedCoordinateSequenceFactory
    Inherited Members
    CoordinateSequenceFactory.Ordinates
    CoordinateSequenceFactory.Create(int, int)
    CoordinateSequenceFactory.Create(int, Ordinates)
    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 PackedCoordinateSequenceFactory : CoordinateSequenceFactory

    Constructors

    | Edit this page View Source

    PackedCoordinateSequenceFactory()

    Initializes a new instance of the PackedCoordinateSequenceFactory class, using double values.

    Declaration
    public PackedCoordinateSequenceFactory()
    | Edit this page View Source

    PackedCoordinateSequenceFactory(PackedType)

    Initializes a new instance of the PackedCoordinateSequenceFactory class.

    Declaration
    public PackedCoordinateSequenceFactory(PackedCoordinateSequenceFactory.PackedType type)
    Parameters
    Type Name Description
    PackedCoordinateSequenceFactory.PackedType type

    The type.

    Fields

    | Edit this page View Source

    DoubleFactory

    A factory creating Double coordinate sequences

    Declaration
    public static readonly PackedCoordinateSequenceFactory DoubleFactory
    Field Value
    Type Description
    PackedCoordinateSequenceFactory
    | Edit this page View Source

    FloatFactory

    A factory creating Float coordinate sequences

    Declaration
    public static readonly PackedCoordinateSequenceFactory FloatFactory
    Field Value
    Type Description
    PackedCoordinateSequenceFactory

    Properties

    | Edit this page View Source

    Type

    Gets the type of packed coordinate sequence this factory builds, either Float or Double

    Declaration
    public PackedCoordinateSequenceFactory.PackedType Type { get; set; }
    Property Value
    Type Description
    PackedCoordinateSequenceFactory.PackedType

    The type of packed array built.

    Methods

    | Edit this page View Source

    Create(CoordinateSequence)

    Returns a CoordinateSequence based on the given coordinate sequence; whether or not the array is copied is implementation-dependent.

    Declaration
    public override CoordinateSequence Create(CoordinateSequence coordSeq)
    Parameters
    Type Name Description
    CoordinateSequence coordSeq
    Returns
    Type Description
    CoordinateSequence
    Overrides
    CoordinateSequenceFactory.Create(CoordinateSequence)
    | Edit this page View Source

    Create(Coordinate[])

    Returns a CoordinateSequence based on the given array; whether or not the array is copied is implementation-dependent.

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

    Coordinates array, which may not be null nor contain null elements

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

    Create(double[], int)

    Creates a packed coordinate sequence of type Type from the provided double array using the provided dimension and a measure of 0.

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

    The array containing coordinate values

    int dimension

    The coordinate dimension

    Returns
    Type Description
    CoordinateSequence

    A packed coordinate sequence of Type

    | Edit this page View Source

    Create(double[], int, int)

    Creates a packed coordinate sequence of type Type from the provided double array using the provided dimension and a measure of 0.

    Declaration
    public CoordinateSequence Create(double[] packedCoordinates, int dimension, int measures)
    Parameters
    Type Name Description
    double[] packedCoordinates

    The array containing coordinate values

    int dimension

    The coordinate dimension

    int measures

    The coordinate measure count

    Returns
    Type Description
    CoordinateSequence

    A packed coordinate sequence of Type

    | 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

    Create(float[], int)

    Creates a packed coordinate sequence of type Type from the provided float array using the provided dimension and a measure of 0.

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

    The array containing coordinate values

    int dimension

    The coordinate dimension

    Returns
    Type Description
    CoordinateSequence

    A packed coordinate sequence of Type

    | Edit this page View Source

    Create(float[], int, int)

    Creates a packed coordinate sequence of type Type from the provided float array using the provided dimension and a measure of 0.

    Declaration
    public CoordinateSequence Create(float[] packedCoordinates, int dimension, int measures)
    Parameters
    Type Name Description
    float[] packedCoordinates

    The array containing coordinate values

    int dimension

    The coordinate dimension

    int measures

    The coordinate measure count

    Returns
    Type Description
    CoordinateSequence

    A packed coordinate sequence of Type

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