Download "user manual"
Transcript
Queries [coreplugin] (query) 9. Queries [coreplugin] (query) Core plugin Query allows to search for geographical objects. Found objects are hilighted and if requested related data are returned to client. Depending on configuration and user choices, queries are executed on one layer, several layers or all layers currently displayed on map. Queries can be executed on a geographic selection or using a list of object IDs. Geographic selection can be a point, a rectangle, a polygon or a circle but is a rectangle by default. The second way to execute a query is used in particular to maintain selection persistence: object IDs are stored client-side and sent to server each time the page is reloaded. Hilighting objects can be done using standard Mapserver queries or using special Hilight plugin. See Section 9.3.3, “Hilight Configuration” for more information. Results are returned and displayed using Tables plugin. See Section 9.1.2, “Tables Configuration” for more information. 9.1. Client-side Configuration 9.1.1. query.ini Here are the options that can be set in client's query.ini: • persistentQueries: if true, queries will be persistent. If false, selection is lost after next page reload. Note that persistency will work only with layers with id_attribute_string set (see Section 9.3, “Related Elements in Mapfile”) • displayExtendedSelection: if true, shows form for selection extended functions. This form is mainly used by developers (see TODO: link to developer's doc) • queryLayers: the comma separated list of layers which will appear in the extended selection form. If this list is absent, all msLayers appear in the form. • returnAttributesActive: if true, the layers attributes can be requested. If false, only object IDs will be returned (default: false) • defaultPolicy: can be either POLICY_XOR, POLICY_UNION, POLICY_INTERSECTION or POLICY_REPLACE. Defines how new selected objects are mixed with previous ones (default: POLICY_XOR) • defaultMaskmode: if true, selected objects are highlighted in mask mode (default: false). See also Section 9.3.3.2, “Mask Mode” • defaultHilight: if true, objects are highlited (default: true) 66