pub struct Layer01<'a> {
pub name: &'a str,
pub extent: u32,
pub id: Option<Id<'a>>,
pub geometry: Geometry<'a>,
pub properties: Vec<Property<'a>>,
}Expand description
Representation of a feature table layer encoded as MLT tag 0x01
Fields§
§name: &'a str§extent: u32§id: Option<Id<'a>>§geometry: Geometry<'a>§properties: Vec<Property<'a>>Implementations§
Source§impl Layer01<'_>
impl Layer01<'_>
Sourcepub fn from_bytes<'a>(
input: &'a [u8],
parser: &mut Parser,
) -> Result<Layer01<'a>, MltError>
pub fn from_bytes<'a>( input: &'a [u8], parser: &mut Parser, ) -> Result<Layer01<'a>, MltError>
Parse v01::Layer metadata, reserving decoded memory against the parser’s budget.
Sourcepub fn decode_id(
&mut self,
dec: &mut Decoder,
) -> Result<Option<&mut IdValues>, MltError>
pub fn decode_id( &mut self, dec: &mut Decoder, ) -> Result<Option<&mut IdValues>, MltError>
Decode only the ID column, leaving other columns in their encoded form.
Use this instead of Self::decode_all when other columns will be accessed lazily.
Sourcepub fn decode_geometry(
&mut self,
dec: &mut Decoder,
) -> MltResult<&mut GeometryValues>
pub fn decode_geometry( &mut self, dec: &mut Decoder, ) -> MltResult<&mut GeometryValues>
Decode only the geometry column, leaving other columns in their encoded form.
Use this instead of Self::decode_all when other columns will be accessed lazily.
Sourcepub fn decode_properties(&mut self, dec: &mut Decoder) -> MltResult<()>
pub fn decode_properties(&mut self, dec: &mut Decoder) -> MltResult<()>
Decode only the property columns, leaving other columns in their encoded form.
Use this instead of Self::decode_all when other columns will be accessed lazily.
pub fn decode_all(&mut self, dec: &mut Decoder) -> MltResult<()>
Source§impl Layer01<'_>
impl Layer01<'_>
Sourcepub fn into_tile(self, dec: &mut Decoder) -> MltResult<TileLayer01>
pub fn into_tile(self, dec: &mut Decoder) -> MltResult<TileLayer01>
Decode and convert into a row-oriented TileLayer01, charging every
heap allocation against dec.
Callers do not need to pre-call decode_all on the source layer.
Trait Implementations§
Source§impl Analyze for Layer01<'_>
impl Analyze for Layer01<'_>
fn collect_statistic(&self, stat: StatType) -> usize
Source§fn for_each_stream(&self, cb: &mut dyn FnMut(StreamMeta))
fn for_each_stream(&self, cb: &mut dyn FnMut(StreamMeta))
cb with the StreamMeta of every stream contained in self.
Default implementation is a no-op (types that hold no streams).