Documentation
¶
Index ¶
- Constants
- func AddGDBDirectlyOptimized(DB *gorm.DB, gdbPath string, Main string, Color string, Opacity string, ...) []string
- func AddGeoDirectly(DB *gorm.DB, dirpath string, EN string, CN string, Main string, Color string, ...) string
- func AddSHPDirectlyOptimized(DB *gorm.DB, shpPath string, EN, CN, Main string, Color string, Opacity string, ...) string
- func Bounds(geo orb.Geometry) []tile
- func ConvertGDBLayerToPGDirect(layer Gogeo.GDBLayerInfo, DB *gorm.DB, tableName string)
- func ConvertSHPDirectlyToPG(shpfileFilePath string, DB *gorm.DB, tablename string) string
- func ConvertSHPLayerToPGDirect(layer Gogeo.SHPLayerInfo, DB *gorm.DB, tableName string)
- func DelMVT(DB *gorm.DB, tablename string, geom orb.Geometry)
- func Epsg3857_to_epsg4326(x float64, y float64) (float64, float64)
- func Epsg4326_to_epsg3857(lon float64, lat float64) (float64, float64)
- func GetPointTile(x float64, y float64) []tile
- func GetTableColumns(db *gorm.DB, tableName string) ([]string, error)
- func IsEndWithNumber(s string) bool
- func KeepTile(zoom_level int64, tiles []tile) []tile
- func LonLatToTile(lon, lat float64, zoom int64) (x, y int64)
- func MakeMvt(x int, y int, z int, items interface{}, db *gorm.DB, TempModel interface{}) []byte
- func MakeMvtNew(x int, y int, z int, tableName string, db *gorm.DB) []byte
- func TileGenerate(xmin, ymin, xmax, ymax float64) []tile
- func TileToLatLon(z, x, y int) (topLeft, topRight, bottomLeft, bottomRight [2]float64)
- func UpdateGDBDirectly(DB *gorm.DB, gdbPath string, EN, CN, Main string, Color string, Opacity string, ...) []string
- func UpdateSHPDirectly(DB *gorm.DB, shpPath string, EN, CN, Main string, Color string, Opacity string, ...) []string
- func XyzLonLat(x float64, y float64, z float64) []float64
- type MVTTile
- type ProcessedFieldInfo
Constants ¶
View Source
const HEMI_MAP_WIDTH = math.Pi * float64(6378137)
View Source
const PRECISION = 6
Variables ¶
This section is empty.
Functions ¶
func AddGDBDirectlyOptimized ¶
func AddGDBDirectlyOptimized(DB *gorm.DB, gdbPath string, Main string, Color string, Opacity string, Userunits string, LineWidth string) []string
AddGDBDirectlyOptimized 优化版本:直接将GDB文件导入到PostGIS数据库
func AddGeoDirectly ¶
func AddSHPDirectlyOptimized ¶
func AddSHPDirectlyOptimized(DB *gorm.DB, shpPath string, EN, CN, Main string, Color string, Opacity string, Userunits string, LineWidth string) string
AddSHPDirectlyOptimized 优化版本:直接将SHP文件导入到PostGIS数据库
func ConvertGDBLayerToPGDirect ¶
func ConvertGDBLayerToPGDirect(layer Gogeo.GDBLayerInfo, DB *gorm.DB, tableName string)
ConvertGDBLayerToPGDirect 直接将GDB图层数据写入PostgreSQL
func ConvertSHPDirectlyToPG ¶
直接将SHP文件写入PostgreSQL数据库
func ConvertSHPLayerToPGDirect ¶
func ConvertSHPLayerToPGDirect(layer Gogeo.SHPLayerInfo, DB *gorm.DB, tableName string)
ConvertSHPLayerToPGDirect 直接将SHP图层数据写入PostgreSQL
func GetPointTile ¶
func IsEndWithNumber ¶
func LonLatToTile ¶
func TileGenerate ¶
func TileGenerate(xmin, ymin, xmax, ymax float64) []tile
func TileToLatLon ¶
func UpdateGDBDirectly ¶
func UpdateGDBDirectly(DB *gorm.DB, gdbPath string, EN, CN, Main string, Color string, Opacity string, Userunits, AddType string, LineWidth string) []string
将gdb文件图层全部更新到数据库中
Types ¶
type ProcessedFieldInfo ¶
ProcessedFieldInfo 处理后的字段信息
Click to show internal directories.
Click to hide internal directories.