Process a sequence of line features.
Each line is represented as an Array of local webMercator coordinates (coordinates relative to tile's north-east corner).
The name of the enclosing layer.
-The tile size (north to south, east to west) in webMercator.
The list of line geometries.
The geometry properties.
The feature identifier.
Process a sequence of point features.
The points are represented as local webMercator coordinates (coordinates relative to tile's north-east corner).
The name of the enclosing layer.
The tile size (north to south, east to west) in webMercator.
The positions of the point features in local webMercator coordinates.
The geometry properties.
The feature identifier.
Process a sequence of polygon features.
Each polygon is represented as an Array of contour representing exterior and interior rings in local webMercator coordinates (coordinates relative to tile's north-east corner).
The name of the enclosing layer.
The tile size (north to south, east to west) in webMercator.
The list of polygons in local webMercator coordinates.
The geometry properties.
The feature identifier.
Generated using TypeDoc
The IGeometryProcessor is used to process geometry features from vector tiles.
VectorTileDecoder will pass to this interface implementation sequences of geometries projected in webMercator local tile space (coordinates relative to tile's north-east corner). If desired, the world positions can be converted to GeoCoordinates using the Projection.unprojectPoint, for example:
convert(geometry: ILineGeometry): GeoCoordinates[] { const projection = webMercatorTilingScheme.projection; const coordinates = geometry.positions.map(worldP => projection.unprojectPoint(worldP)); return coordinates; }
The methods of concrete implementations of IGeometryProcessor are called to process point, line and polygon geometries, see VectorTileDecoder.