Table of Contents

Class DrawingInstructionParser

Namespace
EncDotNet.S100.Pipelines.Vector
Assembly
EncDotNet.S100.Core.dll

Parses the semicolon-separated key:value drawing instruction strings emitted by the S-101 Lua portrayal pipeline into the unified DrawingInstruction hierarchy.

public static class DrawingInstructionParser
Inheritance
DrawingInstructionParser
Inherited Members

Remarks

The instruction string is a stateful sequence: property-setting commands (ViewingGroup, DrawingPriority, DisplayPlane, font/style settings) establish state that applies to subsequent rendering commands (PointInstruction, LineInstruction, AreaFillReference, ColorFill, TextInstruction, etc.). Geometry is NOT encoded in the string — the renderer resolves it from the feature's spatial associations using the instruction's FeatureReference.

Methods

Parse(string, string, GeoPosition?, ISpatialReferenceResolver?)

Parses a single emitted instruction string into zero or more DrawingInstruction instances.

public static List<DrawingInstruction> Parse(string featureRef, string instructionString, GeoPosition? featureAnchor = null, ISpatialReferenceResolver? spatialReferences = null)

Parameters

featureRef string

Feature reference identifier.

instructionString string

Semicolon-separated instruction string from Lua.

featureAnchor GeoPosition?

Optional (latitude, longitude) anchor of the feature's primary point geometry. Required for tessellating AugmentedRay / ArcByRadius / AugmentedPath augmented line geometry. When null, augmented line geometry is silently skipped.

spatialReferences ISpatialReferenceResolver

Optional resolver for SpatialReference commands. With it, a line instruction that follows spatial references is drawn along each referenced curve only (one LineInstruction per curve, via CoordinatesOverride). Without it, spatial references are ignored and lines follow the feature's whole geometry.

Returns

List<DrawingInstruction>