C# 클래스 Mapsui.Geometries.WellKnownBinary.GeometryFromWKB

Converts Well-known Binary representations to a Mapsui.Geometries.Geometry instance.

The Well-known Binary Representation for Mapsui.Geometries.Geometry (WKBGeometry) provides a portable representation of a Mapsui.Geometries.Geometry value as a contiguous stream of bytes. It permits Mapsui.Geometries.Geometry values to be exchanged between an ODBC client and an SQL database in binary form.

The Well-known Binary Representation for Mapsui.Geometries.Geometry is obtained by serializing a Mapsui.Geometries.Geometry instance as a sequence of numeric types drawn from the set {Unsigned Integer, Double} and then serializing each numeric type as a sequence of bytes using one of two well defined, standard, binary representations for numeric types (NDR, XDR). The specific binary encoding (NDR or XDR) used for a geometry byte stream is described by a one byte tag that precedes the serialized bytes. The only difference between the two encodings of geometry is one of byte order, the XDR encoding is Big Endian, the NDR encoding is Little Endian.

파일 보기 프로젝트 열기: pauldendulk/Mapsui

공개 메소드들

메소드 설명
Parse ( BinaryReader reader ) : Geometry

Creates a Mapsui.Geometries.Geometry based on the Well-known binary representation.

Parse ( byte bytes ) : Geometry

Creates a Mapsui.Geometries.Geometry from the supplied byte[] containing the Well-known Binary representation.

비공개 메소드들

메소드 설명
CreateWKBGeometryCollection ( BinaryReader reader, WkbByteOrder byteOrder ) : Geometry
CreateWKBLineString ( BinaryReader reader, WkbByteOrder byteOrder ) : LineString
CreateWKBLinearRing ( BinaryReader reader, WkbByteOrder byteOrder ) : LinearRing
CreateWKBMultiLineString ( BinaryReader reader, WkbByteOrder byteOrder ) : MultiLineString
CreateWKBMultiPoint ( BinaryReader reader, WkbByteOrder byteOrder ) : MultiPoint
CreateWKBMultiPolygon ( BinaryReader reader, WkbByteOrder byteOrder ) : MultiPolygon
CreateWKBPoint ( BinaryReader reader, WkbByteOrder byteOrder ) : System.Point
CreateWKBPolygon ( BinaryReader reader, WkbByteOrder byteOrder ) : Polygon
ReadCoordinates ( BinaryReader reader, WkbByteOrder byteOrder ) : IEnumerable
ReadDouble ( BinaryReader reader, WkbByteOrder byteOrder ) : double
ReadUInt32 ( BinaryReader reader, WkbByteOrder byteOrder ) : uint

메소드 상세

Parse() 공개 정적인 메소드

Creates a Mapsui.Geometries.Geometry based on the Well-known binary representation.
public static Parse ( BinaryReader reader ) : Geometry
reader System.IO.BinaryReader /// A BinaryReader used to read the Well-known binary /// representation. ///
리턴 Geometry

Parse() 공개 정적인 메소드

Creates a Mapsui.Geometries.Geometry from the supplied byte[] containing the Well-known Binary representation.
public static Parse ( byte bytes ) : Geometry
bytes byte byte[] containing the Well-known Binary representation.
리턴 Geometry