parsers

package
v0.0.0-...-c41dffb Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCSWRecord

func ParseCSWRecord(xmlBuffer []byte) (metadata.Record, error)

ParseCSWRecord parses CSWRecord

func ParseOAMCatalogResult

func ParseOAMCatalogResult(result OAMCatalogResult) (metadata.Record, error)

ParseOAMCatalogResult parses CSWRecord

Types

type CSWRecord

type CSWRecord struct {
	Identifier       string      `xml:"http://purl.org/dc/elements/1.1/ identifier"`
	Type             string      `xml:"http://purl.org/dc/elements/1.1/ type"`
	Title            string      `xml:"http://purl.org/dc/elements/1.1/ title"`
	Modified         string      `xml:"http://purl.org/dc/terms/ modified"`
	Abstract         string      `xml:"http://purl.org/dc/terms/ abstract"`
	Subject          []string    `xml:"http://purl.org/dc/elements/1.1/ subject"`
	Format           string      `xml:"http://purl.org/dc/elements/1.1/ format"`
	Creator          string      `xml:"http://purl.org/dc/elements/1.1/ creator"`
	Language         string      `xml:"http://purl.org/dc/elements/1.1/ language"`
	References       []string    `xml:"http://purl.org/dc/terms/ references"`
	WGS84BoundingBox boundingBox `xml:"http://www.opengis.net/ows WGS84BoundingBox"`
	BoundingBox      boundingBox `xml:"http://www.opengis.net/ows BoundingBox"`
}

CSWRecord provides a CSW 2.0.2 Record model

type OAMCatalogResult

type OAMCatalogResult struct {
	Identifier       string     `json:"_id"`
	Uuid             string     `json:"uuid"`
	Version          int        `json:"__v"`
	Title            string     `json:"title"`
	Projection       string     `json:"projection"`
	Gsd              int        `json:"gsd"`
	Filesize         int        `json:"file_size"`
	AcquisitionStart *time.Time `json:"acquisition_start"`
	AcquisitionEnd   *time.Time `json:"acquisition_end"`
	Platform         string     `json:"platform"`
	Provider         string     `json:"provider"`
	Contact          string     `json:"contact"`
	MetaUri          string     `json:"meta_uri"`
	Properties       properties `json:"properties"`
	Bbox             [4]float64 `json:"bbox"`
}

OAMCatalogResult provides an OAM Catalog Result

type OAMCatalogResults

type OAMCatalogResults struct {
	Result []OAMCatalogResult `json:"results"`
}

OAMCatalogResults provides OAM Catalog Results

Jump to

Keyboard shortcuts

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