Hello,
maybe not the best platform to ask (spam..), but anyone having any idea of ShapeMarkfactory (https://github.com/geotools/geotools/blob/26.5/modules/library/render/src/main/java/org/geotools/renderer/style/ShapeMarkFactory.java)
..does it work with OpenJDK11 as planned? Or can someone debug that?
My problem is in Geoserver, loosing dot hatch if using OpenJDK11, with 8 it works. I found these lines, which I believe do the dots:

 ExplicitBoundsShape dotShape =
                new ExplicitBoundsShape(
new Ellipse2D.Double(-0.000001, -0.000001, 0.000001, 0.000001));
        dotShape.setBounds(new Rectangle2D.Double(-0.5, 0.5, 1.0, 1.0));
        shapes.put("dot", dotShape);

According to Javadoc that seems to be ok also with 11, but for some reason dots disappear (SLD below). With for example shape://plus, hatch works, with dot, nothing.

Thanks,
- mika -

<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld"; xmlns:sld="http://www.opengis.net/sld"; xmlns:gml="http://www.opengis.net/gml"; xmlns:ogc="http://www.opengis.net/ogc"; version="1.0.0">
  <sld:NamedLayer>
    <sld:Name>Default Styler</sld:Name>
    <sld:UserStyle>
      <sld:Name>Default Styler</sld:Name>
      <sld:FeatureTypeStyle>
        <sld:Name>name</sld:Name>
        <sld:Rule>
          <sld:Name>Name something</sld:Name>
          <sld:PolygonSymbolizer>
            <sld:Fill>
              <sld:GraphicFill>
                <sld:Graphic>
                  <sld:Mark>
                    <sld:WellKnownName>shape://dot</sld:WellKnownName>
                    <sld:Stroke>
<sld:CssParameter name="stroke">#646464</sld:CssParameter> <sld:CssParameter name="stroke-width">2</sld:CssParameter>
                    </sld:Stroke>
                  </sld:Mark>
                  <sld:Size>5</sld:Size>
                </sld:Graphic>
              </sld:GraphicFill>
            </sld:Fill>
          </sld:PolygonSymbolizer>
        </sld:Rule>
      </sld:FeatureTypeStyle>
    </sld:UserStyle>
  </sld:NamedLayer>
</sld:StyledLayerDescriptor>


_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to