|
| 1 | +.. index:: |
| 2 | + single: IDENTIFY |
| 3 | + |
| 4 | +.. _identify: |
| 5 | + |
| 6 | +***************************************************************************** |
| 7 | + IDENTIFY |
| 8 | +***************************************************************************** |
| 9 | + |
| 10 | +.. versionadded:: 8.6 |
| 11 | + |
| 12 | +Controls how vector features are identified, typically through WMS GetFeatureInfo |
| 13 | +or MODE=QUERY requests. |
| 14 | + |
| 15 | +.. index:: |
| 16 | + pair: IDENTIFY; TOLERANCE |
| 17 | + :name: mapfile-identify-tolerance |
| 18 | + |
| 19 | +.. _identify_tolerance: |
| 20 | + |
| 21 | +TOLERANCE [double] |
| 22 | + Sensitivity for point based queries (i.e. via mouse and/or map |
| 23 | + coordinates). Given in TOLERANCEUNITS. If the layer is a POINT or a LINE, |
| 24 | + the default is 3. For all other layer types, the default is 0. To |
| 25 | + restrict polygon searches so that the point must occur in the polygon |
| 26 | + set the tolerance to zero. This setting does not apply to WFS GetFeature |
| 27 | + operations. |
| 28 | + |
| 29 | +.. index:: |
| 30 | + pair: IDENTIFY; TOLERANCEUNITS |
| 31 | + :name: mapfile-identify-toleranceunits |
| 32 | + |
| 33 | +.. _identify_tolerance_units: |
| 34 | + |
| 35 | +TOLERANCEUNITS [pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd] |
| 36 | + Units of the TOLERANCE value. Default is pixels. |
| 37 | + |
| 38 | +.. index:: |
| 39 | + pair: IDENTIFY; CLASSAUTO |
| 40 | + :name: mapfile-identify-classauto |
| 41 | + |
| 42 | +CLASSAUTO |
| 43 | + |
| 44 | + By default, identification of point features is based on their location, |
| 45 | + potentially extended with the radius defined by TOLERANCE value. |
| 46 | + |
| 47 | + When setting the CLASSAUTO keyword, symbols from the style classes used to |
| 48 | + render the incoming WMS GetFeatureInfo request are used for more precise |
| 49 | + identification, by recognizing non-transparent pixels of the symbol. |
| 50 | + |
| 51 | + The TOLERANCE value is also used to extend sensitive pixels beyond |
| 52 | + non-transparent pixels of the symbol. |
| 53 | + |
| 54 | + This option is mutually exclusive with CLASSGROUP. |
| 55 | + |
| 56 | + This option is currently only honoured on layers of type POINT using |
| 57 | + SYMBOL. |
| 58 | + |
| 59 | + Example: |
| 60 | + |
| 61 | + .. code-block:: mapfile |
| 62 | + |
| 63 | + IDENTIFY |
| 64 | + TOLERANCE 5 # optional |
| 65 | + CLASSAUTO |
| 66 | + END |
| 67 | + |
| 68 | + CLASS |
| 69 | + GROUP "my_style_group" |
| 70 | + STYLE |
| 71 | + SYMBOL "my_symbol" |
| 72 | + END |
| 73 | + END |
| 74 | + |
| 75 | + |
| 76 | +.. index:: |
| 77 | + pair: IDENTIFY; CLASSGROUP |
| 78 | + :name: mapfile-identify-classgroup |
| 79 | + |
| 80 | +CLASSGROUP [string] |
| 81 | + |
| 82 | + By default, identification of point features is based on their location, |
| 83 | + potentially extended with the radius defined by TOLERANCE value. |
| 84 | + |
| 85 | + When setting the CLASSGROUP keyword, symbols from the specified class's group |
| 86 | + are used for more precise identification, by recognizing non-transparent |
| 87 | + pixels of the symbol. |
| 88 | + |
| 89 | + The :ref:`CLASS` object's GROUP parameter must be used in combination with |
| 90 | + CLASSGROUP. |
| 91 | + |
| 92 | + The TOLERANCE value is also used to extend sensitive pixels beyond |
| 93 | + non-transparent pixels of the symbol. |
| 94 | + |
| 95 | + This option is mutually exclusive with CLASSAUTO. |
| 96 | + |
| 97 | + This option is currently only honoured on layers of type POINT using |
| 98 | + SYMBOL. |
| 99 | + |
| 100 | + Example: |
| 101 | + |
| 102 | + .. code-block:: mapfile |
| 103 | + |
| 104 | + IDENTIFY |
| 105 | + TOLERANCE 5 # optional |
| 106 | + CLASSGROUP "my_style_group" |
| 107 | + END |
| 108 | + |
| 109 | + CLASS |
| 110 | + GROUP "my_style_group" |
| 111 | + STYLE |
| 112 | + SYMBOL "my_symbol" |
| 113 | + END |
| 114 | + END |
0 commit comments