Documentation
¶
Index ¶
- func BuildCSVHeaders(s *schema.Schema) []string
- func BuildGroupSchemaMap(sp *schema.Package) map[id.GroupID]*schema.Schema
- func BuildProperties(f schema.FieldList, gsMap map[id.GroupID]*schema.Schema) map[string]SchemaJSONProperties
- func RowFromItem(itm *item.Item, nonGeoFields []*schema.Field) ([]string, bool)
- type Feature
- type FeatureCollection
- type FeatureCollectionType
- type FeatureType
- type GeoJSON
- type Geometry
- type GeometryCollection
- type GeometryCollectionType
- type GeometryType
- type Geometry_Coordinates
- func (t Geometry_Coordinates) AsLineString() (LineString, error)
- func (t Geometry_Coordinates) AsMultiLineString() (MultiLineString, error)
- func (t Geometry_Coordinates) AsMultiPoint() (MultiPoint, error)
- func (t Geometry_Coordinates) AsMultiPolygon() (MultiPolygon, error)
- func (t Geometry_Coordinates) AsPoint() (Point, error)
- func (t Geometry_Coordinates) AsPolygon() (Polygon, error)
- func (t Geometry_Coordinates) MarshalJSON() ([]byte, error)
- func (t *Geometry_Coordinates) UnmarshalJSON(b []byte) error
- type LineString
- type MultiLineString
- type MultiPoint
- type MultiPolygon
- type Point
- type Polygon
- type SchemaJSON
- type SchemaJSONProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCSVHeaders ¶
func BuildGroupSchemaMap ¶
func BuildProperties ¶
Types ¶
type Feature ¶
type Feature struct { Geometry *Geometry `json:"geometry,omitempty"` Id *string `json:"id,omitempty"` Properties *orderedmap.OrderedMap `json:"properties,omitempty"` Type *FeatureType `json:"type,omitempty"` }
type FeatureCollection ¶
type FeatureCollection struct { Features *[]Feature `json:"features,omitempty"` Type *FeatureCollectionType `json:"type,omitempty"` }
func FeatureCollectionFromItems ¶
func FeatureCollectionFromItems(ver item.VersionedList, s *schema.Schema) (*FeatureCollection, error)
type FeatureCollectionType ¶
type FeatureCollectionType string
const FeatureCollectionTypeFeatureCollection FeatureCollectionType = "FeatureCollection"
type GeoJSON ¶
type GeoJSON = FeatureCollection
type Geometry ¶
type Geometry struct { Coordinates *Geometry_Coordinates `json:"coordinates,omitempty"` Geometries *[]Geometry `json:"geometries,omitempty"` Type *GeometryType `json:"type,omitempty"` }
type GeometryCollection ¶
type GeometryCollection struct { Geometries *[]Geometry `json:"geometries,omitempty"` Type *GeometryCollectionType `json:"type,omitempty"` }
type GeometryCollectionType ¶
type GeometryCollectionType string
const GeometryCollectionTypeGeometryCollection GeometryCollectionType = "GeometryCollection"
type GeometryType ¶
type GeometryType string
const ( GeometryTypeGeometryCollection GeometryType = "GeometryCollection" GeometryTypeLineString GeometryType = "LineString" GeometryTypeMultiLineString GeometryType = "MultiLineString" GeometryTypeMultiPoint GeometryType = "MultiPoint" GeometryTypeMultiPolygon GeometryType = "MultiPolygon" GeometryTypePoint GeometryType = "Point" GeometryTypePolygon GeometryType = "Polygon" )
type Geometry_Coordinates ¶
type Geometry_Coordinates struct {
// contains filtered or unexported fields
}
func (Geometry_Coordinates) AsLineString ¶
func (t Geometry_Coordinates) AsLineString() (LineString, error)
func (Geometry_Coordinates) AsMultiLineString ¶
func (t Geometry_Coordinates) AsMultiLineString() (MultiLineString, error)
func (Geometry_Coordinates) AsMultiPoint ¶
func (t Geometry_Coordinates) AsMultiPoint() (MultiPoint, error)
func (Geometry_Coordinates) AsMultiPolygon ¶
func (t Geometry_Coordinates) AsMultiPolygon() (MultiPolygon, error)
func (Geometry_Coordinates) AsPoint ¶
func (t Geometry_Coordinates) AsPoint() (Point, error)
func (Geometry_Coordinates) AsPolygon ¶
func (t Geometry_Coordinates) AsPolygon() (Polygon, error)
func (Geometry_Coordinates) MarshalJSON ¶
func (t Geometry_Coordinates) MarshalJSON() ([]byte, error)
func (*Geometry_Coordinates) UnmarshalJSON ¶
func (t *Geometry_Coordinates) UnmarshalJSON(b []byte) error
type LineString ¶
type LineString = []Point
type MultiLineString ¶
type MultiLineString = []LineString
type MultiPoint ¶
type MultiPoint = []Point
type MultiPolygon ¶
type MultiPolygon = []Polygon
type SchemaJSON ¶
type SchemaJSON struct { Id *string `json:"$id,omitempty"` Schema *string `json:"$schema,omitempty"` Description *string `json:"description,omitempty"` Properties map[string]SchemaJSONProperties `json:"properties"` Title *string `json:"title,omitempty"` Type string `json:"type"` }
func BuildItems ¶
func BuildItems(f schema.FieldList) *SchemaJSON
func NewSchemaJSON ¶
func NewSchemaJSON(id, title, description *string, pp map[string]SchemaJSONProperties) SchemaJSON
type SchemaJSONProperties ¶
type SchemaJSONProperties struct { Description *string `json:"description,omitempty"` Format *string `json:"format,omitempty"` Items *SchemaJSON `json:"items,omitempty"` MaxLength *int `json:"maxLength,omitempty"` Maximum *float64 `json:"maximum,omitempty"` Minimum *float64 `json:"minimum,omitempty"` Title *string `json:"title,omitempty"` Type string `json:"type"` }
Click to show internal directories.
Click to hide internal directories.