geojson_v2

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geometry

type Geometry struct {
	Point              *Point
	MultiPoint         *MultiPoint
	Polygon            *Polygon
	MultiPolygon       *MultiPolygon
	GeometryCollection *GeometryCollection
}

func (*Geometry) MarshalJSON

func (g *Geometry) MarshalJSON() ([]byte, error)

func (*Geometry) UnmarshalJSON

func (g *Geometry) UnmarshalJSON(data []byte) error

type GeometryCollection

type GeometryCollection struct {
}

type MultiPoint

type MultiPoint struct {
	Points []*Point
}

func (*MultiPoint) MarshalJSON

func (mp *MultiPoint) MarshalJSON() ([]byte, error)

func (*MultiPoint) UnmarshalJSON

func (mp *MultiPoint) UnmarshalJSON(data []byte) error

type MultiPolygon

type MultiPolygon struct {
	Polygons []*Polygon `json:"polygons"`
}

func (*MultiPolygon) MarshalJSON

func (mpg *MultiPolygon) MarshalJSON() ([]byte, error)

func (*MultiPolygon) UnmarshalJSON

func (mpg *MultiPolygon) UnmarshalJSON(data []byte) error

type Point

type Point struct {
	Latitude  float64
	Longitude float64
}

func (*Point) MarshalJSON

func (p *Point) MarshalJSON() ([]byte, error)

func (*Point) UnmarshalJSON

func (p *Point) UnmarshalJSON(data []byte) error

type Polygon

type Polygon struct {
	OuterPath  *MultiPoint
	InnerPaths []*MultiPoint
}

func (*Polygon) MarshalJSON

func (pg *Polygon) MarshalJSON() ([]byte, error)

func (*Polygon) UnmarshalJSON

func (pg *Polygon) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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