代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。