[mapguide-trac] #1782: Customized function such as "EXTENT" can't be run on SQL Server Spatial

MapGuide Open Source trac_mapguide at osgeo.org
Tue Aug 16 02:31:34 EDT 2011


#1782: Customized function such as "EXTENT" can't be run on SQL Server Spatial
-------------------------------+--------------------------------------------
   Reporter:  sparkliu         |       Owner:     
       Type:  defect           |      Status:  new
   Priority:  low              |   Milestone:     
  Component:  Feature Service  |     Version:     
   Severity:  trivial          |    Keywords:     
External_id:                   |  
-------------------------------+--------------------------------------------
 When coming to customized function such as "EXTENT", MapGuide server will
 try to calculate by itself instead of using FDO provider. So it will
 request the actual property instead of the expression into FDO. When
 getting properties from reader, it first check if the return column number
 is only 1, and use the first column as return column.

 However, there is no guarantee in FDO interface that the return reader
 only contains the requesting column. For example, SQL Server spatial adds
 PK column as well, and many code may have been written depending on that.

 So to make the code robust, if there are more than one columns returned,
 we should parse the expression when we gets the reader and only use the
 column we need.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1782>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list