Skip to content

GeoSerializationFormatter

Namespace: ThinkGeo.Core

This class formats a GeoObjectModel into serialized data.

public abstract class GeoSerializationFormatter

Inheritance ObjectGeoSerializationFormatter

Properties

Encoding

set or get the readEncoding.

public Encoding Encoding { get; set; }

Property Value

Encoding

Methods

Save(GeoObjectModel, Stream)

Save serialized data into a stream.

public void Save(GeoObjectModel model, Stream stream)

Parameters

model GeoObjectModel
The GeoObjectModel to create serialized data for.

stream Stream
The Stream to save serialized data into.

SaveCore(GeoObjectModel, Stream)

Format a GeoObjectModel into serialized data, and save the data into a stream.

protected abstract void SaveCore(GeoObjectModel model, Stream stream)

Parameters

model GeoObjectModel
The GeoObjectModel to create serialized data for.

stream Stream
The Stream to save serialized data into.

Load(Stream)

Load a stream into a GeoObjectModel.

public GeoObjectModel Load(Stream stream)

Parameters

stream Stream
The Stream to load from.

Returns

GeoObjectModel
The GeoObjectModel recreated from the stream.

LoadCore(Stream)

Load a stream into a GeoObjectModel.

protected abstract GeoObjectModel LoadCore(Stream stream)

Parameters

stream Stream
The Stream to load from.

Returns

GeoObjectModel
The GeoObjectModel recreated from the stream.