SubfileCreator class

A class responsible for creating a single sub-file within a Mapsforge map file.

This involves collecting all POIs and ways for a given zoom level range, processing them into tiles, and writing the tile index and tile data.

Constructors

SubfileCreator({required int baseZoomLevel, required ZoomlevelRange zoomlevelRange, required MapHeaderInfo mapHeaderInfo})

Properties

baseZoomLevel int
Base zoom level of the sub-file, which equals to one block.
final
hashCode int
The hash code for this object.
no setterinherited
mapHeaderInfo MapHeaderInfo
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileBuffer TileBuffer
latefinal
tileCount int
no setter
zoomlevelRange → ZoomlevelRange
final

Methods

addPoidata(ZoomlevelRange zoomlevelRange, List<PointOfInterest> pois) → void
Adds a list of POIs to the appropriate zoom level within this sub-file.
addWaydata(ZoomlevelRange zoomlevelRange, List<Wayholder> wayholders) → void
Adds a list of ways to the appropriate zoom level within this sub-file.
analyze(List<Tagholder> poiTagholders, List<Tagholder> wayTagholders, String? languagesPreference) → void
Analyzes the tags of all POIs and ways in this sub-file.
dispose() → void
getTilesLength(bool debugFile) Future<int>
Calculates the total length of all tile data in this sub-file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareTiles(bool debugFile, double maxDeviationPixel, int instanceCount) Future<void>
Prepares all tiles for this sub-file by processing the POIs and ways in parallel isolates.
statistics() → void
Logs statistics about the contents of this sub-file.
toString() String
A string representation of this object.
inherited
writeTileIndex(bool debugFile) → Writebuffer
Writes the tile index for this sub-file to a Writebuffer.
writeTiles(bool debugFile, SinkWithCounter ioSink) Future<void>
Writes all tile data for this sub-file to the given ioSink.

Operators

operator ==(Object other) bool
The equality operator.
inherited