Documentation
¶
Overview ¶
Package embeddedproj defines the format used to embed static projection data in the Cockroach binary. Is is used to load the data as well as to generate the data file (from cmd/generate-spatial-ref-sys).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
Spheroids []Spheroid
Projections []Projection
}
Data stores all the spheroid and projection data.
type Projection ¶
type Projection struct {
SRID int
AuthName string
AuthSRID int
SRText string
Proj4Text string
Bounds Bounds
IsLatLng bool
// The hash of the spheroid represented by the SRID.
Spheroid int64
}
Projection stores the metadata for a projection; it mirrors the fields in geoprojbase.ProjInfo but with modifications that allow serialization and deserialization.
Click to show internal directories.
Click to hide internal directories.