Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sld line pattern fill rotation is counter-clockwise, in GeoServer is clockwise #24322

Closed
qgib opened this issue Apr 5, 2017 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Apr 5, 2017

Author Name: Gabriele Monfardini (@gabrimonfa)
Original Redmine Issue: 16413
Affected QGIS version: master
Redmine category:symbology


I have a layer style with a PolygonSymbolizer filled with a line pattern fill with a rotation

<se:PolygonSymbolizer>
  <se:Fill>
    <se:GraphicFill>
      <se:Graphic>
        <se:Mark>
          <se:WellKnownName>horline</se:WellKnownName>
           ...
        </se:Mark>
        <se:Rotation>
          <ogc:Literal>135</ogc:Literal>
        </se:Rotation>
        ...

The rotation is evaluated counter-clockwise with positive values.

Importing the SLD in GeoServer, rotation is evaluated clockwise, so the result is not the same.
I'm not a SLD expert but looking at SLD documentation it seems that rotation should be evaluated clockwise, as in GeoServer.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Oct 14, 2017

Author Name: Andrea Aime (@aaime)


From the SLD specification:

"The Rotation element gives the rotation of a graphic in the clockwise direction about its
center point in decimal degrees, encoded as a floating-point number"

However I've just tried doing a line fill with a rotation of 45, qgis rotated the line clockwise, and exported the value as 45, which is also interpreted as clockwise. Importing it in GeoServer showed instead a counter-clockwise rotation (after "fixing" the symbol name from "horline" to "shape://horline", this is one issue we still have to harmonize between the two projects, along with similar support with rotation in fills, GeoServer does it but adds extra spaces around the line).

I believe the bug is actually on the GeoServer side, closing it here (spoken as a GeoServer developer :-p )


  • resolution was changed from to not reproducable
  • status_id was changed from Open to Closed
  • description was changed from I have a layer style with a PolygonSymbolizer filled with a line pattern fill with a rotation
  
    
      
        
          horline
           ...
        
        
          135
        
        ...

The rotation is evaluated counter-clockwise with positive values.

Importing the SLD in GeoServer, rotation is evaluated clockwise, so the result is not the same.
I'm not a SLD expert but looking at SLD documentation it seems that rotation should be evaluated clockwise, as in GeoServer. to I have a layer style with a PolygonSymbolizer filled with a line pattern fill with a rotation

  
    
      
        
          horline
           ...
        
        
          135
        
        ...

The rotation is evaluated counter-clockwise with positive values.

Importing the SLD in GeoServer, rotation is evaluated clockwise, so the result is not the same.
I'm not a SLD expert but looking at SLD documentation it seems that rotation should be evaluated clockwise, as in GeoServer.

@qgib qgib closed this as completed Oct 14, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant