I have a postgis raster table with the following columns: rid, rast, year, plant
I created a wms layer in geoserver pointing to the table and successfully serve out the raster when the table only has one raster in it (one plant). The url used to do this looks like so:
http:///geoserver/sde/wms?service=W...s=EPSG:4269&format=image/png&transparent=true
The problem is I added a second raster to the table for a different plant. How can I set things up so that I can pass a param in the url to geoserver to specify a "plant=lilac" parameter so that the appropriate raster is displayed?
I tried using (CQL_FILTER) like this but it doesn't seem to work http:///geoserver/sde/wms?service=W...s=EPSG:4269&format=image/png&transparent=true
I'm pretty new to geoserver, so I'm not sure if I need to define two layers pointing to the same postgis table to get this working or if I just need one layer. Either way, how do the layers know how to specify which raster to pull from a table?
أكثر...
I created a wms layer in geoserver pointing to the table and successfully serve out the raster when the table only has one raster in it (one plant). The url used to do this looks like so:
http:///geoserver/sde/wms?service=W...s=EPSG:4269&format=image/png&transparent=true
The problem is I added a second raster to the table for a different plant. How can I set things up so that I can pass a param in the url to geoserver to specify a "plant=lilac" parameter so that the appropriate raster is displayed?
I tried using (CQL_FILTER) like this but it doesn't seem to work http:///geoserver/sde/wms?service=W...s=EPSG:4269&format=image/png&transparent=true
I'm pretty new to geoserver, so I'm not sure if I need to define two layers pointing to the same postgis table to get this working or if I just need one layer. Either way, how do the layers know how to specify which raster to pull from a table?
أكثر...