Skip to content

Commit

Permalink
Merge pull request #6121 from MapServer-backport-bot/backport-6120-to…
Browse files Browse the repository at this point in the history
…-branch-7-6

[Backport branch-7-6] Build error if USE_LIBXML2, USE_WMS_SVR, USE_WFS_SVR not defined (#6119)
  • Loading branch information
jmckenna committed Jul 17, 2020
2 parents 90daf33 + 1094e81 commit 1231c31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions mapmetadata.c
Expand Up @@ -31,6 +31,7 @@
#include "mapowscommon.h"
#include "maplibxml2.h"

#ifdef USE_LIBXML2

/************************************************************************/
/* _msMetadataGetCharacterString */
Expand Down Expand Up @@ -860,6 +861,8 @@ int msMetadataDispatch(mapObj *map, cgiRequestObj *cgi_request, owsRequestObj *o
return status;
}

#endif /* USE_LIBXML2 */

/************************************************************************/
/* msMetadataCreateParamsObj */
/* */
Expand Down
2 changes: 1 addition & 1 deletion mapogcfilter.c
Expand Up @@ -2269,7 +2269,7 @@ char *FLTGetSQLExpression(FilterEncodingNode *psFilterNode, layerObj *lp)
#else
msSetError(MS_MISCERR, "OWS support is not available.",
"FLTGetSQLExpression()");
return(MS_FAILURE);
return NULL;
#endif

}
Expand Down
2 changes: 2 additions & 0 deletions mapows.c
Expand Up @@ -261,11 +261,13 @@ int msOWSDispatch(mapObj *map, cgiRequestObj *request, int ows_mode)
}

if (ows_request.service == NULL) {
#ifdef USE_LIBXML2
if (ows_request.request && EQUAL(ows_request.request, "GetMetadata")) {
status = msMetadataDispatch(map, request, &ows_request);
msOWSClearRequestObj(&ows_request);
return status;
}
#endif
#ifdef USE_WFS_SVR
if( msOWSLookupMetadata(&(map->web.metadata), "FO", "cite_wfs2") != NULL ) {
status = msWFSException(map, "service", MS_OWS_ERROR_MISSING_PARAMETER_VALUE, NULL );
Expand Down
4 changes: 2 additions & 2 deletions mapows.h
Expand Up @@ -410,12 +410,12 @@ typedef struct {
int numnamespaces;
} gmlNamespaceListObj;

MS_DLL_EXPORT gmlItemListObj *msGMLGetItems(layerObj *layer, const char *metadata_namespaces);
MS_DLL_EXPORT void msGMLFreeItems(gmlItemListObj *itemList);

#if defined(USE_WMS_SVR) || defined (USE_WFS_SVR)

MS_DLL_EXPORT int msItemInGroups(const char *name, gmlGroupListObj *groupList);
MS_DLL_EXPORT gmlItemListObj *msGMLGetItems(layerObj *layer, const char *metadata_namespaces);
MS_DLL_EXPORT void msGMLFreeItems(gmlItemListObj *itemList);
MS_DLL_EXPORT gmlConstantListObj *msGMLGetConstants(layerObj *layer, const char *metadata_namespaces);
MS_DLL_EXPORT void msGMLFreeConstants(gmlConstantListObj *constantList);
MS_DLL_EXPORT gmlGeometryListObj *msGMLGetGeometries(layerObj *layer, const char *metadata_namespaces, int bWithDefaultGeom);
Expand Down

0 comments on commit 1231c31

Please sign in to comment.