Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewParamters not supported in TMS #1282

Open
deniial00 opened this issue Jun 20, 2024 · 3 comments
Open

ViewParamters not supported in TMS #1282

deniial00 opened this issue Jun 20, 2024 · 3 comments

Comments

@deniial00
Copy link

Basically as written here GWC does not support passing ViewParameters to SQL Views as null is always being passed to "filteringParameters".

@aaime
Copy link
Member

aaime commented Jun 20, 2024

A quick look at the code confirms there is no support for any filter parameter at all (view params being a specific case of it). If you are interested in getting such support, see this guide:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-fixes,-improvements-and-new-features-in-GeoServer

Otherwise, I guess you can try out WMTS, maybe in its resftul mode.

@deniial00
Copy link
Author

deniial00 commented Jun 21, 2024

Thank you for the quick response!

Otherwise, I guess you can try out WMTS, maybe in its resftul mode.

Same here when passing down viewparams, like so: viewparams=USER:444 only the default values of the View are used. Here is the full URL http://${geoserverUrI}:8080/geoserver/gwc/service/wmts/rest/${Iayer}/generic/EP SG:${epsg}/EPSG:${epsg}:{z}/{y}/{x}?format=application/vnd.mapbox-vector-tile&viewparams=USER:444

This is the log entry:

12:52:18 INFO [geoserver.wms] -
Request: getMap
Angle = 0.0
BaseUrl = http://localhost:8080/geoserver/
Bbox = SRSEnvelope[1821341.5097256452 : 1821647.2578387447, 6140950.851576231 : 6141256.599689331]
BgColor = java.awt.Color[r=255,g=255,b=255]
Buffer = 0
Clip = null
CQLFilter = null
Crs = PROJCS["WGS84 / Google Mercator",
GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Longitude", EAST],
AXIS["Latitude", NORTH],
AUTHORITY["EPSG","4326"]],
PROJECTION["Mercator_1SP"],
PARAMETER["semi_minor", 6378137.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["central_meridian", 0.0],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["x", EAST],
AXIS["y", NORTH],
AUTHORITY["EPSG","900913"]]
Elevation = []
Env = {}
Exceptions = SE_XML
FeatureId = null
FeatureVersion = null
Filter = null
Format = application/vnd.mapbox-vector-tile
FormatOptions = {}
Get = true
Height = 256
Interpolations = []
Layers = [org.geoserver.wms.MapLayerInfo@799a6f3e]
MaxFeatures = null
Palette = null
RawKvp = {FORMAT=application/vnd.mapbox-vector-tile, STYLES=generic, WIDTH=256, HEIGHT=256, LAYERS=LAYERNAME, EXCEPTIONS=SE_XML, GWC_SEED_INTERCEPT=true, REQUEST=GetMap, SRS=EPSG:900913, BBOX=1821341.5097256452,6140950.851576231,1821647.2578387447,6141256.599689331, VERSION=1.1.1, SERVICE=WMS, TRANSPARENT=true}
RemoteOwsType = null
RemoteOwsURL = null
Request = GetMap
RequestCharset = UTF-8
ScaleMethod = null
Sld = null
SldBody = null
SldVersion = null
SortBy = null
SortByArrays = null
SRS = EPSG:900913
StartIndex = null
StyleBody = null
StyleFormat = sld
Styles = [StyleImpl[ name=generic]]
StyleUrl = null
StyleVersion = null
Tiled = false
TilesOrigin = null
Time = []
Transparent = true
ValidateSchema = false
Version = 1.1.1
ViewParams = null
Width = 256

Any idea?

@aaime
Copy link
Member

aaime commented Jun 21, 2024

Try out with the KVP approach then? If it's not working there either, maybe you did not configure viewparams as a filter parameter to start with? It needs to be explicitly configured, won't happen automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants