flutter_map_sld library
Parse, validate, and use OGC Styled Layer Descriptor (SLD) and Symbology Encoding (SE) styles in Dart.
This is the pure Dart core package. It has no dependency on dart:io,
Flutter, or flutter_map.
Classes
- And
- Logical AND: true when all child filters evaluate to true.
- BBox
-
Bounding-box filter: true when the feature geometry intersects the
envelope. - Beyond
- True when the feature geometry is beyond distance from the reference geometry.
- Categorize
- Maps a continuous value to discrete categories via thresholds.
- ChannelSelection
- Channel selection for multi-band raster data.
- ColorMap
-
A mapping from quantity values to colors, used in
RasterSymbolizer. - ColorMapEntry
- A single entry in a ColorMap.
- ColorScaleStop
- A color-quantity pair for building color scales.
- ComparisonFilter
- Base for binary comparison filters.
- Concatenate
- Concatenates the string representations of its child expressions.
- Contains
- True when the feature geometry fully contains the reference geometry.
- ContrastEnhancement
-
Contrast enhancement parameters for a
RasterSymbolizer. - Crosses
- True when the feature geometry crosses the reference geometry.
- Disjoint
- True when the feature geometry does not intersect the reference geometry.
- DistanceFilter
- Base for distance-based spatial filters.
- DWithin
- True when the feature geometry is within distance of the reference geometry.
- Expression
- An OGC expression that can be evaluated against feature properties.
- ExtensionNode
- Represents an unknown or vendor-specific XML element preserved during parsing.
- ExternalGraphic
- An external image used as a graphic symbol.
- FeatureTypeStyle
- Groups rules that apply to a specific feature type.
- Fill
- Fill styling for polygons and marks.
- Filter
- An OGC filter that can be evaluated against feature properties.
- Font
- Font styling for text labels.
- FormatNumber
- Formats a numeric value using a pattern string.
- Graphic
- A graphic symbol used in point symbolizers.
- Halo
- Halo (outline) around text labels for readability.
- Interpolate
- Interpolates between data points.
- InterpolationPoint
- A data/value pair for Interpolate.
- Intersects
- True when the feature geometry intersects the reference geometry.
- LabelPlacement
- Label placement strategy.
- LegendEntry
- A single legend entry derived from a ColorMap.
- LinePlacement
- Line-following label placement parameters.
- LineSymbolizer
- Styling for line features.
- Literal
- A constant literal value.
- Mark
- A well-known mark shape.
- MatchedRule
-
A rule matched by
SldDocument.selectMatchingRules, together with its layer/style/feature-type-style context. - Not
- Logical NOT: negates the result of filter.
- Or
- Logical OR: true when any child filters evaluates to true.
- PointPlacement
- Point-based label placement parameters.
- PointSymbolizer
- Styling for point features.
- PolygonSymbolizer
- Styling for polygon features.
- PropertyIsBetween
- True when expression falls between lowerBoundary and upperBoundary (inclusive).
- PropertyIsEqualTo
- True when both expressions evaluate to equal values.
- PropertyIsGreaterThan
- True when expression1 is numerically or lexicographically greater than expression2.
- PropertyIsGreaterThanOrEqualTo
- True when expression1 is greater than or equal to expression2.
- PropertyIsLessThan
- True when expression1 is numerically or lexicographically less than expression2.
- PropertyIsLessThanOrEqualTo
- True when expression1 is less than or equal to expression2.
- PropertyIsLike
- True when expression matches pattern using wildcard/single-char syntax.
- PropertyIsNotEqualTo
- True when both expressions evaluate to different values.
- PropertyIsNull
-
True when expression evaluates to
null. - PropertyName
- A reference to a feature attribute by name.
- RasterSymbolizer
- Styling parameters for raster data.
- Recode
- Remaps discrete input values to output values.
- RecodeMapping
- A single input→output mapping for Recode.
- Rule
-
A styling rule within a
FeatureTypeStyle. - SelectedChannel
- A selected channel (band) within a raster dataset.
- ShadedRelief
- Shaded relief parameters for rendering terrain raster data.
- SldDocument
- A parsed SLD/SE document.
- SldIssue
- Gemeinsame Basis für alle Issues (Dart 3 sealed class).
- SldLayer
- A named layer within an SLD document.
- SldParseIssue
- An issue encountered during XML parsing.
- SldParseResult
- The result of parsing an SLD/SE XML document.
- SldValidationIssue
- An issue encountered during model validation.
- SldValidationResult
-
The result of validating a parsed
SldDocument. - SldValidator
- Validates a parsed SldDocument against domain-level rules.
- SpatialFilter
- Base for spatial filter operators.
- SpatialOverlaps
-
Named
SpatialOverlapsto avoid collision with Flutter'sOverlaps. - Stroke
- Stroke styling for lines and polygon outlines.
- TextSymbolizer
- Styling for text labels on features.
- Touches
- True when the feature geometry touches the reference geometry.
- UserStyle
- A named style applied to a layer, containing one or more FeatureTypeStyle blocks.
- VendorOption
-
A GeoServer
<VendorOption>key-value pair. - Within
- True when the feature geometry is fully within the reference geometry.
Enums
- ColorMapType
- The interpolation method used by a ColorMap.
- ContrastMethod
- Method used for contrast enhancement of raster data.
- InterpolateMode
- Interpolation modes per OGC SE 1.1.
- SldIssueSeverity
- Severity levels for parse and validation issues.
Functions
-
distancePointToPoint(
GmlPoint a, GmlPoint b) → double - Euclidean distance between two points.
-
envelopeIntersects(
GmlEnvelope a, GmlEnvelope b) → bool - Whether two envelopes intersect (share any area).
-
extractColorScale(
ColorMap colorMap) → List< ColorScaleStop> - Extracts a color scale (ordered color-quantity stops) from a ColorMap.
-
extractLegend(
ColorMap colorMap) → List< LegendEntry> - Extracts legend entries from a ColorMap.
-
geometryDistance(
GmlGeometry a, GmlGeometry b) → double - Minimum distance between two geometries (point-to-point only).
-
geometryEnvelope(
GmlGeometry geom) → GmlEnvelope - Returns the bounding envelope of a geometry.
-
geometryIntersects(
GmlGeometry a, GmlGeometry b) → bool - Whether a geometry intersects another geometry.
-
geometryWithin(
GmlGeometry inner, GmlGeometry outer) → bool -
Whether geometry
inneris fully within geometryouter. -
lineIntersectsEnvelope(
GmlLineString line, GmlEnvelope env) → bool - Whether a line string intersects an envelope.
-
pointInEnvelope(
GmlPoint p, GmlEnvelope env) → bool - Whether a point lies inside an envelope (inclusive).
-
pointInPolygon(
GmlPoint p, GmlPolygon poly) → bool - Whether a point lies inside a polygon (ray-casting algorithm).