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

Function msWCSGetCapabilities_ContentMetadata

mapwcs.c:900–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898/************************************************************************/
899
900static int msWCSGetCapabilities_ContentMetadata(mapObj *map, wcsParamsObj *params, owsRequestObj *ows_request)
901{
902 int i;
903
904 /* start the ContentMetadata section, only need the full start tag if this is the only section requested */
905 /* TODO: add Xlink attributes for other sources of this information */
906 if(!params->section || (params->section && strcasecmp(params->section, "/") == 0))
907 msIO_printf("<ContentMetadata>\n");
908 else
909 msIO_printf("<ContentMetadata\n"
910 " version=\"%s\" \n"
911 " updateSequence=\"%s\" \n"
912 " xmlns=\"http://www.opengis.net/wcs\" \n"
913 " xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n"
914 " xmlns:gml=\"http://www.opengis.net/gml\" \n"
915 " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
916 " xsi:schemaLocation=\"http://www.opengis.net/wcs %s/wcs/%s/wcsCapabilities.xsd\">\n", params->version, params->updatesequence, msOWSGetSchemasLocation(map), params->version);
917
918 for(i=0; i<map->numlayers; i++) {
919
920 if (!msIntegerInArray(GET_LAYER(map, i)->index, ows_request->enabled_layers, ows_request->numlayers))
921 continue;
922
923 if( msWCSGetCapabilities_CoverageOfferingBrief((GET_LAYER(map, i)), params) != MS_SUCCESS ) {
924 msIO_printf("</ContentMetadata>\n");
925 return MS_FAILURE;
926 }
927 }
928
929 /* done */
930 msIO_printf("</ContentMetadata>\n");
931
932 return MS_SUCCESS;
933}
934
935/************************************************************************/
936/* msWCSGetCapabilities() */

Callers 1

msWCSGetCapabilitiesFunction · 0.85

Calls 5

strcasecmpFunction · 0.85
msIO_printfFunction · 0.85
msOWSGetSchemasLocationFunction · 0.85
msIntegerInArrayFunction · 0.85

Tested by

no test coverage detected