geojson

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 0 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 {
	Type         string     `json:"type"`
	Polygon      *Polygon   `json:"Polygon,omitempty"`
	MultiPolygon []*Polygon `json:"MultiPolygon,omitempty"`
}

type MultiPoint

type MultiPoint struct {
	Points []*Point `json:"points,omitempty"`
}

type Point

type Point struct {
	Latitude  float64 `json:"lat"`
	Longitude float64 `json:"lon"`
}

type Polygon

type Polygon struct {
	OuterPath  *MultiPoint   `json:"outerPath"`
	InnerPaths []*MultiPoint `json:"innerPaths,omitempty"`
}

func NewPolygonShape

func NewPolygonShape(outerPath *MultiPoint, innerPaths []*MultiPoint) *Polygon

func (*Polygon) ContainsPoint

func (p *Polygon) ContainsPoint(point *Point) bool

Jump to

Keyboard shortcuts

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