geom_func.twig 713 B

12345678910111213141516171819
  1. {# Displays 'Function' column if it is present #}
  2. <td>
  3. {% set geom_types = Util_getGISDatatypes() %}
  4. {% if column_types[column_index] in geom_types %}
  5. <select class="geom_func" name="geom_func[{{ column_index }}]">
  6. {# get the relevant list of GIS functions #}
  7. {% set funcs = Util_getGISFunctions(column_types[column_index], true, true) %}
  8. {% for func_name, func in funcs %}
  9. {% set name = func['display'] is defined ? func['display'] : func_name %}
  10. <option value="{{ name }}">
  11. {{ name }}
  12. </option>
  13. {% endfor %}
  14. </select>
  15. {% else %}
  16. &nbsp;
  17. {% endif %}
  18. </td>