bldrwnsch

package
v0.0.0-...-933effb Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeFeatureAsGPX

func ConsumeFeatureAsGPX(filePath string, ch <-chan Bilderwunsch, wg *sync.WaitGroup)

func ConsumeFeatureAsGeoJSON

func ConsumeFeatureAsGeoJSON(filePath string, ch <-chan Bilderwunsch, wg *sync.WaitGroup)

func ConsumeFeatureAsKML

func ConsumeFeatureAsKML(filePath string, ch <-chan Bilderwunsch, wg *sync.WaitGroup)

func ReadCsvFile

func ReadCsvFile(filePath string, channels []chan Bilderwunsch)

Types

type Bilderwunsch

type Bilderwunsch struct {
	// contains filtered or unexported fields
}

type Feature

type Feature struct {
	Type       string     `json:"type"`
	Geometry   Geometry   `json:"geometry"`
	Properties Properties `json:"properties"`
}

type FeatureCollection

type FeatureCollection struct {
	Type     string    `json:"type"`
	Features []Feature `json:"features"`
}

type GeoJSON

type GeoJSON FeatureCollection

type Geometry

type Geometry struct {
	Type        string    `json:"type"`
	Coordinates []float64 `json:"coordinates"`
}

type Gpx

type Gpx struct {
	XMLName xml.Name `xml:"gpx"`
	Text    string   `xml:",chardata"`
	Xmlns   string   `xml:"xmlns,attr"`
	Version string   `xml:"version,attr"`
	Creator string   `xml:"creator,attr"`
	Wpt     []Wpt    `xml:"wpt"`
}

type Kml

type Kml struct {
	XMLName  xml.Name `xml:"kml"`
	Text     string   `xml:",chardata"`
	Xmlns    string   `xml:"xmlns,attr"`
	Document struct {
		Text   string `xml:",chardata"`
		Folder struct {
			Text      string      `xml:",chardata"`
			Name      string      `xml:"name"`
			Placemark []Placemark `xml:"Placemark"`
		} `xml:"Folder"`
	} `xml:"Document"`
}

type MediawikiDB

type MediawikiDB struct {
	// contains filtered or unexported fields
}

func OpenDB

func OpenDB() *MediawikiDB

func (*MediawikiDB) CloseDB

func (db *MediawikiDB) CloseDB()

func (*MediawikiDB) SelectBilderwuensche

func (db *MediawikiDB) SelectBilderwuensche(channels []chan Bilderwunsch)

type Placemark

type Placemark struct {
	Text        string `xml:",chardata"`
	Name        string `xml:"name"`
	Description string `xml:"description"`
	Point       Point  `xml:"Point"`
}

type Point

type Point struct {
	Text        string `xml:",chardata"`
	Coordinates string `xml:"coordinates"`
}

type Properties

type Properties struct {
	Name        string `json:"name"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Location    string `json:"location"`
}

type Wpt

type Wpt struct {
	Text string  `xml:",chardata"`
	Name string  `xml:"name"`
	Desc string  `xml:"desc"`
	Lon  float64 `xml:"lon,attr"`
	Lat  float64 `xml:"lat,attr"`
}

Jump to

Keyboard shortcuts

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