55 "github.com/cbroglie/mustache"
66 pdoknlv3 "github.com/pdok/mapserver-operator/api/v3"
77 "github.com/pdok/mapserver-operator/internal/controller/mapperutils"
8+ capabilitiesgenerator "github.com/pdok/ogc-capabilities-generator/pkg/config"
89 "github.com/pdok/ogc-specifications/pkg/wfs200"
910 "github.com/pdok/ogc-specifications/pkg/wsc110"
1011 smoothoperatorv1 "github.com/pdok/smooth-operator/api/v1"
@@ -18,22 +19,22 @@ const (
1819 metadataMediaType = "application/vnd.ogc.csw.GetRecordByIdResponse_xml"
1920)
2021
21- func MapWFSToCapabilitiesGeneratorInput (wfs * pdoknlv3.WFS , ownerInfo * smoothoperatorv1.OwnerInfo ) (* Config , error ) {
22+ func MapWFSToCapabilitiesGeneratorInput (wfs * pdoknlv3.WFS , ownerInfo * smoothoperatorv1.OwnerInfo ) (* capabilitiesgenerator. Config , error ) {
2223 featureTypeList , err := getFeatureTypeList (wfs , ownerInfo )
2324 if err != nil {
2425 return nil , err
2526 }
2627
27- config := Config {
28- Global : Global {
28+ config := capabilitiesgenerator. Config {
29+ Global : capabilitiesgenerator. Global {
2930 Namespace : mapperutils .GetNamespaceURI (wfs .Spec .Service .Prefix , ownerInfo ),
3031 Prefix : wfs .Spec .Service .Prefix ,
31- OnlineResourceurl : pdoknlv3 .GetHost (),
32+ Onlineresourceurl : pdoknlv3 .GetHost (),
3233 Path : mapperutils .GetPath (wfs ),
3334 Version : * mapperutils .GetLabelValueByKey (wfs .ObjectMeta .Labels , "service-version" ),
3435 },
35- Services : Services {
36- WFS200Config : & WFS200Config {
36+ Services : capabilitiesgenerator. Services {
37+ WFS200Config : & capabilitiesgenerator. WFS200Config {
3738 Filename : capabilitiesFilename ,
3839 Wfs200 : wfs200.GetCapabilitiesResponse {
3940
0 commit comments