Add specific location via geometry column on pool

This commit is contained in:
Eli Ribble 2026-03-05 18:38:22 +00:00
parent 121b880783
commit f97e769d4b
No known key found for this signature in database
5 changed files with 111 additions and 5 deletions

View file

@ -69,6 +69,15 @@ var Pools = Table[
Generated: false,
AutoIncr: false,
},
Geometry: column{
Name: "geometry",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: poolIndexes{
PoolPkey: index{
@ -125,11 +134,12 @@ type poolColumns struct {
ID column
SiteID column
SiteVersion column
Geometry column
}
func (c poolColumns) AsSlice() []column {
return []column{
c.Condition, c.Created, c.CreatorID, c.ID, c.SiteID, c.SiteVersion,
c.Condition, c.Created, c.CreatorID, c.ID, c.SiteID, c.SiteVersion, c.Geometry,
}
}