wmsstaticmap

package module
v0.0.0-...-d2dfaf4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-wms-staticmap

Create Staticmaps from WMS Server with Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchMap

func FetchMap(url string, layer string, bounds *geom.MultiPoint, size Size, params map[string]string) (result string, err error)

FetchMap : fetch a map from url and layer with bounds in EPSG:4326 and return a png with size

func GetXYfromLonLat

func GetXYfromLonLat(bounds *geom.MultiPoint, size Size, point [2]float64) (coordinates [2]int)

GetXYfromLonLat

Types

type Size

type Size struct {
	Width, Height int
}

Size : can either be Integer for the long side, or a struct consistant of width and height (both integers)

func (*Size) UnmarshalJSON

func (d *Size) UnmarshalJSON(data []byte) error

UnmarshalJSON : Own Json Unmarshal to check if type is int or struct

Jump to

Keyboard shortcuts

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