Skip to content

Commit

Permalink
msSOSGetCapabilities(): use proper layer when generating the gml:name…
Browse files Browse the repository at this point in the history
… from sos_offering_name metadata (patch by wdc-rsat, fixes #5506)
  • Loading branch information
rouault committed Oct 31, 2017
1 parent 4f75206 commit c7a1e51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapogcsos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);
Expand Down

0 comments on commit c7a1e51

Please sign in to comment.