[mapguide-trac] #745: Error Theming Layer using data source with feature joins

MapGuide Open Source trac_mapguide at osgeo.org
Tue May 15 11:58:25 EDT 2012


#745: Error Theming Layer using data source with feature joins
------------------------------------+---------------------------------------
 Reporter:  CivilEng                |         Owner:        
     Type:  defect                  |        Status:  closed
 Priority:  high                    |     Milestone:        
Component:  Web API                 |       Version:  2.0.1 
 Severity:  critical                |    Resolution:  fixed 
 Keywords:  Theming, feature joins  |   External_id:        
------------------------------------+---------------------------------------
Changes (by jng):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Try this:

 {{{
 MgFeatureAggregateOptions aggregateOptions = new
 MgFeatureAggregateOptions();
 aggregateOptions.AddComputedProperty("UniqueValue", "UNIQUE(" +
 UFunctions.GetParameter(this.args, "PROPERTYNAME") + ")");

 dataReader = featureService.SelectAggregate(resId,
 layer.GetFeatureClassName(), aggregateOptions);
 }}}

 UNIQUE() is an undocumented special function that returns a list of unique
 values for the given property.

 Each unique value will be present under the "UniqueValue" computed
 property as you iterate through the data reader.

 Solution tested on 2.4 preview.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/745#comment:5>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list