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 :)
Assembly: NetTopologySuite.dll
Syntax
Constructors
|
Edit this page
View Source
GMLWriter()
Initializes a new instance of the GMLWriter class.
Declaration
Properties
|
Edit this page
View Source
Formatter for double values of coordinates
Declaration
protected static NumberFormatInfo NumberFormatter { get; }
Property Value
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
|
Edit this page
View Source
SetByteStreamLength(Geometry)
Sets corrent length for Byte Stream.
Declaration
protected int SetByteStreamLength(Geometry geometry)
Parameters
Returns
|
Edit this page
View Source
SetByteStreamLength(GeometryCollection)
Declaration
protected int SetByteStreamLength(GeometryCollection geometryCollection)
Parameters
Returns
|
Edit this page
View Source
SetByteStreamLength(LineString)
Declaration
protected int SetByteStreamLength(LineString lineString)
Parameters
Returns
|
Edit this page
View Source
SetByteStreamLength(MultiLineString)
Declaration
protected int SetByteStreamLength(MultiLineString multiLineString)
Parameters
Returns
|
Edit this page
View Source
SetByteStreamLength(MultiPoint)
Declaration
protected int SetByteStreamLength(MultiPoint multiPoint)
Parameters
Returns
|
Edit this page
View Source
SetByteStreamLength(MultiPolygon)
Declaration
protected int SetByteStreamLength(MultiPolygon multiPolygon)
Parameters
Returns
|
Edit this page
View Source
SetByteStreamLength(Point)
Declaration
protected int SetByteStreamLength(Point point)
Parameters
Type |
Name |
Description |
Point |
point |
|
Returns
|
Edit this page
View Source
SetByteStreamLength(Polygon)
Declaration
protected int SetByteStreamLength(Polygon polygon)
Parameters
Type |
Name |
Description |
Polygon |
polygon |
|
Returns
|
Edit this page
View Source
Write(Coordinate, XmlWriter)
Declaration
protected void Write(Coordinate coordinate, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(Coordinate[], XmlWriter)
Declaration
protected void Write(Coordinate[] coordinates, XmlWriter writer)
Parameters
|
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
Returns
|
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
|
Edit this page
View Source
Write(Geometry, XmlWriter)
Declaration
public void Write(Geometry geometry, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(GeometryCollection, XmlWriter)
Declaration
protected void Write(GeometryCollection geometryCollection, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(LineString, XmlWriter)
Declaration
protected void Write(LineString lineString, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(LinearRing, XmlWriter)
Declaration
protected void Write(LinearRing linearRing, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(MultiLineString, XmlWriter)
Declaration
protected void Write(MultiLineString multiLineString, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(MultiPoint, XmlWriter)
Declaration
protected void Write(MultiPoint multiPoint, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(MultiPolygon, XmlWriter)
Declaration
protected void Write(MultiPolygon multiPolygon, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(Point, XmlWriter)
Declaration
protected void Write(Point point, XmlWriter writer)
Parameters
|
Edit this page
View Source
Write(Polygon, XmlWriter)
Declaration
protected void Write(Polygon polygon, XmlWriter writer)
Parameters
|
Edit this page
View Source
WriteCoordinates(CoordinateSequence, XmlWriter)
Declaration
protected void WriteCoordinates(CoordinateSequence coordinates, XmlWriter writer)
Parameters
|
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