| 749 | /************************************************************************/ |
| 750 | |
| 751 | static int msWCSGetCapabilities_Service(mapObj *map, wcsParamsObj *params) |
| 752 | { |
| 753 | /* start the Service section, only need the full start tag if this is the only section requested */ |
| 754 | if(!params->section || (params->section && strcasecmp(params->section, "/") == 0)) |
| 755 | msIO_printf("<Service>\n"); |
| 756 | else |
| 757 | msIO_printf("<Service\n" |
| 758 | " version=\"%s\" \n" |
| 759 | " updateSequence=\"%s\" \n" |
| 760 | " xmlns=\"http://www.opengis.net/wcs\" \n" |
| 761 | " xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n" |
| 762 | " xmlns:gml=\"http://www.opengis.net/gml\" \n" |
| 763 | " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" |
| 764 | " xsi:schemaLocation=\"http://www.opengis.net/wcs %s/wcs/%s/wcsCapabilities.xsd\">\n", params->version, params->updatesequence, msOWSGetSchemasLocation(map), params->version); |
| 765 | |
| 766 | /* optional metadataLink */ |
| 767 | msOWSPrintURLType(stdout, &(map->web.metadata), "CO", "metadatalink", |
| 768 | OWS_NOERR, |
| 769 | " <metadataLink%s%s%s%s xlink:type=\"simple\"%s/>", |
| 770 | NULL, " metadataType=\"%s\"", NULL, NULL, NULL, |
| 771 | " xlink:href=\"%s\"", MS_FALSE, MS_FALSE, MS_FALSE, |
| 772 | MS_FALSE, MS_TRUE, "other", NULL, NULL, NULL, NULL, NULL); |
| 773 | |
| 774 | msOWSPrintEncodeMetadata(stdout, &(map->web.metadata), "CO", "description", OWS_NOERR, " <description>%s</description>\n", NULL); |
| 775 | msOWSPrintEncodeMetadata(stdout, &(map->web.metadata), "CO", "name", OWS_NOERR, " <name>%s</name>\n", "MapServer WCS"); |
| 776 | msOWSPrintEncodeMetadata(stdout, &(map->web.metadata), "CO", "label", OWS_WARN, " <label>%s</label>\n", NULL); |
| 777 | |
| 778 | /* we are not supporting the optional keyword type, at least not yet */ |
| 779 | msOWSPrintEncodeMetadataList(stdout, &(map->web.metadata), "CO", "keywordlist", " <keywords>\n", " </keywords>\n", " <keyword>%s</keyword>\n", NULL); |
| 780 | |
| 781 | msWCSGetCapabilities_Service_ResponsibleParty(map); |
| 782 | |
| 783 | msOWSPrintEncodeMetadata(stdout, &(map->web.metadata), "CO", "fees", OWS_NOERR, " <fees>%s</fees>\n", "NONE"); |
| 784 | msOWSPrintEncodeMetadataList(stdout, &(map->web.metadata), "CO", "accessconstraints", " <accessConstraints>\n", " </accessConstraints>\n", " %s\n", "NONE"); |
| 785 | |
| 786 | /* done */ |
| 787 | msIO_printf("</Service>\n"); |
| 788 | |
| 789 | return MS_SUCCESS; |
| 790 | } |
| 791 | |
| 792 | /************************************************************************/ |
| 793 | /* msWCSGetCapabilities_Capability() */ |
no test coverage detected