“GetFeatureInfo is a WMS standard call that allows one to retrieve information about features and coverages displayed in a map”
The map can be composed of various layers, and GetFeatureInfo can be instructed to return multiple feature descriptions, which may be of different types. GetFeatureInfo can generate output in various formats:
When clicking on a map layer information about the underlying data is retrieved and shown to the user. The structure of how the response is shown can be customized through the attribute table or through GeoServer Get Feature info templates.
Goal: Customize the appearance of get feature info for a single layer
Todo
If you are an advanced user you can customize the look of your identify panel by writing HTML in the attribute table under 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 an additional information (non-spatial) about a geographic feature. Attributes allow you to understand the properties of the geographic feature. Users can query, visualize, and analyze the data. The attributes are usually stored in a table and linked to the feature by a unique identifier. When creating spatial features the data types that can be created are dependent on the data provider used i.e PostgreSQL, Geopackage, and Esri Shapefile.
The main field types of an attribute are
In GeoNode when an attribute contains a URL or links to videos you can decide what you want to do when you identify the feature with that URL. The default behavior is just to see the links as normal data but after customizing the way you want to visualize this you can have videos automatically play or have URL show as proper links.
Is it possible to only show a subset of the atrributes 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.