Search Results for

    Show / Hide Table of Contents

    Class CoordinateArraySequenceFactory

    Creates CoordinateSequences represented as an array of Coordinates.

    Inheritance
    object
    CoordinateSequenceFactory
    CoordinateArraySequenceFactory
    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.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Geometries.Implementation
    Assembly: NetTopologySuite.dll
    Syntax
    [Serializable]
    public sealed class CoordinateArraySequenceFactory : CoordinateSequenceFactory

    Properties

    | Edit this page View Source

    Instance

    Returns the singleton instance of CoordinateArraySequenceFactory.

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

    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(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