Documentation
¶
Overview ¶
Package mapserver builds Mapnik .xml files.
Index ¶
- Variables
- type BuildingSymbolizer
- type DotSymbolizer
- type Font
- type FontSet
- type Layer
- type LinePatternSymbolizer
- type LineSymbolizer
- type Map
- func (m *Map) AddLayer(l mml.Layer, rules []mss.Rule)
- func (m *Map) SetAutoTypeFilter(enable bool)
- func (m *Map) SetBackgroundColor(c color.Color)
- func (m *Map) SetMapnik2(enable bool)
- func (m *Map) SetZoomScales(zoomScales []int)
- func (m *Map) Write(w io.Writer) error
- func (m *Map) WriteFiles(basename string) error
- type MarkersSymbolizer
- type Parameter
- type PointSymbolizer
- type PolygonPatternSymbolizer
- type PolygonSymbolizer
- type RasterSymbolizer
- type Rule
- type ShieldSymbolizer
- type Stop
- type Style
- type Symbolizer
- type TextSymbolizer
- type XMLMap
Constants ¶
This section is empty.
Variables ¶
View Source
var Maker2 = maker{/* contains filtered or unexported fields */}
View Source
var Maker3 = maker{}
Functions ¶
This section is empty.
Types ¶
type BuildingSymbolizer ¶
type DotSymbolizer ¶
type Layer ¶
type Layer struct { Name string `xml:"name,attr"` SRS *string `xml:"srs,attr"` Status string `xml:"status,attr,omitempty"` MaxZoom int `xml:"maxzoom,attr,omitempty"` MinZoom int `xml:"minzoom,attr,omitempty"` MaxScaleDenom int `xml:"maximum-scale-denominator,attr,omitempty"` MinScaleDenom int `xml:"minimum-scale-denominator,attr,omitempty"` GroupBy string `xml:"group-by,attr,omitempty"` ClearLabelCache string `xml:"clear-label-cache,attr,omitempty"` CacheFeatures string `xml:"cache-features,attr,omitempty"` StyleNames []string `xml:"StyleName"` Datasource *[]Parameter `xml:"Datasource>Parameter"` // as pointer to prevent empty Datasource tag for layers without datasource }
type LinePatternSymbolizer ¶
type LinePatternSymbolizer struct { XMLName xml.Name `xml:"LinePatternSymbolizer"` File *string `xml:"file,attr"` Clip *string `xml:"clip,attr"` Opacity *string `xml:"opacity,attr"` Simplify *string `xml:"simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm"` Smooth *string `xml:"smooth,attr"` Offset *string `xml:"offset,attr"` GeometryTransform *string `xml:"geometry-transform,attr"` CompOp *string `xml:"comp-op,attr"` }
type LineSymbolizer ¶
type LineSymbolizer struct { XMLName xml.Name `xml:"LineSymbolizer"` Clip *string `xml:"clip,attr"` Color *string `xml:"stroke,attr"` Dasharray *string `xml:"stroke-dasharray,attr"` DashOffset *string `xml:"stroke-dashoffset,attr"` Gamma *string `xml:"stroke-gamma,attr"` GammaMethod *string `xml:"stroke-gamma-method,attr"` Linecap *string `xml:"stroke-linecap,attr"` Miterlimit *string `xml:"stroke-miterlimit,attr"` Linejoin *string `xml:"stroke-linejoin,attr"` Offset *string `xml:"offset,attr"` Opacity *string `xml:"stroke-opacity,attr"` Rasterizer *string `xml:"stroke-rasterizer,attr"` Simplify *string `xml:"stroke-simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm,attr"` Smooth *string `xml:"stroke-smooth,attr"` Width *string `xml:"stroke-width,attr"` CompOp *string `xml:"comp-op,attr"` GeometryTransform *string `xml:"geometry-transform,attr"` }
type Map ¶
type Map struct { XML *XMLMap // contains filtered or unexported fields }
func (*Map) SetAutoTypeFilter ¶
func (*Map) SetBackgroundColor ¶
func (*Map) SetMapnik2 ¶
func (*Map) SetZoomScales ¶
func (*Map) WriteFiles ¶
type MarkersSymbolizer ¶
type MarkersSymbolizer struct { XMLName xml.Name `xml:"MarkersSymbolizer"` AllowOverlap *string `xml:"allow-overlap,attr"` File *string `xml:"file,attr"` Fill *string `xml:"fill,attr"` FillOpacity *string `xml:"fill-opacity,attr"` Height *string `xml:"height,attr"` MarkerType *string `xml:"marker-type,attr"` Opacity *string `xml:"opacity,attr"` Placement *string `xml:"placement,attr"` Spacing *string `xml:"spacing,attr"` Stroke *string `xml:"stroke,attr"` StrokeWidth *string `xml:"stroke-width,attr"` StrokeOpacity *string `xml:"stroke-opacity,attr"` Transform *string `xml:"transform,attr"` GeometryTransform *string `xml:"geometry-transform,attr"` Width *string `xml:"width,attr"` MultiPolicy *string `xml:"multi-policy,attr"` AvoidEdges *string `xml:"avoid-edges,attr"` IgnorePlacement *string `xml:"ignore-placement,attr"` MaxError *string `xml:"max-error,attr"` Clip *string `xml:"clip,attr"` Simplify *string `xml:"simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm,attr"` Smooth *string `xml:"smooth,attr"` Offset *string `xml:"offset,attr"` CompOp *string `xml:"comp-op,attr"` Direction *string `xml:"direction,attr"` }
type PointSymbolizer ¶
type PointSymbolizer struct { XMLName xml.Name `xml:"PointSymbolizer"` AllowOverlap *string `xml:"allow-overlap,attr"` File *string `xml:"file,attr"` Opacity *string `xml:"opacity,attr"` Transform *string `xml:"transform,attr"` IgnorePlacement *string `xml:"ignore-placement,attr"` Placement *string `xml:"placement,attr"` CompOp *string `xml:"comp-op,attr"` }
type PolygonPatternSymbolizer ¶
type PolygonPatternSymbolizer struct { XMLName xml.Name `xml:"PolygonPatternSymbolizer"` File *string `xml:"file,attr"` Alignment *string `xml:"alignment,attr"` Gamma *string `xml:"gamma,attr"` Opacity *string `xml:"opacity,attr"` Clip *string `xml:"clip,attr"` Simplify *string `xml:"simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm,attr"` Smooth *string `xml:"smooth,attr"` GeometryTransform *string `xml:"geometry-transform,attr"` CompOp *string `xml:"comp-op,attr"` }
type PolygonSymbolizer ¶
type PolygonSymbolizer struct { XMLName xml.Name `xml:"PolygonSymbolizer"` Clip *string `xml:"clip,attr"` Color *string `xml:"fill,attr"` Gamma *string `xml:"gamma,attr"` GammaMethod *string `xml:"gamma-method,attr"` Opacity *string `xml:"fill-opacity,attr"` Rasterizer *string `xml:"rasterizer,attr"` Simplify *string `xml:"simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm,attr"` Smooth *string `xml:"smooth,attr"` GeometryTransform *string `xml:"geometry-transform,attr"` CompOp *string `xml:"comp-op,attr"` }
type RasterSymbolizer ¶
type RasterSymbolizer struct { XMLName xml.Name `xml:"RasterSymbolizer"` CompOp *string `xml:"comp-op,attr"` DefaultColor *string `xml:"default-color,attr"` DefaultMode *string `xml:"default-mode,attr"` Epsilon *string `xml:"epsilon,attr"` FilterFactor *string `xml:"filter-factor,attr"` MeshSize *string `xml:"mesh-size,attr"` Opacity *string `xml:"opacity,attr"` Scaling *string `xml:"scaling,attr"` Stops []Stop }
type ShieldSymbolizer ¶
type ShieldSymbolizer struct { XMLName xml.Name `xml:"ShieldSymbolizer"` AllowOverlap *string `xml:"allow-overlap,attr"` AvoidEdges *string `xml:"avoid-edges,attr"` CharacterSpacing *string `xml:"character-spacing,attr"` Clip *string `xml:"clip,attr"` Dx *string `xml:"shield-dx,attr"` Dy *string `xml:"shield-dy,attr"` FaceName *string `xml:"face-name,attr"` File *string `xml:"file,attr"` Fill *string `xml:"fill,attr"` FontsetName *string `xml:"fontset-name,attr"` HaloFill *string `xml:"halo-fill,attr"` HaloRadius *string `xml:"halo-radius,attr"` HaloRasterizer *string `xml:"halo-rasterizer,attr"` HaloTransform *string `xml:"halo-transform,attr"` HaloCompOp *string `xml:"halo-comp-op,attr"` HaloOpacity *string `xml:"halo-opacity,attr"` LineSpacing *string `xml:"line-spacing,attr"` MinimumDistance *string `xml:"minimum-distance,attr"` MinimumPadding *string `xml:"minimum-padding,attr"` Name *string `xml:",chardata"` Opacity *string `xml:"opacity,attr"` Placement *string `xml:"placement,attr"` PlacementType *string `xml:"placement-type,attr"` Placements *string `xml:"placements,attr"` Transform *string `xml:"transform,attr"` Simplify *string `xml:"simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm,attr"` Smooth *string `xml:"smooth,attr"` CompOp *string `xml:"comp-op,attr"` UnlockImage *string `xml:"unlock-image,attr"` Size *string `xml:"size,attr"` Spacing *string `xml:"spacing,attr"` TextDx *string `xml:"dx,attr"` TextDy *string `xml:"dy,attr"` TextOpacity *string `xml:"text-opacity,attr"` TextTransform *string `xml:"text-transform,attr"` WrapBefore *string `xml:"wrap-before,attr"` WrapCharacter *string `xml:"wrap-character,attr"` WrapWidth *string `xml:"wrap-width,attr"` Margin *string `xml:"margin,attr"` RepeatDistance *string `xml:"repeat-distance,attr"` LabelPositionTolerance *string `xml:"label-position-tolerance,attr"` HorizontalAlign *string `xml:"horizontal-alignment,attr"` VerticalAlign *string `xml:"vertical-alignment,attr"` JustifyAlign *string `xml:"justify-alignment,attr"` }
type Symbolizer ¶
type Symbolizer struct { LineSymbolizer *LineSymbolizer PolygonSymbolizer *PolygonSymbolizer PolygonPatternSymbolizer *PolygonPatternSymbolizer PointSymbolizer *PointSymbolizer TextSymbolizer *TextSymbolizer MarkersSymbolizer *MarkersSymbolizer ShieldSymbolizer *ShieldSymbolizer RasterSymbolizer *RasterSymbolizer }
type TextSymbolizer ¶
type TextSymbolizer struct { XMLName xml.Name `xml:"TextSymbolizer"` AllowOverlap *string `xml:"allow-overlap,attr"` AvoidEdges *string `xml:"avoid-edges,attr"` CharacterSpacing *string `xml:"character-spacing,attr"` Clip *string `xml:"clip,attr"` Dx *string `xml:"dx,attr"` Dy *string `xml:"dy,attr"` FaceName *string `xml:"face-name,attr"` FontFeatureSettings *string `xml:"font-feature-settings,attr"` Fill *string `xml:"fill,attr"` FontsetName *string `xml:"fontset-name,attr"` HaloFill *string `xml:"halo-fill,attr"` HaloRadius *string `xml:"halo-radius,attr"` HaloOpacity *string `xml:"halo-opacity,attr"` HaloRasterizer *string `xml:"halo-rasterizer,attr"` HaloTransform *string `xml:"halo-transform,attr"` HaloCompOp *string `xml:"halo-comp-op,attr"` LineSpacing *string `xml:"line-spacing,attr"` MinimumDistance *string `xml:"minimum-distance,attr"` MinimumPadding *string `xml:"minimum-padding,attr"` Name *string `xml:",chardata"` Opacity *string `xml:"opacity,attr"` Orientation *string `xml:"orientation,attr"` Placement *string `xml:"placement,attr"` PlacementType *string `xml:"placement-type,attr"` Placements *string `xml:"placements,attr"` Size *string `xml:"size,attr"` Spacing *string `xml:"spacing,attr"` TextTransform *string `xml:"text-transform,attr"` WrapBefore *string `xml:"wrap-before,attr"` WrapCharacter *string `xml:"wrap-character,attr"` RepeatWrapCharacter *string `xml:"repeat-wrap-character,attr"` WrapWidth *string `xml:"wrap-width,attr"` Ratio *string `xml:"text-ratio,attr"` LabelPositionTolerance *string `xml:"label-position-tolerance,attr"` MaxCharAngleDelta *string `xml:"max-char-angle-delta,attr"` VerticalAlign *string `xml:"vertical-alignment,attr"` HorizontalAlign *string `xml:"horizontal-alignment,attr"` JustifyAlign *string `xml:"justify-alignment,attr"` Margin *string `xml:"margin,attr"` RepeatDistance *string `xml:"repeat-distance,attr"` MinPathLength *string `xml:"minimum-path-length,attr"` RotateDisplacement *string `xml:"rotate-displacement,attr"` Upright *string `xml:"upright,attr"` Simplify *string `xml:"simplify,attr"` SimplifyAlgorithm *string `xml:"simplify-algorithm,attr"` Smooth *string `xml:"smooth,attr"` CompOp *string `xml:"comp-op,attr"` LargestBboxOnly *string `xml:"largest-bbox-only,attr"` }
Click to show internal directories.
Click to hide internal directories.