render

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package render implements map renderers baseed on Mapnik and MapServer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapServer

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

func NewMapServer

func NewMapServer() (*MapServer, error)

func (*MapServer) Render

func (m *MapServer) Render(mapfile string, dst io.Writer, mapReq Request) ([]string, error)

type Mapnik

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

func NewMapnik

func NewMapnik() (*Mapnik, error)

func (*Mapnik) Close

func (m *Mapnik) Close() error

func (*Mapnik) Is3

func (m *Mapnik) Is3() (bool, error)

func (*Mapnik) RegisterFonts

func (m *Mapnik) RegisterFonts(fontDir string) error

func (*Mapnik) Render

func (m *Mapnik) Render(mapfile string, dst io.Writer, mapReq Request) error

type Request

type Request struct {
	Width       int
	Height      int
	BBOX        [4]float64
	EPSGCode    int
	Format      string
	ScaleFactor float64
	BGColor     *color.NRGBA
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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