C# Class MapAround.Serialization.WKBGeometrySerializer

Serializes geometries into well-known binary and constructs them from such representation.
Afficher le fichier Open project: gkrsu/maparound.core

Méthodes publiques

Méthode Description
DeserializeGeometry ( Stream stream ) : IGeometry

Seserializes geometry from its well-known binary representation.

SerializeGeometry ( Stream stream, IGeometry geometry, WKBByteOrder byteOrder ) : void

Serializes a geometry into stream using a specified byte order.

SerializeMultiPoint ( Stream stream, MultiPoint multiPoint, WKBByteOrder byteOrder ) : void

Serializes a multipoint geometry into stream using a specified byte order.

SerializePoint ( Stream stream, PointD point, WKBByteOrder byteOrder ) : void

Serializes a point geometry into stream using a specified byte order.

SerializePolygon ( Stream stream, Polygon polygon, WKBByteOrder byteOrder ) : void

Serializes a polygon geometry into stream using a specified byte order.

SerializePolygon ( Stream stream, Polygon polygon, WKBByteOrder byteOrder, bool reverseVertices ) : void

Serializes a polygon geometry into stream using a specified byte order.

SerializePolyline ( Stream stream, Polyline polyline, WKBByteOrder byteOrder ) : void

Serializes a polyline geometry into stream using a specified byte order.

Private Methods

Méthode Description
readContour ( Stream stream, WKBByteOrder byteOrder ) : Contour
readCoordsList ( Stream stream, WKBByteOrder byteOrder ) : List
readDouble ( Stream stream, WKBByteOrder byteOrder ) : double
readLineString ( Stream stream, WKBByteOrder byteOrder ) : Polyline
readMultiLineString ( Stream stream, WKBByteOrder byteOrder ) : Polyline
readMultiPoint ( Stream stream, WKBByteOrder byteOrder ) : MultiPoint
readMultiPolygon ( Stream stream, WKBByteOrder byteOrder ) : Polygon
readPoint ( Stream stream, WKBByteOrder byteOrder ) : PointD
readPointCoords ( Stream stream, WKBByteOrder byteOrder ) : ICoordinate
readPolygon ( Stream stream, WKBByteOrder byteOrder ) : Polygon
readUInt32 ( Stream stream, WKBByteOrder byteOrder ) : UInt32
writeContour ( Stream stream, Contour contour, WKBByteOrder byteOrder ) : void
writeDouble ( double value, Stream stream, WKBByteOrder byteOrder ) : void

Writes a double value to stream using specified byte order.

writeLineString ( Stream stream, LinePath part, WKBByteOrder byteOrder ) : void
writeUInt32 ( UInt32 value, Stream stream, WKBByteOrder byteOrder ) : void

Writes an unsigned integer to stream using specified byte order.

Method Details

DeserializeGeometry() public static méthode

Seserializes geometry from its well-known binary representation.
public static DeserializeGeometry ( Stream stream ) : IGeometry
stream Stream A stream containing well-known binary representation of geometry
Résultat IGeometry

SerializeGeometry() public static méthode

Serializes a geometry into stream using a specified byte order.
public static SerializeGeometry ( Stream stream, IGeometry geometry, WKBByteOrder byteOrder ) : void
stream Stream A stream instance
geometry IGeometry A geometry to serialize
byteOrder WKBByteOrder A byte order which is used to write integer and double values
Résultat void

SerializeMultiPoint() public static méthode

Serializes a multipoint geometry into stream using a specified byte order.
public static SerializeMultiPoint ( Stream stream, MultiPoint multiPoint, WKBByteOrder byteOrder ) : void
stream Stream A stream instance
multiPoint MultiPoint A multipoint geometry to serialize
byteOrder WKBByteOrder A byte order which is used to write integer and double values
Résultat void

SerializePoint() public static méthode

Serializes a point geometry into stream using a specified byte order.
public static SerializePoint ( Stream stream, PointD point, WKBByteOrder byteOrder ) : void
stream Stream A stream instance
point PointD A point geometry to serialize
byteOrder WKBByteOrder A byte order which is used to write integer and double values
Résultat void

SerializePolygon() public static méthode

Serializes a polygon geometry into stream using a specified byte order.
public static SerializePolygon ( Stream stream, Polygon polygon, WKBByteOrder byteOrder ) : void
stream Stream A stream instance
polygon Polygon A polygon geometry to serialize
byteOrder WKBByteOrder A byte order which is used to write integer and double values
Résultat void

SerializePolygon() public static méthode

Serializes a polygon geometry into stream using a specified byte order.
public static SerializePolygon ( Stream stream, Polygon polygon, WKBByteOrder byteOrder, bool reverseVertices ) : void
stream Stream A stream instance
polygon Polygon A polygon geometry to serialize
byteOrder WKBByteOrder A byte order which is used to write integer and double values
reverseVertices bool A value indicating whether a standart order of vertices /// should be inverted in WKB
Résultat void

SerializePolyline() public static méthode

Serializes a polyline geometry into stream using a specified byte order.
public static SerializePolyline ( Stream stream, Polyline polyline, WKBByteOrder byteOrder ) : void
stream Stream A stream instance
polyline Polyline A polyline geometry to serialize
byteOrder WKBByteOrder A byte order which is used to write integer and double values
Résultat void