MCPcopy Index your code
hub / github.com/MapServer/MapServer / msWCSParseRequest20_XMLDescribeCoverage

Function msWCSParseRequest20_XMLDescribeCoverage

mapwcs20.c:705–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703/************************************************************************/
704#if defined(USE_LIBXML2)
705static int msWCSParseRequest20_XMLDescribeCoverage(
706 xmlNodePtr root, wcs20ParamsObjPtr params)
707{
708 xmlNodePtr child;
709 int numIds = 0;
710 char *id;
711
712 XML_FOREACH_CHILD(root, child)
713 {
714 XML_LOOP_IGNORE_COMMENT_OR_TEXT(child)
715 XML_ASSERT_NODE_NAME(child, "CoverageID");
716
717 /* Node content is the coverage ID */
718 id = (char *)xmlNodeGetContent(child);
719 if (id == NULL || strlen(id) == 0)
720 {
721 msSetError(MS_WCSERR, "CoverageID could not be parsed.",
722 "msWCSParseRequest20_XMLDescribeCoverage()");
723 return MS_FAILURE;
724 }
725 /* insert coverage ID into the list */
726 ++numIds;
727 params->ids = CSLAddString(params->ids, (char *)id);
728 xmlFree(id);
729 }
730 return MS_SUCCESS;
731}
732#endif
733
734/************************************************************************/

Callers 1

msWCSParseRequest20Function · 0.85

Calls 1

msSetErrorFunction · 0.85

Tested by

no test coverage detected