mapserver

package
Version: v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package mapserver builds MapServer .map files.

Index

Constants

View Source
const FontFactor = 72 / 90.7 /*dpi*/

FontFactor is used to adjust differences of font sized between Mapnik and Mapserver.

View Source
const HaloWidthFactor = 2 * 72 / 90.7 // twice the radius

HaloWidthFactor is used to adjust differences of halo outline/radius sizes between Mapnik and Mapserver.

View Source
const LineWidthFactor = 1 // 1 for DEFRESOLUTION 72, 1.25 (90.7/72) for DEFRESOLUTION 90.7

LineWidthFactor is used to adjust differences of line width and pattern sizes between Mapnik and Mapserver.

Variables

View Source
var Maker = maker{}

Functions

This section is empty.

Types

type Block

type Block struct {
	Name string
	// contains filtered or unexported fields
}

func NewBlock

func NewBlock(name string, items ...Item) Block

func (*Block) Add

func (b *Block) Add(name string, value interface{})

func (*Block) AddDefault

func (b *Block) AddDefault(name string, value *string, def string)

func (*Block) AddNonNil

func (b *Block) AddNonNil(name string, value *string)

func (*Block) Len

func (b *Block) Len() int

func (Block) String

func (b Block) String() string

type Item

type Item struct {
	Name  string
	Value interface{}
}

func (Item) String

func (i Item) String() string

type Layer

type Layer struct {
}

type Map

type Map struct {
	Map    Block
	Layers Block
	// contains filtered or unexported fields
}

func New

func New(locator config.Locator) *Map

func (*Map) AddLayer

func (m *Map) AddLayer(layer mml.Layer, rules []mss.Rule)

func (*Map) SetAutoTypeFilter

func (m *Map) SetAutoTypeFilter(enable bool)

func (*Map) SetBackgroundColor

func (m *Map) SetBackgroundColor(c color.Color)

func (*Map) SetNoMapBlock

func (m *Map) SetNoMapBlock(enable bool)

func (*Map) SetZoomScales

func (m *Map) SetZoomScales(zoomScales []int)

func (*Map) String

func (m *Map) String() string

func (*Map) Write

func (m *Map) Write(w io.Writer) error

func (*Map) WriteFiles

func (m *Map) WriteFiles(basename string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL