[Geoserver-users] SLD/WPS Help

I am trying to create a SLD that will use gs:CropCoverage to clip a raster to a field boundary. I have succeeded in this, but I have to hard-code the field boundary.

How can I modify the SLD below so that I can pass a fieldID of a polygon layer in geoserver so that it will use the chosen field boundary as the clipping geometry?

Any help will be much appreciated, I have been unable to find a solution on the web or in any of the geoserver documentation.

Regards
Gavin Taylor

<?xml version="1.0" encoding="UTF-8"?>



raster_layer

raster

Biomass Biomass Colour Palette coverage cropShape shape POLYGON((364331.88261105 7161476.41562161,364328.84214771 7161476.44662025,353209.83554588 7161768.55251808,353204.49407733 7161769.22201318,353192.49877237 7161772.53998504,353186.7865983 7161774.45408054,353181.18423802 7161776.36938767,353175.16782843 7161779.02786046,353168.94434297 7161782.18352337,353162.85007236 7161785.34208993,353156.73288331 7161788.99840483,353149.78037527 7161793.64296734,335475.64003977 7173623.57933382,335461.42900226 7173633.11587319,335443.64027965 7173645.09847532,335439.25405762 7173648.53213552,335365.78901356 7173715.67848589,335303.54879728 7173772.7428646,335298.53005067 7173777.66722685,335288.62027221 7173789.76830232,335286.00874183 7173793.22899225,335283.4695889 7173796.69131395,335278.05536599 7173804.10984875,335272.74488617 7173812.02991756,335260.29974151 7173831.84366518,335250.28822163 7173850.44308669,335248.63912879 7173853.91860663,335244.98771555 7173862.11407693,335243.695601 7173865.34424485,335243.01711189 7173872.08451473,335243.18611312 7173875.337153,335314.22788238 7174703.51896574,335314.42705466 7174705.19879071,335315.01535144 7174707.07258129,335315.67619233 7174708.50021479,335322.94969893 7174715.16344072,335333.39627139 7174722.85744,352861.8769998 7182630.10955849,354704.19872002 7183396.69523602,392920.8873913 7196737.67825588,392924.64176761 7196738.98389515,392928.39812936 7196740.0398572,392932.6182911 7196740.85276797,392935.90269413 7196741.15146811,392939.29717488 7196741.45251986,392946.93308189 7196740.56689454,392950.99928637 7196739.12765505,392954.72648346 7196737.43381204,392958.71938061 7196734.74405072,392962.54849067 7196732.05224796,392966.18159836 7196729.35740915,393083.10859878 7196635.37954382,393095.36259737 7196624.06560142,393103.86749477 7196616.19467819,393116.27916851 7196604.63301636,393139.40640361 7196582.73432021,393145.85414348 7196576.58233432,393149.52732196 7196572.88826096,393153.33870756 7196568.69663825,393157.09639528 7196564.50384982,393206.89145762 7196501.5147475,393222.66173837 7196479.50586916,394787.9471378 7194293.24089466,395111.01551212 7193814.95277561,395114.13417284 7193810.25068903,395120.09231675 7193800.84212125,395131.36969796 7193782.01630445,395155.26102587 7193736.13599483,395178.75980672 7193691.00018416,395187.03668489 7193672.37847431,395191.20353333 7193662.69367177,395202.36504643 7193632.86867148,395213.52659308 7193595.79597323,395222.26772471 7193554.4375034,396584.95922743 7183865.89108803,396585.38405988 7183862.63709157,396606.58666592 7183670.89867208,396641.37798755 7183304.72675917,396641.77659867 7183298.95752674,396642.83313566 7183272.23705718,396643.15420577 7183263.65356071,396643.26342238 7183258.88566968,396643.00476881 7183245.8205828,396642.5003214 7183230.88773345,396641.93052046 7183217.12417002,396641.71565802 7183214.02886498,395302.51350906 7166659.16164231,395301.29625898 7166656.46447072,395299.75842368 7166653.30970282,395298.45920313 7166650.73008683,395297.63235269 7166649.23720375,389914.42175758 7165158.21218253,366467.89024077 7161628.64469275,366454.43577925 7161626.65934718,366447.67691924 7161625.88209162,366424.24861577 7161624.12444888,364369.93081907 7161478.64402015,364338.5503293 7161476.64628853,364331.88261105 7161476.41562161)) 1.0