encoder abstract method
ContentEncoder<Content>
encoder({
- StringSink? buffer,
- int? decimals,
- CoordRefSys? crs,
- Map<
String, dynamic> ? options,
Returns a text format encoder for Content
.
When an optional buffer
is given, then representations are written into
it (without clearing any content it might already contain).
After writing content objects into an encoder, the text representation can
be accessed using toText()
of the encoder (or via buffer
when such
is given).
Use decimals
to set a number of decimals (not applied if no decimals).
Use crs
to give hints (like axis order, and whether x and y must
be swapped when writing) about coordinate reference system in text output.
When data itself have CRS information it overrides this value.
Other format or encoder implementation specific options can be set by
options
.
Implementation
ContentEncoder<Content> encoder({
StringSink? buffer,
int? decimals,
CoordRefSys? crs,
Map<String, dynamic>? options,
});