I am using GeoServer's CSS extension to style a Points layer which I publish as WMS. In my style, I would like to specify a rule that filters for the first and last features in my data set. Something like min(featureid) and max(featureid).
The documentation suggests how to filter for specific featureIDs or ranges of IDs. Consequently, I can filter for the first feature in my data set (called Points) and style it with
#Points.1 { stroke: #d73027; stroke-width: 6; stroke-linecap: round; } because the first feature will always have featureid=1. However, how can I determine the last featureID in my data set without hard-coding it since it might change over time?
أكثر...
The documentation suggests how to filter for specific featureIDs or ranges of IDs. Consequently, I can filter for the first feature in my data set (called Points) and style it with
#Points.1 { stroke: #d73027; stroke-width: 6; stroke-linecap: round; } because the first feature will always have featureid=1. However, how can I determine the last featureID in my data set without hard-coding it since it might change over time?
أكثر...