gjson

package
v0.0.0-...-358801b Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BigGeoJSONLength = 5000000

BigGeoJSONLength is an arbitrary length threshold for a big blob of GeoJSON.

View Source
const MaxURLLength = 150000

MaxURLLength is an arbitrary length threshold for the maximum length of a URL.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoJSON

type GeoJSON struct {
	JSON   interface{}
	Length int
}

GeoJSON ...

func (*GeoJSON) Size

func (g *GeoJSON) Size() int

Size returns the number of bytes of the raw, marshalled GeoJSON.

func (*GeoJSON) ToGist

func (g *GeoJSON) ToGist() string

ToGist persists the GeoJSON data structure to a public GitHub Gist.

func (*GeoJSON) ToURLEncoded

func (g *GeoJSON) ToURLEncoded() string

ToURLEncoded URL encodes the GeoJSON data structure.

func (*GeoJSON) Unmarshal

func (g *GeoJSON) Unmarshal(file *os.File) error

Unmarshal attempts to unmarshal GeoJSON FeatureCollections and standalone Geometries.

Jump to

Keyboard shortcuts

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