@@ -40,9 +40,9 @@ func (gc GetCapabilitiesResponse) ToXML() []byte {
4040type GetCapabilitiesResponse struct {
4141 XMLName xml.Name `xml:"WFS_Capabilities"`
4242 Namespaces `yaml:"namespaces"`
43- ServiceIdentification ServiceIdentification `xml:"ows:ServiceIdentification" yaml:"serviceidentification "`
44- ServiceProvider ServiceProvider `xml:"ows:ServiceProvider" yaml:"serviceprovider "`
45- Capabilities
43+ ServiceIdentification ServiceIdentification `xml:"ows:ServiceIdentification" yaml:"serviceIdentification "`
44+ ServiceProvider ServiceProvider `xml:"ows:ServiceProvider" yaml:"serviceProvider "`
45+ Capabilities `yaml:"capabilities"`
4646}
4747
4848// Namespaces struct containing the namespaces needed for the XML document
@@ -53,11 +53,11 @@ type Namespaces struct {
5353 XmlnsXlink string `xml:"xmlns:xlink,attr" yaml:"xlink"` //http://www.w3.org/1999/xlink
5454 XmlnsXSI string `xml:"xmlns:xsi,attr" yaml:"xsi"` //http://www.w3.org/2001/XMLSchema-instance
5555 XmlnsFes string `xml:"xmlns:fes,attr" yaml:"fes"` //http://www.opengis.net/fes/2.0
56- XmlnsInspireCommon string `xml:"xmlns:inspire_common,attr,omitempty" yaml:"inspirecommon ,omitempty"` //http://inspire.ec.europa.eu/schemas/common/1.0
57- XmlnsInspireDls string `xml:"xmlns:inspire_dls,attr,omitempty" yaml:"inspiredls ,omitempty"` //http://inspire.ec.europa.eu/schemas/inspire_dls/1.0
56+ XmlnsInspireCommon string `xml:"xmlns:inspire_common,attr,omitempty" yaml:"inspireCommon ,omitempty"` //http://inspire.ec.europa.eu/schemas/common/1.0
57+ XmlnsInspireDls string `xml:"xmlns:inspire_dls,attr,omitempty" yaml:"inspireDls ,omitempty"` //http://inspire.ec.europa.eu/schemas/inspire_dls/1.0
5858 XmlnsPrefix string `xml:"xmlns:{{.Prefix}},attr" yaml:"prefix"` //namespace_uri placeholder
5959 Version string `xml:"version,attr" yaml:"version"`
60- SchemaLocation string `xml:"xsi:schemaLocation,attr" yaml:"schemalocation "`
60+ SchemaLocation string `xml:"xsi:schemaLocation,attr" yaml:"schemaLocation "`
6161}
6262
6363// ServiceIdentification struct should only be fill by the "template" configuration wfs200.yaml
@@ -68,45 +68,45 @@ type ServiceIdentification struct {
6868 Keywords * wsc110.Keywords `xml:"ows:Keywords" yaml:"keywords"`
6969 ServiceType struct {
7070 Text string `xml:",chardata" yaml:"text"`
71- CodeSpace string `xml:"codeSpace,attr" yaml:"codespace "`
72- } `xml:"ows:ServiceType"`
73- ServiceTypeVersion string `xml:"ows:ServiceTypeVersion" yaml:"servicetypeversion "`
71+ CodeSpace string `xml:"codeSpace,attr" yaml:"codeSpace "`
72+ } `xml:"ows:ServiceType" yaml:"serviceType" `
73+ ServiceTypeVersion string `xml:"ows:ServiceTypeVersion" yaml:"serviceTypeVersion "`
7474 Fees string `xml:"ows:Fees" yaml:"fees"`
75- AccessConstraints string `xml:"ows:AccessConstraints" yaml:"accessconstraints "`
75+ AccessConstraints string `xml:"ows:AccessConstraints" yaml:"accessConstraints "`
7676}
7777
7878// ServiceProvider struct containing the provider/organization information should only be fill by the "template" configuration wfs200.yaml
7979type ServiceProvider struct {
8080 XMLName xml.Name `xml:"ows:ServiceProvider"`
81- ProviderName string `xml:"ows:ProviderName" yaml:"providername "`
81+ ProviderName string `xml:"ows:ProviderName" yaml:"providerName "`
8282 ProviderSite struct {
8383 Type string `xml:"xlink:type,attr" yaml:"type"`
8484 Href string `xml:"xlink:href,attr" yaml:"href"`
85- } `xml:"ows:ProviderSite" yaml:"providersite "`
85+ } `xml:"ows:ProviderSite" yaml:"providerSite "`
8686 ServiceContact struct {
87- IndividualName string `xml:"ows:IndividualName" yaml:"individualname "`
88- PositionName string `xml:"ows:PositionName" yaml:"positionname "`
87+ IndividualName string `xml:"ows:IndividualName" yaml:"individualName "`
88+ PositionName string `xml:"ows:PositionName" yaml:"positionName "`
8989 ContactInfo struct {
9090 Text string `xml:",chardata"`
9191 Phone struct {
9292 Voice string `xml:"ows:Voice" yaml:"voice"`
9393 Facsimile string `xml:"ows:Facsimile" yaml:"facsimile"`
9494 } `xml:"ows:Phone" yaml:"phone"`
9595 Address struct {
96- DeliveryPoint string `xml:"ows:DeliveryPoint" yaml:"deliverypoint "`
96+ DeliveryPoint string `xml:"ows:DeliveryPoint" yaml:"deliveryPoint "`
9797 City string `xml:"ows:City" yaml:"city"`
98- AdministrativeArea string `xml:"ows:AdministrativeArea" yaml:"administrativearea "`
99- PostalCode string `xml:"ows:PostalCode" yaml:"postalcode "`
98+ AdministrativeArea string `xml:"ows:AdministrativeArea" yaml:"administrativeArea "`
99+ PostalCode string `xml:"ows:PostalCode" yaml:"postalCode "`
100100 Country string `xml:"ows:Country" yaml:"country"`
101- ElectronicMailAddress string `xml:"ows:ElectronicMailAddress" yaml:"electronicmailaddress "`
101+ ElectronicMailAddress string `xml:"ows:ElectronicMailAddress" yaml:"electronicMailAddress "`
102102 } `xml:"ows:Address" yaml:"address"`
103103 OnlineResource struct {
104104 Type string `xml:"xlink:type,attr" yaml:"type"`
105105 Href string `xml:"xlink:href,attr" yaml:"href"`
106- } `xml:"ows:OnlineResource" yaml:"onlineresource "`
107- HoursOfService string `xml:"ows:HoursOfService" yaml:"hoursofservice "`
108- ContactInstructions string `xml:"ows:ContactInstructions" yaml:"contactinstructions "`
109- } `xml:"ows:ContactInfo" yaml:"contactinfo "`
106+ } `xml:"ows:OnlineResource" yaml:"onlineResource "`
107+ HoursOfService string `xml:"ows:HoursOfService" yaml:"hoursOfService "`
108+ ContactInstructions string `xml:"ows:ContactInstructions" yaml:"contactInstructions "`
109+ } `xml:"ows:ContactInfo" yaml:"contactInfo "`
110110 Role string `xml:"ows:Role" yaml:"role"`
111- } `xml:"ows:ServiceContact" yaml:"servicecontact "`
111+ } `xml:"ows:ServiceContact" yaml:"serviceContact "`
112112}
0 commit comments