Search Results for

    Show / Hide Table of Contents

    Class GMLWriter

    Writes the GML representation of the features of NetTopologySuite model. Uses GML 2.1.1 Geometry.xsd schema for base for features. Thanks to rstuven for improvements :)

    Inheritance
    object
    GMLWriter
    GML3Writer
    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 GMLWriter

    Constructors

    | Edit this page View Source

    GMLWriter()

    Initializes a new instance of the GMLWriter class.

    Declaration
    public GMLWriter()

    Properties

    | Edit this page View Source

    NumberFormatter

    Formatter for double values of coordinates

    Declaration
    protected static NumberFormatInfo NumberFormatter { get; }
    Property Value
    Type Description
    NumberFormatInfo

    Methods

    | Edit this page View Source

    GetEpsgCode(int)

    Provides the EPSG code exposing the SRID of the geometry

    Declaration
    protected virtual string GetEpsgCode(int srid)
    Parameters
    Type Name Description
    int srid

    The SRID of the geometry

    Returns
    Type Description
    string
    | Edit this page View Source

    SetByteStreamLength(Geometry)

    Sets corrent length for Byte Stream.

    Declaration
    protected int SetByteStreamLength(Geometry geometry)
    Parameters
    Type Name Description
    Geometry geometry
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(GeometryCollection)

    Declaration
    protected int SetByteStreamLength(GeometryCollection geometryCollection)
    Parameters
    Type Name Description
    GeometryCollection geometryCollection
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(LineString)

    Declaration
    protected int SetByteStreamLength(LineString lineString)
    Parameters
    Type Name Description
    LineString lineString
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(MultiLineString)

    Declaration
    protected int SetByteStreamLength(MultiLineString multiLineString)
    Parameters
    Type Name Description
    MultiLineString multiLineString
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(MultiPoint)

    Declaration
    protected int SetByteStreamLength(MultiPoint multiPoint)
    Parameters
    Type Name Description
    MultiPoint multiPoint
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(MultiPolygon)

    Declaration
    protected int SetByteStreamLength(MultiPolygon multiPolygon)
    Parameters
    Type Name Description
    MultiPolygon multiPolygon
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(Point)

    Declaration
    protected int SetByteStreamLength(Point point)
    Parameters
    Type Name Description
    Point point
    Returns
    Type Description
    int
    | Edit this page View Source

    SetByteStreamLength(Polygon)

    Declaration
    protected int SetByteStreamLength(Polygon polygon)
    Parameters
    Type Name Description
    Polygon polygon
    Returns
    Type Description
    int
    | Edit this page View Source

    Write(Coordinate, XmlWriter)

    Declaration
    protected void Write(Coordinate coordinate, XmlWriter writer)
    Parameters
    Type Name Description
    Coordinate coordinate
    XmlWriter writer
    | Edit this page View Source

    Write(Coordinate[], XmlWriter)

    Declaration
    protected void Write(Coordinate[] coordinates, XmlWriter writer)
    Parameters
    Type Name Description
    Coordinate[] coordinates
    XmlWriter writer
    | Edit this page View Source

    Write(Geometry)

    Returns an XmlReader with feature informations. Use XmlDocument.Load(XmlReader) for obtain a XmlDocument to work.

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

    Write(Geometry, Stream)

    Writes a GML feature into a generic Stream, such a FileStream or other streams.

    Declaration
    public void Write(Geometry geometry, Stream stream)
    Parameters
    Type Name Description
    Geometry geometry
    Stream stream
    | Edit this page View Source

    Write(Geometry, XmlWriter)

    Declaration
    public void Write(Geometry geometry, XmlWriter writer)
    Parameters
    Type Name Description
    Geometry geometry
    XmlWriter writer
    | Edit this page View Source

    Write(GeometryCollection, XmlWriter)

    Declaration
    protected void Write(GeometryCollection geometryCollection, XmlWriter writer)
    Parameters
    Type Name Description
    GeometryCollection geometryCollection
    XmlWriter writer
    | Edit this page View Source

    Write(LineString, XmlWriter)

    Declaration
    protected void Write(LineString lineString, XmlWriter writer)
    Parameters
    Type Name Description
    LineString lineString
    XmlWriter writer
    | Edit this page View Source

    Write(LinearRing, XmlWriter)

    Declaration
    protected void Write(LinearRing linearRing, XmlWriter writer)
    Parameters
    Type Name Description
    LinearRing linearRing
    XmlWriter writer
    | Edit this page View Source

    Write(MultiLineString, XmlWriter)

    Declaration
    protected void Write(MultiLineString multiLineString, XmlWriter writer)
    Parameters
    Type Name Description
    MultiLineString multiLineString
    XmlWriter writer
    | Edit this page View Source

    Write(MultiPoint, XmlWriter)

    Declaration
    protected void Write(MultiPoint multiPoint, XmlWriter writer)
    Parameters
    Type Name Description
    MultiPoint multiPoint
    XmlWriter writer
    | Edit this page View Source

    Write(MultiPolygon, XmlWriter)

    Declaration
    protected void Write(MultiPolygon multiPolygon, XmlWriter writer)
    Parameters
    Type Name Description
    MultiPolygon multiPolygon
    XmlWriter writer
    | Edit this page View Source

    Write(Point, XmlWriter)

    Declaration
    protected void Write(Point point, XmlWriter writer)
    Parameters
    Type Name Description
    Point point
    XmlWriter writer
    | Edit this page View Source

    Write(Polygon, XmlWriter)

    Declaration
    protected void Write(Polygon polygon, XmlWriter writer)
    Parameters
    Type Name Description
    Polygon polygon
    XmlWriter writer
    | Edit this page View Source

    WriteCoordinates(CoordinateSequence, XmlWriter)

    Declaration
    protected void WriteCoordinates(CoordinateSequence coordinates, XmlWriter writer)
    Parameters
    Type Name Description
    CoordinateSequence coordinates
    XmlWriter writer
    | Edit this page View Source

    WriteCoordinates(Coordinate[], XmlWriter)

    Declaration
    [Obsolete("Use the overload that accepts a CoordinateSequence instead.")]
    protected void WriteCoordinates(Coordinate[] coordinates, XmlWriter writer)
    Parameters
    Type Name Description
    Coordinate[] coordinates
    XmlWriter writer
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX