view go.mod @ 4890:5d9c7fcda566

Fix drawing of fairway profile. The basic functionality for calculating the graph to draw resides in geo.js This was a port of existing code from the backend (cross.go). For historic reasons there was a bug present in this code which was fixed in the backend. The height was transformed via Math.abs() which results in strange behavior for measurements above the waterlevel. Points which are 1.5m above the waterlevel were drawn 1.5m below the waterlevel. There were two fixes: 1) The y-component of the x/y-pair of the fairwayprofile point is taken as is without Math.abs() 2) To draw the diagram, there is the definition of a domain necessarry. A minimum value for the values above the waterlevel is constructed in case there is no point above (10 percent of the range below the waterlevel). In case there are values above the waterlevel which in turn means the minumum value is < 0, there is this value taken as a minimum. D3 scales accordingly.
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 10 Feb 2020 15:09:59 +0100
parents c0eb491aaaa7
children 5890e62e6d52
line wrap: on
line source

module gemma.intevation.de/gemma

go 1.13

require (
	github.com/cockroachdb/apd v1.1.0 // indirect
	github.com/etcd-io/bbolt v1.3.3
	github.com/fogleman/contourmap v0.0.0-20190814184649-9f61d36c4199
	github.com/gofrs/uuid v3.2.0+incompatible // indirect
	github.com/gorilla/mux v1.7.3
	github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect
	github.com/jackc/pgx v3.6.0+incompatible
	github.com/jonas-p/go-shp v0.1.2-0.20190401125246-9fd306ae10a6
	github.com/lib/pq v1.2.0 // indirect
	github.com/magiconair/properties v1.8.1 // indirect
	github.com/mitchellh/go-homedir v1.1.0
	github.com/pelletier/go-toml v1.4.0 // indirect
	github.com/pkg/errors v0.8.1 // indirect
	github.com/rs/cors v1.7.0
	github.com/sergi/go-diff v1.0.0
	github.com/shopspring/decimal v0.0.0-20190905144223-a36b5d85f337 // indirect
	github.com/spf13/afero v1.2.2 // indirect
	github.com/spf13/cobra v0.0.5
	github.com/spf13/jwalterweatherman v1.1.0 // indirect
	github.com/spf13/pflag v1.0.5 // indirect
	github.com/spf13/viper v1.4.0
	github.com/tidwall/rtree v0.0.0-20180113144539-6cd427091e0e
	github.com/tidwall/tinyqueue v0.0.0-20180302190814-1e39f5511563 // indirect
	go.etcd.io/bbolt v1.3.3 // indirect
	golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392 // indirect
	golang.org/x/net v0.0.0-20190921015927-1a5e07d1ff72
	golang.org/x/text v0.3.2 // indirect
	gonum.org/v1/gonum v0.0.0-20190922162417-bcfb93e04962
	gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
	gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
	gopkg.in/robfig/cron.v1 v1.2.0
)