Class MvtPlaceParser
Extracts named point features from one MVT layer into global mercator.
public static class MvtPlaceParser
- Inheritance
-
objectMvtPlaceParser
Remarks
Point geometry only. Malformed bytes yield no new places and never throw, so a bad tile cannot break the label pipeline. Partial results already appended stay. Features whose point falls outside the tile extent are dropped rather than clamped, because neighbor tiles emit the real point.
Methods
Parse(byte[], TileCoord, string, ReadOnlySpan<string>, List<MvtPlace>)
Appends named point places from tileBytes into results.
public static void Parse(byte[] tileBytes, TileCoord tile, string layerName, ReadOnlySpan<string> nameKeys, List<MvtPlace> results)
Parameters
tileBytesbyte[]Raw MVT 2.1 bytes; null or empty is a no-op.
tileTileCoordTile address used to convert local geometry into global mercator.
layerNamestringLayer to read, typically named place.
nameKeysReadOnlySpan<string>Priority-ordered property keys for the display name; first match wins.
resultsList<MvtPlace>Destination list; matching places are appended, never cleared.