Changes between Version 13 and Version 14 of UsingMapOWSCommon


Ignore:
Timestamp:
Nov 1, 2007, 2:09:47 PM (16 years ago)
Author:
tomkralidis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingMapOWSCommon

    v13 v14  
    7474static int msPrintBoundingBox() {
    7575  xmlDocPtr  psDoc      = NULL;
     76  xmlNsPtr   psNs       = NULL;
    7677  xmlNodePtr psRootNode = NULL;
    7778  xmlNodePtr psNode     = NULL;
     
    8283  psDoc = xmlNewDoc(BAD_CAST "1.0");
    8384
     85  /* create the namespace object */
     86  psNs  = xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_OWS_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_OWS_NAMESPACE_PREFIX);
     87
    8488  /* generate the root node */
    8589  psRootNode = xmlNewNode(NULL, BAD_CAST "My_Root_Node");
     
    8993
    9094  /* set the namespace of the document */
    91   xmlSetNs(psRootNode,  xmlNewNs(psRootNode, BAD_CAST MS_OWSCOMMON_OWS_NAMESPACE_URI, BAD_CAST MS_OWSCOMMON_OWS_NAMESPACE_PREFIX));
     95  xmlSetNs(psRootNode, psNs);
    9296
    93   psNode = msOWSCommonWGS84BoundingBox(2, -180.0, -90.0, 180, 90);
     97  psNode = msOWSCommonWGS84BoundingBox(psNs, 2, -180.0, -90.0, 180, 90);
    9498
    9599  msIO_printf("Content-type: text/xml%c%c",10,10);