gis

package module
v0.0.0-...-daa0c80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MongoString string = os.Getenv("MONGOSTRING")
)

Functions

func InsertGisData

func InsertGisData(province, district, subDistrict, village string, border [][]float64) (interface{}, error)

func InsertOneDoc

func InsertOneDoc(collection string, doc interface{}) (interface{}, error)

func MongoConnect

func MongoConnect(dbname string) (*mongo.Database, error)

Types

type GisSmt5

type GisSmt5 struct {
	ID          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	Province    string             `json:"province,omitempty" bson:"province,omitempty"`
	District    string             `json:"district,omitempty" bson:"district,omitempty"`
	SubDistrict string             `json:"sub_district,omitempty" bson:"sub_district,omitempty"`
	Village     string             `json:"village,omitempty" bson:"village,omitempty"`
	Border      [][]float64        `json:"border,omitempty" bson:"border,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL