@@ -43,19 +43,20 @@ func MapWFSToMapfileGeneratorInput(wfs *pdoknlv3.WFS, ownerInfo *smoothoperatorv
4343
4444 input := WFSInput {
4545 BaseServiceInput : BaseServiceInput {
46- Title : mapperutils .EscapeQuotes (wfs .Spec .Service .Title ),
47- Abstract : mapperutils .EscapeQuotes (wfs .Spec .Service .Abstract ),
48- Keywords : strings .Join (wfs .Spec .Service .KeywordsIncludingInspireKeyword (), "," ),
49- OnlineResource : wfs .URL ().Scheme + "://" + wfs .URL ().Host ,
50- Path : wfs .URL ().Path ,
51- MetadataID : metadataID ,
52- Extent : extent ,
53- NamespacePrefix : wfs .Spec .Service .Prefix ,
54- NamespaceURI : mapperutils .GetNamespaceURI (wfs .Spec .Service .Prefix , ownerInfo ),
55- AutomaticCasing : wfs .Options ().AutomaticCasing ,
56- DataEPSG : wfs .Spec .Service .DefaultCrs ,
57- EPSGList : append ([]string {wfs .Spec .Service .DefaultCrs }, wfs .Spec .Service .OtherCrs ... ),
58- DebugLevel : mapserverDebugLevel ,
46+ Title : mapperutils .EscapeQuotes (wfs .Spec .Service .Title ),
47+ Abstract : mapperutils .EscapeQuotes (wfs .Spec .Service .Abstract ),
48+ Keywords : strings .Join (wfs .Spec .Service .KeywordsIncludingInspireKeyword (), "," ),
49+ OnlineResource : wfs .URL ().Scheme + "://" + wfs .URL ().Host ,
50+ Path : wfs .URL ().Path ,
51+ MetadataID : metadataID ,
52+ Extent : extent ,
53+ NamespacePrefix : wfs .Spec .Service .Prefix ,
54+ NamespaceURI : mapperutils .GetNamespaceURI (wfs .Spec .Service .Prefix , ownerInfo ),
55+ AutomaticCasing : wfs .Options ().AutomaticCasing ,
56+ DataEPSG : wfs .Spec .Service .DefaultCrs ,
57+ EPSGList : append ([]string {wfs .Spec .Service .DefaultCrs }, wfs .Spec .Service .OtherCrs ... ),
58+ DebugLevel : mapserverDebugLevel ,
59+ AccessConstraints : wfs .Spec .Service .AccessConstraints .String (),
5960 },
6061 MaxFeatures : strconv .Itoa (smoothoperatorutils .PointerVal (wfs .Spec .Service .CountDefault , defaultMaxFeatures )),
6162 Layers : getWFSLayers (wfs .Spec .Service ),
@@ -169,29 +170,29 @@ func MapWMSToMapfileGeneratorInput(wms *pdoknlv3.WMS, ownerInfo *smoothoperatorv
169170
170171 result := WMSInput {
171172 BaseServiceInput : BaseServiceInput {
172- Title : service .Title ,
173- Abstract : service .Abstract ,
174- Keywords : strings .Join (wms .Spec .Service .KeywordsIncludingInspireKeyword (), "," ),
175- Extent : extent ,
176- NamespacePrefix : wms .Spec .Service .Prefix ,
177- NamespaceURI : mapperutils .GetNamespaceURI (wms .Spec .Service .Prefix , ownerInfo ),
178- OnlineResource : wms .URL ().Scheme + "://" + wms .URL ().Host ,
179- Path : wms .URL ().Path ,
180- MetadataID : metadataID ,
181- DatasetOwner : & datasetOwner ,
182- AuthorityURL : & authorityURL ,
183- AutomaticCasing : wms .Options ().AutomaticCasing ,
184- DataEPSG : service .DataEPSG ,
173+ Title : service .Title ,
174+ Abstract : service .Abstract ,
175+ Keywords : strings .Join (wms .Spec .Service .KeywordsIncludingInspireKeyword (), "," ),
176+ Extent : extent ,
177+ NamespacePrefix : wms .Spec .Service .Prefix ,
178+ NamespaceURI : mapperutils .GetNamespaceURI (wms .Spec .Service .Prefix , ownerInfo ),
179+ OnlineResource : wms .URL ().Scheme + "://" + wms .URL ().Host ,
180+ Path : wms .URL ().Path ,
181+ MetadataID : metadataID ,
182+ DatasetOwner : & datasetOwner ,
183+ AuthorityURL : & authorityURL ,
184+ AutomaticCasing : wms .Options ().AutomaticCasing ,
185+ DataEPSG : service .DataEPSG ,
186+ AccessConstraints : service .AccessConstraints .String (),
185187 },
186- AccessConstraints : service .AccessConstraints .String (),
187- Layers : []WMSLayer {},
188- GroupLayers : []GroupLayer {},
189- Symbols : getSymbols (wms ),
190- Fonts : fonts ,
191- OutputFormatJpg : "jpg" ,
192- OutputFormatPng : "png" ,
193- Templates : constants .HTMLTemplatesPath ,
194- MaxSize : maxSize ,
188+ Layers : []WMSLayer {},
189+ GroupLayers : []GroupLayer {},
190+ Symbols : getSymbols (wms ),
191+ Fonts : fonts ,
192+ OutputFormatJpg : "jpg" ,
193+ OutputFormatPng : "png" ,
194+ Templates : constants .HTMLTemplatesPath ,
195+ MaxSize : maxSize ,
195196 }
196197
197198 if wms .Spec .Service .Layer .Name != nil {
@@ -288,10 +289,9 @@ func getWMSLayer(serviceLayer pdoknlv3.Layer, serviceExtent string, wms *pdoknlv
288289 MaxScale : serviceLayer .MaxScaleDenominator ,
289290 LabelNoClip : serviceLayer .LabelNoClip ,
290291 },
291- GroupName : groupName ,
292- Styles : []Style {},
293- Offsite : "" ,
294- GetFeatureInfoIncludesClass : false ,
292+ GroupName : groupName ,
293+ Styles : []Style {},
294+ Offsite : "" ,
295295 }
296296
297297 for _ , style := range serviceLayer .Styles {
0 commit comments