<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>Re: [mapguide-users] Select Distinct QueryOption or Filter?</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>&nbsp;</DIV>
<DIV>You should use MgFeatureService::SelectAggregates() to do a distinct 
select.</DIV>
<DIV>In the FeatureAggregateOptions object that is passed&nbsp;as argument to 
that call, make sure you set the distinct flag by calling 
MgFeatureAggregateOptions::SelectDistinct(true).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Traian</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Scott Reisdorf 
  [mailto:reisdorf1@llnl.gov] <BR><B>Sent:</B> Tue 12/5/2006 7:28 PM 
  <BR><B>To:</B> users@mapguide.osgeo.org <BR><B>Cc:</B> <BR><B>Subject:</B> Re: 
  [mapguide-users] Select Distinct QueryOption or Filter?<BR><BR></FONT></DIV>
  <P><FONT size=2>Thanks Dave.<BR>I am using SDF3, and from the provider it says 
  it supports<BR>SelectDistinct 
  (&lt;SupportsSelectDistinct&gt;true&lt;/SupportsSelectDistinct&gt; )<BR>I now 
  dont know how to set the Flag in the QueryOptions to be 
  Distinct.&nbsp;<BR>Looking at the API and the code, it does not appear that 
  the Distinct<BR>option is available on the QueryOptions.&nbsp; Does anyone 
  know how to select<BR>Distinct Features using the 
  FeatureService?<BR><BR>Thanks,<BR>-scott<BR><BR>Dave Wilson wrote:<BR>&gt; Not 
  all providers support distinct.<BR>&gt;<BR>&gt; You need to check the 
  GetCapabilities for each provider via<BR>&gt; <A 
  href="http://localhost/mapguide/mapagent/index.html">http://localhost/mapguide/mapagent/index.html</A> 
  under FeatureServices -<BR>&gt; GetProviders will list your providers. Then 
  using GetCapabilities it<BR>&gt; will indicate if it supports Distinct. 
  Distinct is a flag in the<BR>&gt; QueryOptions that can be set if I recall 
  correctly.<BR>&gt;<BR>&gt; Dave<BR>&gt;<BR>&gt; -----Original 
  Message-----<BR>&gt; From: Scott Reisdorf [<A 
  href="mailto:reisdorf1@llnl.gov">mailto:reisdorf1@llnl.gov</A>]<BR>&gt; Sent: 
  Tuesday, December 05, 2006 2:50 PM<BR>&gt; To: 
  users@mapguide.osgeo.org<BR>&gt; Subject: [mapguide-users] Select Distinct 
  QueryOption or Filter?<BR>&gt;<BR>&gt; All,<BR>&gt; Is there a way to query 
  DISTINCT Features when using the<BR>&gt; FeatureService.SelectFeatures() or 
  SelectAggregrate() with the<BR>&gt; QueryOptions, or possibly is there a 
  "Distinct" filter option available.<BR>&gt; Any help or code/source 
  documenting this would be helpful.<BR>&gt;<BR>&gt; Thanks,<BR>&gt;<BR>&gt; 
  -scott<BR>&gt;<BR>&gt;<BR>&gt; 
  ---------------------------------------------------------------------<BR>&gt; 
  To unsubscribe, e-mail: users-unsubscribe@mapguide.osgeo.org<BR>&gt; For 
  additional commands, e-mail: 
  users-help@mapguide.osgeo.org<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
  ---------------------------------------------------------------------<BR>&gt; 
  To unsubscribe, e-mail: users-unsubscribe@mapguide.osgeo.org<BR>&gt; For 
  additional commands, e-mail: 
  users-help@mapguide.osgeo.org<BR>&gt;<BR>&gt;&nbsp;&nbsp;<BR><BR>---------------------------------------------------------------------<BR>To 
  unsubscribe, e-mail: users-unsubscribe@mapguide.osgeo.org<BR>For additional 
  commands, e-mail: 
users-help@mapguide.osgeo.org<BR><BR></FONT></P></BLOCKQUOTE>

</BODY>
</HTML>