Documentation
¶
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type Proj4
- func (p *Proj4) Forward(lng, lat float64) (x, y float64, err error)
- func (p *Proj4) Free()
- func (p *Proj4) Inverse(x, y float64) (lng, lat float64, err error)
- func (p *Proj4) IsLatLong() bool
- func (p *Proj4) Transform(dst *Proj4, xs, ys []float64) error
- func (p *Proj4) TransformPoint(dst *Proj4, x, y *float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type Proj4 ¶
type Proj4 struct {
// contains filtered or unexported fields
}
Proj4 represents a proj4 style projection
func NewProj4 ¶
NewProj4 create new projection from proj4 string (e.g. "+proj=longlat +datum=WGS84 +no_defs").
Source Files
¶
- bindata.go
- c_PJ_aea.go
- c_PJ_aeqd.go
- c_PJ_airy.go
- c_PJ_aitoff.go
- c_PJ_august.go
- c_PJ_bacon.go
- c_PJ_bipc.go
- c_PJ_boggs.go
- c_PJ_bonne.go
- c_PJ_calcofi.go
- c_PJ_cass.go
- c_PJ_cc.go
- c_PJ_cea.go
- c_PJ_chamb.go
- c_PJ_collg.go
- c_PJ_comill.go
- c_PJ_crast.go
- c_PJ_denoy.go
- c_PJ_eck1.go
- c_PJ_eck2.go
- c_PJ_eck3.go
- c_PJ_eck4.go
- c_PJ_eck5.go
- c_PJ_eqc.go
- c_PJ_eqdc.go
- c_PJ_fahey.go
- c_PJ_fouc_s.go
- c_PJ_gall.go
- c_PJ_geos.go
- c_PJ_gins8.go
- c_PJ_gn_sinu.go
- c_PJ_gnom.go
- c_PJ_goode.go
- c_PJ_gstmerc.go
- c_PJ_hammer.go
- c_PJ_hatano.go
- c_PJ_healpix.go
- c_PJ_igh.go
- c_PJ_imw_p.go
- c_PJ_isea.go
- c_PJ_krovak.go
- c_PJ_labrd.go
- c_PJ_laea.go
- c_PJ_lagrng.go
- c_PJ_larr.go
- c_PJ_lask.go
- c_PJ_lcc.go
- c_PJ_lcca.go
- c_PJ_loxim.go
- c_PJ_lsat.go
- c_PJ_mbt_fps.go
- c_PJ_mbtfpp.go
- c_PJ_mbtfpq.go
- c_PJ_merc.go
- c_PJ_mill.go
- c_PJ_misrsom.go
- c_PJ_mod_ster.go
- c_PJ_moll.go
- c_PJ_natearth.go
- c_PJ_natearth2.go
- c_PJ_nell.go
- c_PJ_nell_h.go
- c_PJ_nocol.go
- c_PJ_nsper.go
- c_PJ_nzmg.go
- c_PJ_ob_tran.go
- c_PJ_ocea.go
- c_PJ_oea.go
- c_PJ_omerc.go
- c_PJ_ortho.go
- c_PJ_patterson.go
- c_PJ_poly.go
- c_PJ_putp2.go
- c_PJ_putp3.go
- c_PJ_putp4p.go
- c_PJ_putp5.go
- c_PJ_putp6.go
- c_PJ_qsc.go
- c_PJ_robin.go
- c_PJ_rpoly.go
- c_PJ_sch.go
- c_PJ_sconics.go
- c_PJ_somerc.go
- c_PJ_stere.go
- c_PJ_sterea.go
- c_PJ_sts.go
- c_PJ_tcc.go
- c_PJ_tcea.go
- c_PJ_times.go
- c_PJ_tmerc.go
- c_PJ_tpeqd.go
- c_PJ_urm5.go
- c_PJ_urmfps.go
- c_PJ_vandg.go
- c_PJ_vandg2.go
- c_PJ_vandg4.go
- c_PJ_wag2.go
- c_PJ_wag3.go
- c_PJ_wag7.go
- c_PJ_wink1.go
- c_PJ_wink2.go
- c_aasincos.go
- c_adjlon.go
- c_bch2bps.go
- c_bchgen.go
- c_biveval.go
- c_dmstor.go
- c_emess.go
- c_geocent.go
- c_geodesic.go
- c_mk_cheby.go
- c_nad_cvt.go
- c_nad_init.go
- c_nad_intr.go
- c_pj_apply_gridshift.go
- c_pj_apply_vgridshift.go
- c_pj_auth.go
- c_pj_ctx.go
- c_pj_datum_set.go
- c_pj_datums.go
- c_pj_deriv.go
- c_pj_ell_set.go
- c_pj_ellps.go
- c_pj_errno.go
- c_pj_factors.go
- c_pj_fileapi.go
- c_pj_fwd.go
- c_pj_fwd3d.go
- c_pj_gauss.go
- c_pj_gc_reader.go
- c_pj_generic_selftest.go
- c_pj_geocent.go
- c_pj_gridcatalog.go
- c_pj_gridinfo.go
- c_pj_gridlist.go
- c_pj_init.go
- c_pj_initcache.go
- c_pj_inv.go
- c_pj_inv3d.go
- c_pj_latlong.go
- c_pj_list.go
- c_pj_log.go
- c_pj_malloc.go
- c_pj_mlfn.go
- c_pj_msfn.go
- c_pj_mutex.go
- c_pj_open_lib.go
- c_pj_param.go
- c_pj_phi2.go
- c_pj_pr_list.go
- c_pj_qsfn.go
- c_pj_release.go
- c_pj_run_selftests.go
- c_pj_strerrno.go
- c_pj_strtod.go
- c_pj_transform.go
- c_pj_tsfn.go
- c_pj_units.go
- c_pj_utils.go
- c_pj_zpoly1.go
- c_proj_etmerc.go
- c_proj_mdist.go
- c_proj_rouss.go
- c_rtodms.go
- c_vector1.go
- fileapi.go
- proj4.go