1 Star 0 Fork 0

exlimit/tegola

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
layer.go 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
package postgis
import "github.com/terranodo/tegola"
// layer holds information about a query.
type layer struct {
// The Name of the layer
name string
// The SQL to use when querying PostGIS for this layer
sql string
// The ID field name, this will default to 'gid' if not set to something other then empty string.
idField string
// The Geometery field name, this will default to 'geom' if not set to soemthing other then empty string.
geomField string
// GeomType is the the type of geometry returned from the SQL
geomType tegola.Geometry
// The SRID that the data in the table is stored in. This will default to WebMercator
srid int
}
func (l layer) Name() string {
return l.name
}
func (l layer) GeomType() tegola.Geometry {
return l.geomType
}
func (l layer) SRID() int {
return l.srid
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/exlimit/tegola.git
git@gitee.com:exlimit/tegola.git
exlimit
tegola
tegola
v0.4.0-beta

搜索帮助