Search Results for

    Show / Hide Table of Contents

    Class GMLReader

    Reads a GML document and creates a representation of the features based on NetTopologySuite model. Uses GML 2.1.1 Geometry.xsd schema for base for features.

    Inheritance
    object
    GMLReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.IO.GML2
    Assembly: NetTopologySuite.dll
    Syntax
    public class GMLReader

    Constructors

    | Edit this page View Source

    GMLReader()

    Initialize reader with a standard GeometryFactory.

    Declaration
    public GMLReader()
    | Edit this page View Source

    GMLReader(GeometryFactory)

    Initialize reader with the given GeometryFactory.

    Declaration
    public GMLReader(GeometryFactory factory)
    Parameters
    Type Name Description
    GeometryFactory factory

    Properties

    | Edit this page View Source

    Factory

    Geometry builder.

    Declaration
    protected GeometryFactory Factory { get; }
    Property Value
    Type Description
    GeometryFactory

    Methods

    | Edit this page View Source

    GetFactory(string, GeometryFactory)

    Declaration
    protected virtual GeometryFactory GetFactory(string srsName, GeometryFactory gfDefault)
    Parameters
    Type Name Description
    string srsName
    GeometryFactory gfDefault
    Returns
    Type Description
    GeometryFactory
    | Edit this page View Source

    Read(StringReader)

    Declaration
    public Geometry Read(StringReader stringReader)
    Parameters
    Type Name Description
    StringReader stringReader
    Returns
    Type Description
    Geometry
    | Edit this page View Source

    Read(string)

    Declaration
    public Geometry Read(string xmlText)
    Parameters
    Type Name Description
    string xmlText
    Returns
    Type Description
    Geometry
    | Edit this page View Source

    Read(XDocument)

    Read a GML document and returns relative Geometry.

    Declaration
    public Geometry Read(XDocument document)
    Parameters
    Type Name Description
    XDocument document
    Returns
    Type Description
    Geometry
    | Edit this page View Source

    Read(XmlDocument)

    Read a GML document and returns relative Geometry.

    Declaration
    public Geometry Read(XmlDocument document)
    Parameters
    Type Name Description
    XmlDocument document
    Returns
    Type Description
    Geometry
    | Edit this page View Source

    Read(XmlReader)

    Declaration
    public Geometry Read(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    Geometry
    | Edit this page View Source

    ReadCoordinate(XmlReader)

    Reads the coordinate.

    Declaration
    protected Coordinate ReadCoordinate(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader

    The reader.

    Returns
    Type Description
    Coordinate
    | Edit this page View Source

    ReadCoordinates(string)

    Extract a Coordinate from a x,y string value.

    Declaration
    protected Coordinate ReadCoordinates(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    Coordinate
    | Edit this page View Source

    ReadGeometryCollection(XmlReader)

    Declaration
    protected GeometryCollection ReadGeometryCollection(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    GeometryCollection
    | Edit this page View Source

    ReadGeometryCollection(XmlReader, GeometryFactory, int)

    Declaration
    protected GeometryCollection ReadGeometryCollection(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    GeometryCollection
    | Edit this page View Source

    ReadLineString(XmlReader)

    Declaration
    protected LineString ReadLineString(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    LineString
    | Edit this page View Source

    ReadLineString(XmlReader, GeometryFactory)

    Declaration
    protected LineString ReadLineString(XmlReader reader, GeometryFactory gf)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    Returns
    Type Description
    LineString
    | Edit this page View Source

    ReadLineString(XmlReader, GeometryFactory, int)

    Declaration
    protected LineString ReadLineString(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    LineString
    | Edit this page View Source

    ReadLinearRing(XmlReader)

    Declaration
    protected LinearRing ReadLinearRing(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    LinearRing
    | Edit this page View Source

    ReadLinearRing(XmlReader, GeometryFactory)

    Declaration
    protected LinearRing ReadLinearRing(XmlReader reader, GeometryFactory gf)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    Returns
    Type Description
    LinearRing
    | Edit this page View Source

    ReadLinearRing(XmlReader, GeometryFactory, int)

    Declaration
    protected LinearRing ReadLinearRing(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    LinearRing
    | Edit this page View Source

    ReadMultiCurve(XmlReader)

    Declaration
    protected MultiLineString ReadMultiCurve(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    MultiLineString
    | Edit this page View Source

    ReadMultiCurve(XmlReader, GeometryFactory, int)

    Declaration
    protected MultiLineString ReadMultiCurve(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    MultiLineString
    | Edit this page View Source

    ReadMultiLineString(XmlReader)

    Declaration
    protected MultiLineString ReadMultiLineString(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    MultiLineString
    | Edit this page View Source

    ReadMultiLineString(XmlReader, GeometryFactory, int)

    Declaration
    protected MultiLineString ReadMultiLineString(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    MultiLineString
    | Edit this page View Source

    ReadMultiPoint(XmlReader)

    Declaration
    protected MultiPoint ReadMultiPoint(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    MultiPoint
    | Edit this page View Source

    ReadMultiPoint(XmlReader, GeometryFactory, int)

    Declaration
    protected MultiPoint ReadMultiPoint(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    MultiPoint
    | Edit this page View Source

    ReadMultiPolygon(XmlReader)

    Declaration
    protected MultiPolygon ReadMultiPolygon(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    MultiPolygon
    | Edit this page View Source

    ReadMultiPolygon(XmlReader, GeometryFactory, int)

    Declaration
    protected MultiPolygon ReadMultiPolygon(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    MultiPolygon
    | Edit this page View Source

    ReadMultiSurface(XmlReader)

    Declaration
    protected MultiPolygon ReadMultiSurface(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    MultiPolygon
    | Edit this page View Source

    ReadMultiSurface(XmlReader, GeometryFactory, int)

    Declaration
    protected MultiPolygon ReadMultiSurface(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    MultiPolygon
    | Edit this page View Source

    ReadPoint(XmlReader)

    Declaration
    protected Point ReadPoint(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    Point
    | Edit this page View Source

    ReadPoint(XmlReader, GeometryFactory)

    Declaration
    protected Point ReadPoint(XmlReader reader, GeometryFactory gf)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    Returns
    Type Description
    Point
    | Edit this page View Source

    ReadPoint(XmlReader, GeometryFactory, int)

    Declaration
    protected Point ReadPoint(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    Point
    | Edit this page View Source

    ReadPolygon(XmlReader)

    Declaration
    protected Polygon ReadPolygon(XmlReader reader)
    Parameters
    Type Name Description
    XmlReader reader
    Returns
    Type Description
    Polygon
    | Edit this page View Source

    ReadPolygon(XmlReader, GeometryFactory)

    Declaration
    protected Polygon ReadPolygon(XmlReader reader, GeometryFactory gf)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    Returns
    Type Description
    Polygon
    | Edit this page View Source

    ReadPolygon(XmlReader, GeometryFactory, int)

    Declaration
    protected Polygon ReadPolygon(XmlReader reader, GeometryFactory gf, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    GeometryFactory gf
    int srsDimension
    Returns
    Type Description
    Polygon
    | Edit this page View Source

    ReadPosAsCoordinate(string[])

    Extract a Coordinate from a pos entity string value.

    Declaration
    protected Coordinate ReadPosAsCoordinate(string[] value)
    Parameters
    Type Name Description
    string[] value

    An array of string ordinate values

    Returns
    Type Description
    Coordinate

    A coordinate

    | Edit this page View Source

    ReadPosList(XmlReader, int, CoordinateSequenceFactory)

    Extract a CoordinateSequence from a series of x-, y-[, z-]ordinate string values.

    Declaration
    protected CoordinateSequence ReadPosList(XmlReader reader, int srsDimension, CoordinateSequenceFactory csFactory)
    Parameters
    Type Name Description
    XmlReader reader

    A xml-reader

    int srsDimension

    The number of ordinates to read per coordinate

    CoordinateSequenceFactory csFactory

    The factory to use in order to create the result

    Returns
    Type Description
    CoordinateSequence

    A coordinate sequence

    | Edit this page View Source

    ReadPosListAsCoordinates(int, string[])

    Extract an enumeration of Coordinates from a x-,y-[, z-]ordinate string values.

    Declaration
    [Obsolete("Use ReadPosList(xmlReader, int, CoordinateSequenceFactory)")]
    protected IEnumerable<Coordinate> ReadPosListAsCoordinates(int numOrdinates, string[] value)
    Parameters
    Type Name Description
    int numOrdinates

    The number of ordinates

    string[] value

    An array of string ordinate values

    Returns
    Type Description
    IEnumerable<Coordinate>

    An enumeration of coordinates

    | Edit this page View Source

    ReadSrsDimension(XmlReader, int)

    Declaration
    protected static int ReadSrsDimension(XmlReader reader, int srsDimension)
    Parameters
    Type Name Description
    XmlReader reader
    int srsDimension
    Returns
    Type Description
    int
    | Edit this page View Source

    RemoveUnneccessaryWhitespace(string)

    Declaration
    protected static string RemoveUnneccessaryWhitespace(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX