Hi List,
I'm seeing some very odd behaviour with external graphics.

The TextSymboliser is this:

          <TextSymbolizer>
            <Label>
              <ogc:PropertyName>road_no</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-size">10</CssParameter>
              <CssParameter name="font-weight">bold</CssParameter>
            </Font>
            <LabelPlacement>
              <PointPlacement>
                <AnchorPoint>
                  <AnchorPointX>0.5</AnchorPointX>
                  <AnchorPointY>0.5</AnchorPointY>
                </AnchorPoint>
                <Displacement>
                  <DisplacementX>0</DisplacementX>
                  <DisplacementY>0</DisplacementY>
                </Displacement>
              </PointPlacement>
            </LabelPlacement>
            <Fill>
              <CssParameter name="fill">#FFFFFF</CssParameter>
            </Fill>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple"
                xlink:href="strategisymbols/Motorwaybox.svg" />
                <Format>image/svg+xml</Format>
              </ExternalGraphic>
            </Graphic>
            <Priority>450</Priority>
            <VendorOption 
name="graphic-resize">stretch</VendorOption>
            <VendorOption name="graphic-margin">4</VendorOption>
            <VendorOption name="maxDisplacement">200</VendorOption>
            <VendorOption name="repeat">500</VendorOption>       
            <VendorOption name="spaceAround">10</VendorOption>
            <VendorOption name="group">yes</VendorOption>  
          </TextSymbolizer>


This works fine in Oracle, but when coming from a PostGIS source, it is 
rendered as as bar:


If I remove the             <VendorOption 
name="graphic-resize">stretch</VendorOption> line, it turns into a 
huge blob (only a small section is shown here - same scale image): 


This is GeoServer 2.8.5. I think this *may* be a regression from 2.7.1. I don't 
remember seeing it in the 2.7.1 deployment and it's pretty obvious (just 
upgraded to 2.8.5).

I've disabled feature simplification, loose bboxes, and  Estimated extends on 
the store to see if they made any difference (no).

Does anyone have any thoughts/experience with this? It seems odd that the 
data-store is making a difference to a style.

Cheers,
Jonathan

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

Reply via email to