Permalink
Browse files

msSOSGetCapabilities(): use proper layer when generating the gml:name…

… from sos_offering_name metadata (patch by wdc-rsat, fixes #5506)
  • Loading branch information...
rouault committed Oct 31, 2017
1 parent 4f75206 commit c7a1e517d5dd2dd80901008e9860cd589f1685a1
Showing with 2 additions and 1 deletion.
  1. +2 −1 mapogcsos.c
View
@@ -1340,6 +1340,8 @@ int msSOSGetCapabilities(mapObj *map, sosParamsObj *sosparams, cgiRequestObj *re
break;
}
lp = (GET_LAYER(map, j));
/*description*/
value = msOWSLookupMetadata(&(lp->metadata), "S",
"offering_description");
@@ -1349,7 +1351,6 @@ int msSOSGetCapabilities(mapObj *map, sosParamsObj *sosparams, cgiRequestObj *re
xmlAddSibling(psNode, xmlNewComment(BAD_CAST "WARNING: Optional metadata \"sos_offering_description\" missing for gml:description"));
/*name*/
lp = (GET_LAYER(map, j)); /*first layer*/
value = msOWSLookupMetadata(&(lp->metadata), "S", "offering_name");
if (value)
psNode = xmlNewChild(psOfferingNode, psNsGml, BAD_CAST "name", BAD_CAST value);

0 comments on commit c7a1e51

Please sign in to comment.