geography

package
v0.0.0-...-cd09ded Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BBox

type BBox struct {
	Bbox []float64
}

func (BBox) Contains

func (bb BBox) Contains(p Location) bool

func (BBox) ToString

func (bb BBox) ToString() string

type GeoJsonGeometry

type GeoJsonGeometry struct {
	Type        string    `json:"type"`
	Coordinates []float64 `json:"coordinates"`
}

func (GeoJsonGeometry) ToLocation

func (gjg GeoJsonGeometry) ToLocation() Location

type Location

type Location struct {
	X    float64
	Y    float64
	SRID string
}

type Projected

type Projected interface {
	SpatialReference() string
	UpdateSpatialReference(sr_wkt string)
}

Jump to

Keyboard shortcuts

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