I have polygon like sector. I want to fill it with gradient color.

Is it possible to do this in Geoserver?



I found some code with filling image

               xlink:href="colorblocks.png" />

i can put here big circle which is gradient, but does it has rotation or position of image?


SLD does not support gradient fills. The above will just repeat the image you provided over and over like tiles in a map until the polygon is filled. I guess if you use a large enough image it will look more or less like a gradient fill. It is possible to add support for gradient fills by coding, but it's not going to be trivial.

  • would be interesting how to fill gradient by coding :) Thanks – Lazonaden Jun 30 '12 at 9:11
  • Can you ask on geotools-devel? The answer would be very long... – Andrea Aime Jun 30 '12 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.