Versions in this module Expand all Collapse all v0 v0.2.13 Apr 12, 2023 Changes in this version + func Degrees2meters(lon, lat float64) (x, y float64) + func DrawShapes(f io.Writer, strokeColor, fillColor []color.NRGBA, ...) error + func GetGoogleTileBounds(zoom, x, y int) (N, S, E, W float64) + type Canvas struct + Bounds *geom.Bounds + Polygon geom.Polygon + func NewCanvas(N, S, E, W float64, c draw.Canvas) *Canvas + func (m *Canvas) Coordinates(p geom.Point) vg.Point + func (m *Canvas) DrawVector(g geom.Geom, fillColor color.NRGBA, lineStyle draw.LineStyle, ...) error + type ColorMap struct + BackgroundColor color.Color + ColorScheme Colorlist + CutPercentile float64 + EdgeColor color.Color + Font string + FontColor color.Color + FontSize vg.Length + GradientLineWidth vg.Length + LegendHeight vg.Length + LegendWidth vg.Length + LineWidth vg.Length + NumDivisions int + Type ColorMapType + func NewColorMap(Type ColorMapType) (c *ColorMap) + func (c *ColorMap) AddArray(data []float64) + func (c *ColorMap) AddArrayServer(datachan chan []float64, finished chan int) + func (c *ColorMap) AddGeoJSON(g *GeoJSON, propertyName string) + func (c *ColorMap) AddMap(data map[string]float64) + func (c *ColorMap) Legend(canvas *draw.Canvas, label string) (err error) + func (c *ColorMap) Set() + func (cm *ColorMap) GetColor(v float64) color.NRGBA + type ColorMapType int + const LinCutoff + const Linear + type Colorlist struct + B []float64 + G []float64 + HighLimit color.NRGBA + LowLimit color.NRGBA + R []float64 + Val []float64 + var Jet Colorlist = Colorlist{ ... } + var JetPosOnly Colorlist = Colorlist{ ... } + var Optimized Colorlist = Colorlist{ ... } + var OptimizedGrey Colorlist = Colorlist{ ... } + type Crs struct + Properties CrsProps + Type string + type CrsProps struct + Name string + type DefaultLegendCanvas struct + func NewDefaultLegendCanvas() *DefaultLegendCanvas + func (c *DefaultLegendCanvas) WriteTo(w io.Writer) error + type GeoJSON struct + CRS Crs + Features []*GeoJSONfeature + Type string + func LoadGeoJSON(r io.Reader) (*GeoJSON, error) + func (g *GeoJSON) GetGeometry() ([]geom.Geom, error) + func (g *GeoJSON) GetProperty(propertyName string) []float64 + func (g *GeoJSON) Sum(propertyName string) float64 + type GeoJSONfeature struct + Geometry *geojson.Geometry + Properties map[string]float64 + Type string + type MapData struct + Cmap *ColorMap + Data []float64 + DrawEdges bool + Shapes []geom.Geom + func NewMapData(numShapes int, Type ColorMapType) *MapData + func (m *MapData) ToGeoJSON(valueName string) (*GeoJSON, error) + func (m *MapData) WriteGoogleMapTile(w io.Writer, zoom, x, y int) error + type RasterMap struct + I *image.RGBA + func NewCanvasFromRaster(S, W, dy, dx float64, ny, nx int, data []float64, cmap *ColorMap, ...) *RasterMap + func NewRasterMap(N, S, E, W float64, width int) *RasterMap + func (r *RasterMap) WriteTo(f io.Writer) error + type UnsupportedGeometryError struct + Type reflect.Type + func (e UnsupportedGeometryError) Error() string