snap

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnapPolygon

func SnapPolygon(polygon geom.Polygon, tileMatrixSet tms20.TileMatrixSet, tmIDs []tms20.TMID, config Config) map[tms20.TMID][]geom.Polygon

SnapPolygon snaps polygons' points to a tile's internal pixel grid and adds points to lines to prevent intersections.

Types

type Config added in v0.0.8

type Config struct {
	KeepPointsAndLines  bool
	IgnoreOutsideGrid   bool
	ReverseWindingOrder bool
}

type IsOuter

type IsOuter = bool

Jump to

Keyboard shortcuts

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