draw

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawGrid

func DrawGrid(canvas *svg.SVG, x, y, w, h, n int, label bool, style string)

func DrawLine

func DrawLine(canvas *svg.SVG, l tegola.LineString, id string, style string, pointStyle string)

func DrawPoint

func DrawPoint(canvas *svg.SVG, x, y int, fill string)

func DrawPolygon

func DrawPolygon(canvas *svg.SVG, p tegola.Polygon, id string, style string, pointStyle string)

func DrawPolygonTest

func DrawPolygonTest(writer io.Writer, w, h int, r *region.Region, original tegola.Polygon, expected []tegola.Polygon, got []tegola.Polygon)

func DrawRegion

func DrawRegion(canvas *svg.SVG, r *region.Region)

func MinMax

func MinMax(iminx, iminy, imaxx, imaxy, mx, my, mmx, mmy int) (minx, miny, maxx, maxy int)

func MinMaxForPolygon

func MinMaxForPolygon(p tegola.Polygon) (minx, miny, maxx, maxy int)

func MinMaxForPolygonSlice

func MinMaxForPolygonSlice(ps []tegola.Polygon) (minx, miny, maxx, maxy int)

func NewCanvas

func NewCanvas(writer io.Writer, w, h int, minx, miny, maxx, maxy int) *svg.SVG

Types

type SVG

type SVG struct {
	Filename string
}

Jump to

Keyboard shortcuts

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