Class DrawingInstructionParser
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
featureRefstringFeature reference identifier.
instructionStringstringSemicolon-separated instruction string from Lua.
featureAnchorGeoPosition?Optional (latitude, longitude) anchor of the feature's primary point geometry. Required for tessellating
AugmentedRay/ArcByRadius/AugmentedPathaugmented line geometry. When null, augmented line geometry is silently skipped.spatialReferencesISpatialReferenceResolverOptional resolver for
SpatialReferencecommands. 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.