Mercurial > gemma
view pkg/controllers/publish.go @ 920:862cc5ba4d1d
Merge contour lines
Lines have been stored as multilinestrings comprised of adjacent
2-vertex linestrings. Merging these to longer linestrings will
allow further processing such as simplification.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 04 Oct 2018 17:46:59 +0200 |
parents | b2dc9c2f69e0 |
children | a244b18cb916 |
line wrap: on
line source
package controllers import ( "database/sql" "net/http" "gemma.intevation.de/gemma/pkg/models" ) func published(_ interface{}, req *http.Request, _ *sql.Conn) (jr JSONResult, err error) { jr = JSONResult{ Result: struct { Internal []models.IntEntry `json:"internal"` External []models.ExtEntry `json:"external"` }{ Internal: models.InternalServices.Filter(models.InternalAll), External: models.ExternalServices.Filter(models.ExternalAll), }, } return }