~ubuntu-branches/ubuntu/raring/mapserver/raring-security

« back to all changes in this revision

Viewing changes to mapwfs.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Alan Boudreault, Francesco Paolo Lovergine
  • Date: 2010-03-24 22:13:25 UTC
  • mfrom: (10.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100324221325-g9hwfpfqeiq4fz7m
Tags: 5.6.3-1
[ Alan Boudreault ]
* New upstream release, with important bug fixes.
* Fixed some typo in debian/control.

[ Francesco Paolo Lovergine ]
* Policy bumped to 3.8.4 without changes.
* Removed Andreas Putzo among Uploaders: last contribution dated more than
  two years ago.
* Added shapelib to Suggests in mapserver-bin. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**********************************************************************
2
 
 * $Id: mapwfs.c 9573 2009-12-04 17:11:29Z assefa $
 
2
 * $Id: mapwfs.c 9887 2010-02-23 19:30:57Z assefa $
3
3
 *
4
4
 * Project:  MapServer
5
5
 * Purpose:  WFS server implementation
28
28
 
29
29
#include "mapserver.h"
30
30
 
31
 
MS_CVSID("$Id: mapwfs.c 9573 2009-12-04 17:11:29Z assefa $")
 
31
MS_CVSID("$Id: mapwfs.c 9887 2010-02-23 19:30:57Z assefa $")
32
32
 
33
33
#if defined(USE_WFS_SVR)
34
34
 
1025
1025
  char **papszPropertyName = NULL;
1026
1026
  int nPropertyNames = 0;
1027
1027
 
 
1028
  /*use msLayerGetShape instead of msLayerResultsGetShape of complex filter #3305*/
 
1029
  int bUseGetShape = MS_FALSE;
 
1030
 
1028
1031
  /* Default filter is map extents */
1029
1032
  bbox = map->extent;
1030
1033
  
 
1034
 
1031
1035
  /* Read CGI parameters */
1032
1036
  /*  */
1033
1037
  /* __TODO__ Need to support XML encoded requests */
1453
1457
                return msWFSException(map, "mapserv", "NoApplicableCode", paramsObj->pszVersion);
1454
1458
            }
1455
1459
        }
 
1460
        
 
1461
        if (bUseGetShape == MS_FALSE)
 
1462
          bUseGetShape = (!FLTIsSimpleFilter(psNode));
1456
1463
 
1457
1464
        FLTFreeFilterEncodingNode( psNode );
1458
1465
        psNode = NULL;
1548
1555
                       return msWFSException(map, "mapserv", "NoApplicableCode", paramsObj->pszVersion);
1549
1556
                     }
1550
1557
 
 
1558
                     if (bUseGetShape == MS_FALSE)
 
1559
                       bUseGetShape = (!FLTIsSimpleFilter(psNode));
 
1560
 
1551
1561
                     FLTFreeFilterEncodingNode( psNode );
1552
1562
                     psNode = NULL;
1553
1563
                     break;
1804
1814
 
1805
1815
    /* handle case of maxfeatures = 0 */
1806
1816
    if(maxfeatures != 0 && iResultTypeHits == 0)
1807
 
      msGMLWriteWFSQuery(map, stdout, maxfeatures, pszNameSpace, outputformat);
 
1817
      msGMLWriteWFSQuery(map, stdout, maxfeatures, pszNameSpace, outputformat,bUseGetShape);
1808
1818
 
1809
1819
    if (((iNumberOfFeatures==0) || (maxfeatures == 0)) && iResultTypeHits == 0) {
1810
1820
      msIO_printf("   <gml:boundedBy>\n");