Documentation
¶
Index ¶
- Constants
- type DBEncoder
- type Feature
- func (m *Feature) Geometry() Geometry
- func (m *Feature) MarshalBinary() ([]byte, error)
- func (m Feature) MarshalJSON() ([]byte, error)
- func (m *Feature) SetGeometry(val Geometry)
- func (m *Feature) UnmarshalBinary(b []byte) error
- func (m *Feature) UnmarshalJSON(raw []byte) error
- func (m *Feature) Validate(formats strfmt.Registry) error
- type FeatureCollection
- type FeatureType
- type Geometry
- type GeometryCollection
- func (m *GeometryCollection) Geometries() []Geometry
- func (m *GeometryCollection) MarshalBinary() ([]byte, error)
- func (m GeometryCollection) MarshalJSON() ([]byte, error)
- func (m *GeometryCollection) SetGeometries(val []Geometry)
- func (m *GeometryCollection) UnmarshalBinary(b []byte) error
- func (m *GeometryCollection) UnmarshalJSON(raw []byte) error
- func (m *GeometryCollection) Validate(formats strfmt.Registry) error
- type GeometryType
- type LineString
- func (m *LineString) ByteOrder() binary.ByteOrder
- func (m *LineString) Layout() geom.Layout
- func (m *LineString) MarshalBinary() ([]byte, error)
- func (m LineString) MarshalJSON() ([]byte, error)
- func (m *LineString) SRID() uint32
- func (m *LineString) Scan(data []byte) error
- func (m *LineString) SetByteOrder(b binary.ByteOrder)
- func (m *LineString) SetLayout(l geom.Layout)
- func (m *LineString) SetSRID(srid uint32)
- func (m *LineString) SetType(val GeometryType)
- func (m *LineString) Type() GeometryType
- func (m *LineString) UnmarshalBinary(b []byte) error
- func (m *LineString) UnmarshalJSON(raw []byte) error
- func (m *LineString) Validate(formats strfmt.Registry) error
- func (m LineString) Value() (driver.Value, error)
- type MultiLineString
- func (m *MultiLineString) ByteOrder() binary.ByteOrder
- func (m *MultiLineString) Layout() geom.Layout
- func (m *MultiLineString) MarshalBinary() ([]byte, error)
- func (m MultiLineString) MarshalJSON() ([]byte, error)
- func (m *MultiLineString) SRID() uint32
- func (m *MultiLineString) Scan(data []byte) error
- func (m *MultiLineString) SetByteOrder(b binary.ByteOrder)
- func (m *MultiLineString) SetLayout(l geom.Layout)
- func (m *MultiLineString) SetSRID(srid uint32)
- func (m *MultiLineString) SetType(val GeometryType)
- func (m *MultiLineString) Type() GeometryType
- func (m *MultiLineString) UnmarshalBinary(b []byte) error
- func (m *MultiLineString) UnmarshalJSON(raw []byte) error
- func (m *MultiLineString) Validate(formats strfmt.Registry) error
- func (m MultiLineString) Value() (driver.Value, error)
- type MultiPoint
- func (m *MultiPoint) ByteOrder() binary.ByteOrder
- func (m *MultiPoint) Layout() geom.Layout
- func (m *MultiPoint) MarshalBinary() ([]byte, error)
- func (m MultiPoint) MarshalJSON() ([]byte, error)
- func (m *MultiPoint) SRID() uint32
- func (m *MultiPoint) Scan(data []byte) error
- func (m *MultiPoint) SetByteOrder(b binary.ByteOrder)
- func (m *MultiPoint) SetLayout(l geom.Layout)
- func (m *MultiPoint) SetSRID(srid uint32)
- func (m *MultiPoint) SetType(val GeometryType)
- func (m *MultiPoint) Type() GeometryType
- func (m *MultiPoint) UnmarshalBinary(b []byte) error
- func (m *MultiPoint) UnmarshalJSON(raw []byte) error
- func (m *MultiPoint) Validate(formats strfmt.Registry) error
- func (m MultiPoint) Value() (driver.Value, error)
- type MultiPolygon
- func (m *MultiPolygon) ByteOrder() binary.ByteOrder
- func (m *MultiPolygon) Layout() geom.Layout
- func (m *MultiPolygon) MarshalBinary() ([]byte, error)
- func (m MultiPolygon) MarshalJSON() ([]byte, error)
- func (m *MultiPolygon) SRID() uint32
- func (m *MultiPolygon) Scan(data []byte) error
- func (m *MultiPolygon) SetByteOrder(b binary.ByteOrder)
- func (m *MultiPolygon) SetLayout(l geom.Layout)
- func (m *MultiPolygon) SetSRID(srid uint32)
- func (m *MultiPolygon) SetType(val GeometryType)
- func (m *MultiPolygon) Type() GeometryType
- func (m *MultiPolygon) UnmarshalBinary(b []byte) error
- func (m *MultiPolygon) UnmarshalJSON(raw []byte) error
- func (m *MultiPolygon) Validate(formats strfmt.Registry) error
- func (m MultiPolygon) Value() (driver.Value, error)
- type Point
- func (m *Point) ByteOrder() binary.ByteOrder
- func (m *Point) Layout() geom.Layout
- func (m *Point) MarshalBinary() ([]byte, error)
- func (m Point) MarshalJSON() ([]byte, error)
- func (m *Point) SRID() uint32
- func (m *Point) Scan(data []byte) error
- func (m *Point) SetByteOrder(b binary.ByteOrder)
- func (m *Point) SetLayout(l geom.Layout)
- func (m *Point) SetSRID(srid uint32)
- func (m *Point) SetType(val GeometryType)
- func (m *Point) Type() GeometryType
- func (m *Point) UnmarshalBinary(b []byte) error
- func (m *Point) UnmarshalJSON(raw []byte) error
- func (m *Point) Validate(formats strfmt.Registry) error
- func (m Point) Value() (driver.Value, error)
- type Point2D
- type Polygon
- func (m *Polygon) ByteOrder() binary.ByteOrder
- func (m *Polygon) Layout() geom.Layout
- func (m *Polygon) MarshalBinary() ([]byte, error)
- func (m Polygon) MarshalJSON() ([]byte, error)
- func (m *Polygon) SRID() uint32
- func (m *Polygon) SetByteOrder(b binary.ByteOrder)
- func (m *Polygon) SetLayout(l geom.Layout)
- func (m *Polygon) SetSRID(srid uint32)
- func (m *Polygon) SetType(val GeometryType)
- func (m *Polygon) Type() GeometryType
- func (m *Polygon) UnmarshalBinary(b []byte) error
- func (m *Polygon) UnmarshalJSON(raw []byte) error
- func (m *Polygon) Validate(formats strfmt.Registry) error
Constants ¶
const ( // GeometryCollectionTypeGeometryCollection captures enum value "GeometryCollection" GeometryCollectionTypeGeometryCollection string = "GeometryCollection" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
// id
ID interface{} `json:"id,omitempty"`
// properties
Properties map[string]interface{} `json:"properties,omitempty"`
// type
Type FeatureType `json:"type,omitempty"`
// bbox
BBox []float64 `json:"bbox,omitempty"`
// contains filtered or unexported fields
}
Feature GeoJSON Feature swagger:model Feature
func (*Feature) MarshalBinary ¶
MarshalBinary interface implementation
func (Feature) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Feature) SetGeometry ¶
SetGeometry sets the geometry of this base type
func (*Feature) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Feature) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type FeatureCollection ¶
type FeatureCollection struct {
// features
Features []*Feature `json:"features,omitempty"`
Type string `json:"type"`
// bbox
BBox []float64 `json:"bbox,omitempty"`
}
FeatureCollection feature collection swagger:model FeatureCollection
func (*FeatureCollection) MarshalBinary ¶
func (m *FeatureCollection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (FeatureCollection) MarshalJSON ¶
func (m FeatureCollection) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*FeatureCollection) UnmarshalBinary ¶
func (m *FeatureCollection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FeatureType ¶
type FeatureType string
FeatureType Feature types swagger:model FeatureType
const ( // FeatureTypeFeature captures enum value "Feature" FeatureTypeFeature FeatureType = "Feature" )
type Geometry ¶
type Geometry interface {
runtime.Validatable
// type
// Required: true
Type() GeometryType
SetType(GeometryType)
// layout
Layout() geom.Layout
SetLayout(geom.Layout)
ByteOrder() binary.ByteOrder
SetByteOrder(binary.ByteOrder)
SRID() uint32
SetSRID(uint32)
}
Geometry GeoJSON geometry swagger:discriminator Geometry type
func UnmarshalGeometry ¶
UnmarshalGeometry unmarshals polymorphic Geometry
type GeometryCollection ¶
type GeometryCollection struct {
// type
// Required: true
// Enum: [GeometryCollection]
Type *string `json:"type"`
// contains filtered or unexported fields
}
GeometryCollection GeoJSON geometry collection swagger:model GeometryCollection
func (*GeometryCollection) Geometries ¶
func (m *GeometryCollection) Geometries() []Geometry
Geometries gets the geometries of this base type
func (*GeometryCollection) MarshalBinary ¶
func (m *GeometryCollection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GeometryCollection) MarshalJSON ¶
func (m GeometryCollection) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*GeometryCollection) SetGeometries ¶
func (m *GeometryCollection) SetGeometries(val []Geometry)
SetGeometries sets the geometries of this base type
func (*GeometryCollection) UnmarshalBinary ¶
func (m *GeometryCollection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GeometryCollection) UnmarshalJSON ¶
func (m *GeometryCollection) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type GeometryType ¶
type GeometryType string
GeometryType the geometry type swagger:model GeometryType
const ( // GeometryTypePoint captures enum value "Point" GeometryTypePoint GeometryType = "Point" // GeometryTypeLineString captures enum value "LineString" GeometryTypeLineString GeometryType = "LineString" // GeometryTypePolygon captures enum value "Polygon" GeometryTypePolygon GeometryType = "Polygon" // GeometryTypeMultiPoint captures enum value "MultiPoint" GeometryTypeMultiPoint GeometryType = "MultiPoint" // GeometryTypeMultiLineString captures enum value "MultiLineString" GeometryTypeMultiLineString GeometryType = "MultiLineString" // GeometryTypeMultiPolygon captures enum value "MultiPolygon" GeometryTypeMultiPolygon GeometryType = "MultiPolygon" )
type LineString ¶
type LineString struct {
// coordinates
Coordinates []Point2D `json:"coordinates"`
// contains filtered or unexported fields
}
LineString GeoJSON geometry swagger:model LineString
func (*LineString) MarshalBinary ¶
func (m *LineString) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (LineString) MarshalJSON ¶
func (m LineString) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*LineString) Scan ¶
func (m *LineString) Scan(data []byte) error
Scan implements the sql.Scanner interface
func (*LineString) SetByteOrder ¶
func (*LineString) SetType ¶
func (m *LineString) SetType(val GeometryType)
SetType sets the type of this subtype
func (*LineString) Type ¶
func (m *LineString) Type() GeometryType
Type gets the type of this subtype
func (*LineString) UnmarshalBinary ¶
func (m *LineString) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*LineString) UnmarshalJSON ¶
func (m *LineString) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type MultiLineString ¶
type MultiLineString struct {
// coordinates
Coordinates [][]Point2D `json:"coordinates"`
// contains filtered or unexported fields
}
MultiLineString GeoJSON geometry swagger:model MultiLineString
func (*MultiLineString) MarshalBinary ¶
func (m *MultiLineString) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (MultiLineString) MarshalJSON ¶
func (m MultiLineString) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*MultiLineString) Scan ¶
func (m *MultiLineString) Scan(data []byte) error
Scan implements the sql.Scanner interface
func (*MultiLineString) SetByteOrder ¶
func (*MultiLineString) SetType ¶
func (m *MultiLineString) SetType(val GeometryType)
SetType sets the type of this subtype
func (*MultiLineString) Type ¶
func (m *MultiLineString) Type() GeometryType
Type gets the type of this subtype
func (*MultiLineString) UnmarshalBinary ¶
func (m *MultiLineString) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*MultiLineString) UnmarshalJSON ¶
func (m *MultiLineString) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type MultiPoint ¶
type MultiPoint struct {
// coordinates
Coordinates []Point2D `json:"coordinates"`
// contains filtered or unexported fields
}
MultiPoint GeoJSON geometry swagger:model MultiPoint
func (*MultiPoint) MarshalBinary ¶
func (m *MultiPoint) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (MultiPoint) MarshalJSON ¶
func (m MultiPoint) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*MultiPoint) Scan ¶
func (m *MultiPoint) Scan(data []byte) error
Scan implements the sql.Scanner interface
func (*MultiPoint) SetByteOrder ¶
func (*MultiPoint) SetType ¶
func (m *MultiPoint) SetType(val GeometryType)
SetType sets the type of this subtype
func (*MultiPoint) Type ¶
func (m *MultiPoint) Type() GeometryType
Type gets the type of this subtype
func (*MultiPoint) UnmarshalBinary ¶
func (m *MultiPoint) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*MultiPoint) UnmarshalJSON ¶
func (m *MultiPoint) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type MultiPolygon ¶
type MultiPolygon struct {
// coordinates
Coordinates [][][]Point2D `json:"coordinates"`
// contains filtered or unexported fields
}
MultiPolygon GeoJSON geometry swagger:model MultiPolygon
func (*MultiPolygon) MarshalBinary ¶
func (m *MultiPolygon) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (MultiPolygon) MarshalJSON ¶
func (m MultiPolygon) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*MultiPolygon) Scan ¶
func (m *MultiPolygon) Scan(data []byte) error
Scan implements the sql.Scanner interface
func (*MultiPolygon) SetByteOrder ¶
func (*MultiPolygon) SetType ¶
func (m *MultiPolygon) SetType(val GeometryType)
SetType sets the type of this subtype
func (*MultiPolygon) Type ¶
func (m *MultiPolygon) Type() GeometryType
Type gets the type of this subtype
func (*MultiPolygon) UnmarshalBinary ¶
func (m *MultiPolygon) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*MultiPolygon) UnmarshalJSON ¶
func (m *MultiPolygon) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type Point ¶
type Point struct {
// coordinates
Coordinates Point2D `json:"coordinates,omitempty"`
// contains filtered or unexported fields
}
Point GeoJSON geometry swagger:model Point
func (*Point) MarshalBinary ¶
MarshalBinary interface implementation
func (Point) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Point) SetByteOrder ¶
func (*Point) SetType ¶
func (m *Point) SetType(val GeometryType)
SetType sets the type of this subtype
func (*Point) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Point) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type Polygon ¶
type Polygon struct {
// coordinates
Coordinates [][]Point2D `json:"coordinates"`
// contains filtered or unexported fields
}
Polygon GeoJSON geometry swagger:model Polygon
func (*Polygon) MarshalBinary ¶
MarshalBinary interface implementation
func (Polygon) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*Polygon) SetByteOrder ¶
func (*Polygon) SetType ¶
func (m *Polygon) SetType(val GeometryType)
SetType sets the type of this subtype
func (*Polygon) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Polygon) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure