Versions in this module Expand all Collapse all v0 v0.1.0 Oct 19, 2026 Changes in this version + const DefaultSRID + func Area(col string) clause.Expression + func AsGeoJSON(col string) clause.Expression + func BBoxIntersects(col string, g geom.T) clause.Expression + func Buffer(col string, meters float64) clause.Expression + func CheckDrift(db *gorm.DB, models ...any) error + func Contains(col string, g geom.T) clause.Expression + func Covers(col string, g geom.T) clause.Expression + func DWithin(col string, g geom.T, distance float64) clause.Expression + func DWithinMeters(col string, g geom.T, meters float64) clause.Expression + func Distance(col string, g geom.T) clause.Expression + func DistanceMeters(col string, g geom.T) clause.Expression + func EnsureExtension(db *gorm.DB) error + func Envelope(minX, minY, maxX, maxY float64, srid int) *geom.Polygon + func Intersects(col string, g geom.T) clause.Expression + func MakeEnvelope(minX, minY, maxX, maxY float64, srid int) clause.Expression + func New(config postgres.Config, opts ...Option) gorm.Dialector + func Open(dsn string, opts ...Option) gorm.Dialector + func Transform(col string, srid int) clause.Expression + func Within(col string, g geom.T) clause.Expression + func Wrap(d gorm.Dialector, opts ...Option) gorm.Dialector + type Any = Geometry[geom.T] + type Dialector struct + func (d *Dialector) Migrator(db *gorm.DB) gorm.Migrator + type Drift int + const DriftAlter + const DriftError + const DriftIgnore + type Geography struct + G T + func (Geography[T]) GormDBDataType(_ *gorm.DB, field *schema.Field) string + func (Geography[T]) GormDataType() string + func (g *Geography[T]) Scan(src any) error + func (g *Geography[T]) UnmarshalJSON(data []byte) error + func (g Geography[T]) GormValue(_ context.Context, db *gorm.DB) clause.Expr + func (g Geography[T]) MarshalJSON() ([]byte, error) + func (g Geography[T]) Valid() bool + func (g Geography[T]) Value() (driver.Value, error) + type Geometry struct + G T + func Of[T geom.T](g T) Geometry[T] + func (Geometry[T]) GormDBDataType(_ *gorm.DB, field *schema.Field) string + func (Geometry[T]) GormDataType() string + func (g *Geometry[T]) Scan(src any) error + func (g *Geometry[T]) UnmarshalJSON(data []byte) error + func (g Geometry[T]) GormValue(_ context.Context, db *gorm.DB) clause.Expr + func (g Geometry[T]) MarshalJSON() ([]byte, error) + func (g Geometry[T]) Valid() bool + func (g Geometry[T]) Value() (driver.Value, error) + type LineString = Geometry[*geom.LineString] + type MultiLineString = Geometry[*geom.MultiLineString] + type MultiPoint = Geometry[*geom.MultiPoint] + type MultiPolygon = Geometry[*geom.MultiPolygon] + type Option func(*Dialector) + func WithDrift(p Drift) Option + type Point = Geometry[*geom.Point] + type Polygon = Geometry[*geom.Polygon]