Hello,

 

I've been trying to style a polygon to symbolize a reservoir. First I tried
a very simple polygon such as:

 

<PolygonSymbolizer>

            <Fill>

              <CssParameter name="fill">#d63985</CssParameter>

            </Fill>

          </PolygonSymbolizer>

 

It worked but it is a tiny polygon which cannot be visualized with the map
starting zoom level.

 

So, I've tried an external graphic such as:

 

<PolygonSymbolizer>

                <Fill>

                  <GraphicFill>

                    <Graphic>

                      <ExternalGraphic>

                        <OnlineResource

                          xlink:type="simple"

                          xlink:href="../www/BMID/img/reservoir_incli.png"/>

                        <Format>image/png</Format>

                      </ExternalGraphic>

                    <Size>45</Size>

                    </Graphic>

                  </GraphicFill>

                </Fill>

</PolygonSymbolizer>

 

 

This time it doesn't show up at some zoom levels, and the initial size is
not acceptable as well.

 

Here are my questions:

 

1-       Is there a way to change the size of the polygon in the first
example?

2-       What's the proper way to define the external graphic so it will
have the proper size at all zoom levels?

Needless to say that I've tried several different configurations but none
works as required.

 

Thank you for any help.

 

JJ.

 

 

 

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to