GeoCat / bridge-style

Cartography library making style format conversions as easy as using Python.
MIT License
44 stars 13 forks source link

rotation and offset on labels #38

Open jodygarnett opened 4 years ago

jodygarnett commented 4 years ago

report:

rotation is not in geostyler offset is actually available in geostyler and sld, however geoserver seems to use different unit (and different direction)

Checking:

Symbology Encoding 1.1 The Rotation of a PointPlacement gives the clockwise rotation of the label in degrees from the normal direction for a font (left-to-right for Latin-derived human languages at least). Rotation is formally defined in Subclause 11.3.2.

GeoTools data structure:

jodygarnett commented 4 years ago

We would need to double check if rotation is implemented, but the SE 1.1 standard, and geotools data structure support the idea.

jodygarnett commented 4 years ago

And rotation is documented in the user manual, https://docs.geoserver.org/latest/en/user/styling/sld/reference/labeling.html#rotation

volaya commented 4 years ago

Rotation for labels is supported already. There is even a test style to test it.

@jodygarnett Maybe it would be a good idea to have the library add a comment with the version that has produced the sld, since it looks like we are getting some false issues for using older versions...