C# 클래스 MapAround.Serialization.BinaryGeometrySerializer

Serializes geometries into binary format. Also performs inverse operation.

Binary representation used by this class is non standart and leaves original coordinate sequences unchanged. While other formats like WKB has a strong constraints of topology and causes a changes in coordinate sequences.

파일 보기 프로젝트 열기: gkrsu/maparound.core 1 사용 예제들

공개 메소드들

메소드 설명
DeserializeGeometry ( Stream stream ) : IGeometry

Deserializes a geometry from the specified stream.

DeserializeMultiPoint ( Stream stream ) : MultiPoint

Deserializes an instance of MapAround.Geometry.MultiPoint from the specified stream.

DeserializePoint ( Stream stream ) : PointD

Deserializes an instance of MapAround.Geometry.PointD from the specified stream.

DeserializePolygon ( Stream stream ) : Polygon

Deserializes an instance of MapAround.Geometry.Polygon from the specified stream.

DeserializePolyline ( Stream stream ) : Polyline

Deserializes an instance of MapAround.Geometry.Polyline from the specified stream.

SerializeGeometry ( Stream stream, IGeometry geometry ) : void

Serializes specified geometry into stream.

SerializeMultiPoint ( Stream stream, MultiPoint multiPoint ) : void

Serializes an instance of MapAround.Geometry.MultiPoint into stream.

SerializePoint ( Stream stream, PointD point ) : void

Serializes an instance of MapAround.Geometry.PointD into stream.

SerializePolygon ( Stream stream, Polygon polygon ) : void

Serializes an instance of MapAround.Geometry.Polygon into stream.

SerializePolyline ( Stream stream, Polyline polyline ) : void

Serializes an instance of MapAround.Geometry.Polyline into stream.

비공개 메소드들

메소드 설명
readDouble ( Stream stream ) : double
readInt ( Stream stream ) : int
writeDouble ( Stream stream, double value ) : void
writeInt ( Stream stream, int value ) : void

메소드 상세

DeserializeGeometry() 공개 정적인 메소드

Deserializes a geometry from the specified stream.
public static DeserializeGeometry ( Stream stream ) : IGeometry
stream Stream A stream containing the geometry
리턴 IGeometry

DeserializeMultiPoint() 공개 정적인 메소드

Deserializes an instance of MapAround.Geometry.MultiPoint from the specified stream.
public static DeserializeMultiPoint ( Stream stream ) : MultiPoint
stream Stream A stream containing the multipoint geometry
리턴 MultiPoint

DeserializePoint() 공개 정적인 메소드

Deserializes an instance of MapAround.Geometry.PointD from the specified stream.
public static DeserializePoint ( Stream stream ) : PointD
stream Stream A stream containing the point geometry
리턴 PointD

DeserializePolygon() 공개 정적인 메소드

Deserializes an instance of MapAround.Geometry.Polygon from the specified stream.
public static DeserializePolygon ( Stream stream ) : Polygon
stream Stream A stream containing the polygon geometry
리턴 Polygon

DeserializePolyline() 공개 정적인 메소드

Deserializes an instance of MapAround.Geometry.Polyline from the specified stream.
public static DeserializePolyline ( Stream stream ) : Polyline
stream Stream A stream containing the polyline geometry
리턴 Polyline

SerializeGeometry() 공개 정적인 메소드

Serializes specified geometry into stream.
public static SerializeGeometry ( Stream stream, IGeometry geometry ) : void
stream Stream A stream to write serializing geometry
geometry IGeometry A geometry
리턴 void

SerializeMultiPoint() 공개 정적인 메소드

Serializes an instance of MapAround.Geometry.MultiPoint into stream.
public static SerializeMultiPoint ( Stream stream, MultiPoint multiPoint ) : void
stream Stream A stream to write serializing geometry
multiPoint MultiPoint A multipoint geometry
리턴 void

SerializePoint() 공개 정적인 메소드

Serializes an instance of MapAround.Geometry.PointD into stream.
public static SerializePoint ( Stream stream, PointD point ) : void
stream Stream A stream to write serializing geometry
point PointD A point geometry
리턴 void

SerializePolygon() 공개 정적인 메소드

Serializes an instance of MapAround.Geometry.Polygon into stream.
public static SerializePolygon ( Stream stream, Polygon polygon ) : void
stream Stream A stream to write serializing geometry
polygon Polygon A polygon geometry
리턴 void

SerializePolyline() 공개 정적인 메소드

Serializes an instance of MapAround.Geometry.Polyline into stream.
public static SerializePolyline ( Stream stream, Polyline polyline ) : void
stream Stream A stream to write serializing geometry
polyline Polyline A polyline geometry
리턴 void