Documentation ¶
Overview ¶
Package wkt implements a simplified parser for Well Known Text http://en.wikipedia.org/wiki/Well-known_text
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coord ¶
type Coord struct {
X, Y, Z, M float64
}
Coord represents a single location in a coordinate space
type LineString ¶
LineString is a list of connected points
func (*LineString) Equal ¶
func (l *LineString) Equal(g Geom) bool
Equal returns whether this linestring equals g
type MultiPoint ¶
MultiPoint is a list of unconnected points
func (*MultiPoint) Equal ¶
func (m *MultiPoint) Equal(g Geom) bool
Equal returns whether this multipoint equals g
type MultiPolygon ¶
MultiPolygon is a list of multiple polygon ring lists
func (*MultiPolygon) Equal ¶
func (m *MultiPolygon) Equal(g Geom) bool
Equal returns whether this multipolygon equals g
type Opt ¶
type Opt uint
Opt indicates which additional coordinate options are used for this geometry
const ( Z Opt M ZM )
Indicators for declared use of either z or m coordinates or both
func (Opt) Is3d ¶
Is3d returns whether the z-coordinate is declared to be used as in "POINT Z(1 2 3)" or "POINT ZM(1 2 3 4)"
func (Opt) IsMeasured ¶
IsMeasured returns whether the m-coordinate is declared to be used as in "POINT M(1 2 4)" or "POINT ZM(1 2 3 4)"