geocatalogo: github.com/go-spatial/geocatalogo/metadata/parsers Index | Files

package parsers

import "github.com/go-spatial/geocatalogo/metadata/parsers"

Index

Package Files

cswrecord.go oamcatalogresult.go

func ParseCSWRecord Uses

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

ParseCSWRecord parses CSWRecord

func ParseOAMCatalogResult Uses

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

ParseOAMCatalogResult parses CSWRecord

type CSWRecord Uses

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 Uses

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 Uses

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

OAMCatalogResults provides OAM Catalog Results

Package parsers imports 8 packages (graph). Updated 2019-11-12. Refresh now. Tools for package owners.