Table of Contents

Class MvtPlaceParser

Namespace
LansMap.Core.Labels

Extracts named point features from one MVT layer into global mercator.

public static class MvtPlaceParser
Inheritance
object
MvtPlaceParser

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

tileBytes byte[]

Raw MVT 2.1 bytes; null or empty is a no-op.

tile TileCoord

Tile address used to convert local geometry into global mercator.

layerName string

Layer to read, typically named place.

nameKeys ReadOnlySpan<string>

Priority-ordered property keys for the display name; first match wins.

results List<MvtPlace>

Destination list; matching places are appended, never cleared.