“GetFeatureInfo is a WMS standard that allows one to retrieve information about features and coverages displayed in a map”
By default, when no other tool or widgets are active, the "Identify" tool will be active on all GeoNode maps. This utility identifies a location at the cursor position and when a click event is triggered it identifies all features which intersect that location and returns the feature information in the information panel. Multiple features may be returned, and users may cycle through the available features using the next and previous buttons within the feature information panel.
The GeoNode map application makes use of the Get Feature Info (GFI) service to perform this action. This is an OGC standard operation and is handled by the backend service, GeoServer, which queries the requested data and returns a response. Maps are often composed of various layers, and GetFeatureInfo can be instructed to return tailored feature descriptions for each layer, which may be of different types.
GetFeatureInfo generates output in various formats, including:
The structure of how the response is shown can be customized through the attribute table or through GeoServer Get Feature info templates. GeoNode makes it easy for users to edit the way this information is returned for each layer by including a Dataset Attributes section in the metadata wizard, where users can define which attributes they wish to be included in the response and how they should be displayed.
Goal: Customize the identify tool response for a layer
Note that the identify utility functions from within the map frame available within the layer details page, however, the information panel is significantly larger when used within a GeoNode map.
Advanced users can further customize the look of the identify panel by writing an HTML template by using the custom template switch in the metadata wizard.
Name | Expectation |
---|---|
descrip |
Display type - URL |
images |
Display type - Image |
video |
Display type - Video (mp4) |
descrip |
Label - Station Link |
video |
Label - Police in Action |
An attribute is a discrete element of non-spatial information about a geographic feature. Attributes improve the understanding of the properties of a geographic feature and facilitate geodata visualization, analysis, and the definition of relationships between features and other data. The attributes are usually stored within a table and each row in the table is typically linked to the feature by a unique identifier. When creating spatial features, the avaliable data types that can be created are often dependent on the data provider used i.e. PostgreSQL, Geopackage, and Esri Shapefile.
The main field types for attribute data include:
In GeoNode, a text attribute may contain a URL, or links to other available resources. When these links refer to supported media types like videos and images, users can define how they are represented when the identify utility is used, as long as the application can access the resource. The default behavior is to just represent the links as normal data (i.e. the text value of the resource), but by using the customization options the GeoNode provides the system may be configured to display the field in additional ways, such as configuring the value as an interactive hyperlink or retrieving the resource directly for display in a supported format.
This functionality allows users to select features from a map interface and directly preview it's associated media content like images and video from within the information panel, providing an interactive user experience and reducing the need for users to navigate between resources.
Is it possible to only show a subset of the attributes when identifying features:
If I wanted to view the identify results as a table I would:
Why would a user want to give an attribute name a new label:
Download the sample data for the lesson.