exporters

package
v0.0.0-...-e9e6c11 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCSVHeaders

func BuildCSVHeaders(s *schema.Schema) []string

func BuildGroupSchemaMap

func BuildGroupSchemaMap(sp *schema.Package) map[id.GroupID]*schema.Schema

func BuildProperties

func BuildProperties(f schema.FieldList, gsMap map[id.GroupID]*schema.Schema) map[string]SchemaJSONProperties

func RowFromItem

func RowFromItem(itm *item.Item, nonGeoFields []*schema.Field) ([]string, bool)

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"`
}

func FeatureFromItem

func FeatureFromItem(ver item.Versioned, s *schema.Schema) (Feature, bool)

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 FeatureType

type FeatureType string
const FeatureTypeFeature FeatureType = "Feature"

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 Point

type Point = []float64

type Polygon

type Polygon = [][]Point

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"`
}

Jump to

Keyboard shortcuts

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