[mapguide-users] SetFilter filter function exceptions with sdf

Zak James zak4ms at gmail.com
Mon Oct 2 10:16:45 EDT 2006


D'oh!

Thanks, Jack. I thought I had tried that but I guess not. In defense
of my error, all the examples in the Web Api documentation use all
lower case names for functions.

The other thing I found is that to use the function in a computed
property, you have to
use SelectAggregate - it will still throw the exception if you try to
use SelectFeatures. I originally thought using SelectAggregate was
pointless with SDF as the provider doesn't support grouping.

zak

On 10/1/06, Jack Lee <jack.lee at autodesk.com> wrote:
> Hi Zak,
>
> The function names are case sensitive. You should change "max(FeatId)" to "Max(FeatId)".
>
>
>         -----Original Message-----
>         From: Zak James [mailto:zak4ms at gmail.com]
>         Sent: Sun 10/1/2006 9:29 PM
>         To: users at mapguide.osgeo.org
>         Cc:
>         Subject: [mapguide-users] SetFilter filter function exceptions with sdf
>
>
>
>         Hi,
>
>         Has anyone had any problems using the built in filter functions for
>         the OSGeo.SDF.3.1 provider via the Mapguide 1.0.1 api?
>
>         The capabilities show they are supported but I get the following
>         exception when trying to use them to filter a Select operation:
>
>         An exception occurred in FDO component.
>         Function not supported
>         - MgFeatureServiceHandler.ProcessOperation line 83 file
>         c:\build_tux_area\mgdev_opensource\server\src\services\feature\FeatureServiceHandler.cpp
>         - MgOpSelectFeaturesSpatial.Execute line 115 file
>         c:\build_tux_area\mgdev_opensource\server\src\services\feature\OpSelectFeaturesSpatial.cpp
>         - MgServerSelectFeatures.SelectFeatures line 217 file
>         c:\build_tux_area\mgdev_opensource\server\src\services\feature\ServerSelectFeatures.cpp
>
>         Hopefully I'm just doing something stupid. Here's the php code:
>
>         $queryOptions = new MgFeatureQueryOptions();
>         $queryOptions->AddComputedProperty("MyMax", "max(FeatId)");
>         $featureClass = $layer->GetFeatureClassName();
>         $featureReader = $featureService->SelectFeatures($featureSourceId,
>         $featureClass, $queryOptions);
>
>         The featuresourceid points to a session feature source which
>         references a valid sdf file. I've also tried going the SelectAggregate
>         route and I've tried other functions listed in the sdf capabilities
>         xml with similar results.
>
>         zak
>         --
>         Zak James
>         Applications and Software Development
>         DM Solutions Group Inc.
>         http://www.dmsolutions.ca
>
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
>         For additional commands, e-mail: users-help at mapguide.osgeo.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
>
>


-- 
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca




More information about the Mapguide_users mailing list