diff --git a/.gitignore b/.gitignore index 5fecac8bdf6..dff44e8089b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ dist geonode/development.db /geoserver/ downloaded +package-lock.json docs/i18n/pot/ diff --git a/docs/tutorials/users/managing_layers/img/layer_filtering.png b/docs/tutorials/users/managing_layers/img/layer_filtering.png new file mode 100644 index 00000000000..7d91f1d6de9 Binary files /dev/null and b/docs/tutorials/users/managing_layers/img/layer_filtering.png differ diff --git a/docs/tutorials/users/managing_layers/layer_filter.txt b/docs/tutorials/users/managing_layers/layer_filter.txt new file mode 100644 index 00000000000..bcc43439b1c --- /dev/null +++ b/docs/tutorials/users/managing_layers/layer_filter.txt @@ -0,0 +1,19 @@ +.. _layers.detail: + +Download a layer filtered by attributes +===================== + +In GeoNode it is possible to download parts of a layer using a Query Builder. The Query Builder provides a step by step graphical environment, where the user is able to select attributes existing in the layer (e.g. population of an area) and set numerical or text filters. + +The filters can be chained together either by an AND or an OR operator. Moreover when building the Query statements, the user can retrieve all the available values for each attribute. This is particularly useful, when the user wants to filter data based on numbers, locations etc. which he/she is not familiarized. + +.. figure:: img/layer_filtering.png + +Access the Layer Filtering: + +* select 'Layers' from the main menu. +* choose the desired layer by clicking on its title. +* click the button 'Download Layer' (on the upper right part of the screen) +* choose "Data" tab and select the button: 'Do you want to filter it?' +* use the filtering functionality to build the CQL Query. +* pick up one of the format you want to download the layer diff --git a/geonode/layers/templates/layers/layer_detail.html b/geonode/layers/templates/layers/layer_detail.html index 157c5501686..3c06db3da16 100644 --- a/geonode/layers/templates/layers/layer_detail.html +++ b/geonode/layers/templates/layers/layer_detail.html @@ -1,5 +1,6 @@ {% extends "layers/layer_base.html" %} {% load i18n %} +{% load staticfiles %} {% load dialogos_tags %} {% load agon_ratings_tags %} {% load bootstrap_tags %} @@ -257,7 +258,7 @@

{% trans 'Average Rating' %}

{% endif %} {% endif %} -