Documentation ¶
Overview ¶
The idea is from: https://github.com/miekg/dns/blob/master/version.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = v{0, 0, 3}
Version is current version of this library.
Functions ¶
This section is empty.
Types ¶
type BBOX ¶
BBOX defines a Bounding Box A GeoJSON object MAY have a member named "bbox" to include information on the coordinate range for its Geometries, Features, or FeatureCollections. The value of the bbox member MUST be an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5
type OBjectType ¶
type OBjectType string
OBjectType is the base class for all GeometryObjects
const ( // Point Defines a Point Type https://tools.ietf.org/html/rfc7946#section-3.1.2 Point OBjectType = "Point" // MultiPoint Defines a MultiPoint Type https://tools.ietf.org/html/rfc7946#section-3.1.3 MultiPoint OBjectType = "MultiPoint" // LineString Defines a LineString Type https://tools.ietf.org/html/rfc7946#section-3.1.4 LineString OBjectType = "LineString" // MultiLineString Defines a MultiLineString Type https://tools.ietf.org/html/rfc7946#section-3.1.5 MultiLineString OBjectType = "MultiLineString" // Polygon Defines a Polygon Type https://tools.ietf.org/html/rfc7946#section-3.1.6 Polygon OBjectType = "Polygon" // MultiPolygon Defines a MultiPolygon Type https://tools.ietf.org/html/rfc7946#section-3.1.7 MultiPolygon OBjectType = "MultiPolygon" // GeometryCollection Defines a GeometryCollection Type https://tools.ietf.org/html/rfc7946#section-3.1.8 GeometryCollection OBjectType = "GeometryCollection" // Feature Defines a Feature Type https://tools.ietf.org/html/rfc7946#section-3.2 Feature OBjectType = "Feature" // FeatureCollection Defines a FeatureCollection Type https://tools.ietf.org/html/rfc7946#section-3.3 FeatureCollection OBjectType = "FeatureCollection" )
type Object ¶
type Object struct { // BBox is the bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. // https://tools.ietf.org/html/rfc7946#section-5 BBox *BBOX // GeoJSONType describes the type of GeoJSON Geometry, Feature or FeatureCollection this object is. GeoJSONType OBjectType }
Object type