Documentation
¶
Index ¶
- type Geometry
- func (g *Geometry) AsGeoJSON() ([]byte, error)
- func (g *Geometry) Bounds() *geos.Box2D
- func (g *Geometry) Destroy()
- func (g *Geometry) GobDecode(data []byte) error
- func (g *Geometry) GobEncode() ([]byte, error)
- func (g *Geometry) MarshalBinary() ([]byte, error)
- func (g *Geometry) MarshalJSON() ([]byte, error)
- func (g *Geometry) MarshalText() ([]byte, error)
- func (g *Geometry) MarshalXML(e *xml.Encoder, _ xml.StartElement) error
- func (g *Geometry) Scan(src interface{}) error
- func (g *Geometry) SetSRID(srid int) *Geometry
- func (g *Geometry) UnmarshalBinary(data []byte) error
- func (g *Geometry) UnmarshalJSON(data []byte) error
- func (g *Geometry) UnmarshalText(data []byte) error
- func (g Geometry) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Geometry ¶
type Geometry struct {
*geos.Geom
}
A Geometry is a geometry.
func NewGeometry ¶
func NewGeometry(geom *geos.Geom) *Geometry
NewGeometry returns a new Geometry using geom.
func NewGeometryFromGeoJSON ¶
NewGeometryFromGeoJSON returns a new Geometry parsed from GeoJSON.
func NewGeometryFromWKB ¶
NewGeometryFromWKB returns a new Geometry from wkb.
func NewGeometryFromWKT ¶
NewGeometryFromWKT returns a new Geometry from wkt.
func (*Geometry) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler.
func (*Geometry) MarshalJSON ¶
MarshalJSON implements encoding/json.Marshaler.
func (*Geometry) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Geometry) MarshalXML ¶
MarshalXML implements encoding/xml.Marshaler.
func (*Geometry) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
func (*Geometry) UnmarshalJSON ¶
UnmarshalJSON implements encoding/json.Unmarshaler.
func (*Geometry) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.