Karsten D. ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e4cfaf2924db10e74b8110f
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNzQ5YWFlNDk1ZDcyNDQ4NGIxM2YzMTNjY2QyZDE3ODAiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10024?atlOrigin=eyJpIjoiNzQ5YWFlNDk1ZDcyNDQ4NGIxM2YzMTNjY2QyZDE3ODAiLCJwIjoiaiJ9
 ) GEOS-10024 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10024?atlOrigin=eyJpIjoiNzQ5YWFlNDk1ZDcyNDQ4NGIxM2YzMTNjY2QyZDE3ODAiLCJwIjoiaiJ9
 ) Pointsymbolizer graphic size under 3 pixel is not rendered properly in the 
Legend. ( 
https://osgeo-org.atlassian.net/browse/GEOS-10024?atlOrigin=eyJpIjoiNzQ5YWFlNDk1ZDcyNDQ4NGIxM2YzMTNjY2QyZDE3ODAiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.16.2, 2.18.2 Assignee: Unassigned 
Attachments: Point_Sizes_1_to_6.png, Point_Sizes_2_to_6.png, 
Point_Sizes_3_to_6.png, point_size_1.png, point_size_2.png, point_size_3.png 
Components: styling Created: 16/Apr/21 12:38 PM Priority: Medium Reporter: 
Karsten D. ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e4cfaf2924db10e74b8110f
 )

Hello

I have run in the a issue, when creating a simple style, where i need to use 
the Pointsymbolizer.

My style works fine when the point is a size 3, but as soon as i set it to 2 or 
1, the Legend is not displaying the style correct.

Under here is my example where the size is 3:

_<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xsi:schemaLocation="http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd "
xmlns:se="http://www.opengis.net/se";>
<NamedLayer>
<se:Name>Point</se:Name>
<UserStyle>
<se:Description>
<se:Title>Point</se:Title>
<se:Abstract>This is a test point</se:Abstract>
</se:Description>
<se:FeatureTypeStyle>
<se:Rule>
<se:Description>
<se:Title>Test point</se:Title>
</se:Description>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000099</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>3</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>_

When the size is change to 2 or 1, the legend no longer displayes (renders?) 
the correct size. This is quite a problem when users are using the legend to 
make sure they look at the right data.

I have attached 3 images of how the Legend looks at size 1,2 and 3.

The biggest problem is when you haev multiple rules and different sizes, if 
just one point is set to size 1 or 2 the rest of the sizes are effected on the 
Legend, generated by Geoserver.

I have extented my example with multiple rules and sizes:

Sizes here are from 3 to 6.

_<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xsi:schemaLocation="http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd "
xmlns:se="http://www.opengis.net/se";>
<NamedLayer>
<se:Name>Point</se:Name>
<UserStyle>
<se:Description>
<se:Title>Point</se:Title>
<se:Abstract>This is a test point</se:Abstract>
</se:Description>
<se:FeatureTypeStyle>
<se:Rule>
<se:Description>
<se:Title>Test point size 6</se:Title>
</se:Description>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000099</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>6</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
<se:Rule>
<se:Description>
<se:Title>Test point size 5</se:Title>
</se:Description>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000099</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>5</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
<se:Rule>
<se:Description>
<se:Title>Test point size 4</se:Title>
</se:Description>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000099</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>4</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
<se:Rule>
<se:Description>
<se:Title>Test point size 3</se:Title>
</se:Description>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000099</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>3</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
<se:Rule>
<se:Description>
<se:Title>Test point also size 3</se:Title>
</se:Description>
<se:PointSymbolizer>
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
<se:Fill>
<se:SvgParameter name="fill">#000099</se:SvgParameter>
</se:Fill>
</se:Mark>
<se:Size>3</se:Size>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>_

If I change just one of the sizes to 2 or 1 the rest of the points are effected 
on the Legend.

I have attached 3 additional images then shows the one without any size under 3 
and two images where the size is 1 and 2.

I hope that someone can tell me if the is a bug or what i is?

I dont like showing users a Legend that is not correct.

Best regards

Karsten

( 
https://osgeo-org.atlassian.net/browse/GEOS-10024#add-comment?atlOrigin=eyJpIjoiNzQ5YWFlNDk1ZDcyNDQ4NGIxM2YzMTNjY2QyZDE3ODAiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10024#add-comment?atlOrigin=eyJpIjoiNzQ5YWFlNDk1ZDcyNDQ4NGIxM2YzMTNjY2QyZDE3ODAiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100157- 
sha1:cf9946a )
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to