mapnik

package
v0.0.0-...-5b3cd62 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDatasources

func RegisterDatasources(path string)

func RegisterFonts

func RegisterFonts(path string)

func Version

func Version() string

Types

type Coord

type Coord struct {
	X, Y float64
}

Point in 2D space

type Map

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

Map base type

func NewMap

func NewMap(width, height uint32) *Map

func (*Map) Free

func (m *Map) Free()

func (*Map) Load

func (m *Map) Load(stylesheetFile string) error

Load initializes the map by loading its stylesheet from stylesheetFile

func (*Map) LoadString

func (m *Map) LoadString(stylesheet string) error

LoadString initializes the map not from a file but from a stylesheet provided as a string.

func (*Map) Projection

func (m *Map) Projection() Projection

func (*Map) RenderToFile

func (m *Map) RenderToFile(path string) error

func (*Map) RenderToMemoryPng

func (m *Map) RenderToMemoryPng() ([]byte, error)

func (*Map) Resize

func (m *Map) Resize(width, height uint32)

func (*Map) SRS

func (m *Map) SRS() string

func (*Map) SetBufferSize

func (m *Map) SetBufferSize(s int)

func (*Map) SetSRS

func (m *Map) SetSRS(srs string)

func (*Map) ZoomAll

func (m *Map) ZoomAll() error

func (*Map) ZoomToMinMax

func (m *Map) ZoomToMinMax(minx, miny, maxx, maxy float64)

type Projection

type Projection struct {
	// contains filtered or unexported fields
}

Projection from one reference system to the other

func (Projection) Forward

func (p Projection) Forward(coord Coord) Coord

func (*Projection) Free

func (p *Projection) Free()

Jump to

Keyboard shortcuts

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