mygeo

package
v4.13.11 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullPoint

type NullPoint struct {
	Point
	Valid bool `json:"valid"`
}

NullPoint allows point to be null

func NullPointFrom

func NullPointFrom(p Point) NullPoint

func (*NullPoint) Randomize

func (p *NullPoint) Randomize(nextInt func() int64, fieldType string, shouldBeNull bool)

Randomize for sqlboiler

func (*NullPoint) Scan

func (p *NullPoint) Scan(src interface{}) error

Scan from sql query

func (NullPoint) Value

func (p NullPoint) Value() (driver.Value, error)

Value for database

type Point

type Point struct {
	OrbPoint orb.Point
	SRID     int `json:"srid"`
}

Point is the fundamental two-dimensional building block for geometric types.

func NewPoint

func NewPoint(X, Y float64, SRID int) Point

NewPoint creates a point

func (*Point) Randomize

func (p *Point) Randomize(nextInt func() int64, fieldType string, shouldBeNull bool)

Randomize for sqlboiler

func (*Point) Scan

func (p *Point) Scan(src interface{}) error

Scan from query

func (Point) Value

func (p Point) Value() (driver.Value, error)

Value representation for database

Jump to

Keyboard shortcuts

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