[Chameleon] result_fields setting for query/identify

Paul Spencer pspencer at dmsolutions.ca
Wed Mar 30 06:27:15 EST 2005


Note that SHAPE_INDEX, TILE_INDEX, and LAYER_INDEX are not affected by 
this, Chameleon adds them to the query results.

We really need to add a way of controlling query results in the default 
query results dialog, metadata seems reasonable (perhaps a new attribute 
on the query widget to indicate the name of a metadata field that 
contains the field names would be the right thing to do?)

This won't happen in the near future. However, if someone (initials 
Tyler Mitchell) could file an enhancement bug for this, I will hopefully 
get to it for the next version

Cheers

Paul

bartvde at xs4all.nl wrote:
> Hey Tyler,
> 
> in addition to Jason, I just wanted to mention that in Mapserver CVS
> support is starting to evolve for this, so you can start filtering out
> items at the service (WMS/WFS) level already in the near future.
> 
> See the following bug report:
> 
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=950
> 
> eg:
> 
>  gml_include_items 'all'
>  gml_exclude_items 'secret1,secret2'
> 
> Best regards,
> Bart
> 
> 
>>Tyler,
>>
>>I don't think the current Query widget implementation supports metadata
>>delimitation of resulting fields.  I would imagine you'd either have to
>>modify the widget to support this or hardcode expected fields in the
>>query.phtml file.
>>
>>Another option would be to use the Custom Query implementation
>>(http://chameleon.maptools.org/tiki/tiki-index.php?page=QueryWidgetCustomizingResults).
>>  the query.phtml file could contain an array something like:
>>
>>$aNoShow = array( 'SHAPE_INDEX', 'TILE_INDEX', 'LAYER_INDEX',
>>'GEOMETRY', 'gml:boundedBy', 'gml:Point' );
>>
>>Then when you are looping through your results you could check to see if
>>the fieldname matches your noshow values - if not then show the field:
>>
>>                 foreach($aResult as $key => $aRow)
>>                 {
>>                     foreach($aRow as $attr => $val)
>>                     {
>>                         if( !in_array( $attr, $aNoShow ) )
>>                         {
>>                             $szResults .= "<tr><td
>>width=\"20\">&nbsp;</td>\n";
>>                             $szResults .= "<td width=\"75\"><span
>>class=\"queryKey\">$attr</span></td>\n";
>>                             $szResults .= "<td valign=\"top\"><span
>>class=\"queryValue\">$val</span></td></tr>\n";
>>                         }
>>                     }
>>                 }
>>
>>In this instance $aResult is the result of executeQuery().
>>
>>Jason
>>
>>
>>
>>Tyler Mitchell wrote:
>>
>>>Is there an equivalent metadata tag I should be using to limit the
>>>fields returned from an identify?  I used to use
>>>"RESULT_FIELDS" "fieldname1 fieldname2"
>>>to only show certain fields.  What is the method for doing this with the
>>>identify widget?
>>>
>>>Tyler
>>>_______________________________________________
>>>Chameleon mailing list
>>>Chameleon at lists.maptools.org
>>>http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
>>--
>>________________________
>>Jason Fournier
>>
>>DM Solutions Group Inc.
>>jfournier at dmsolutions.ca
>>www.dmsolutions.ca
>>613.565.5056 x18
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
> 
> 
> 
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 


More information about the Chameleon mailing list