Skip to content

Python/XML styling property inconsistencies #1427

@springmeyer

Description

@springmeyer

We need to clean up inconsistencies between XML and Python. Since 2.1 strives to be a backward compatible release, we can start softening any future changes by exposing in Python the XML styling syntax to prepare for likely renaming in Python (or more rarely in XML) at 3.x.

Map

  • background/background-color (fixed in 3e4d579 - in 2.1)

Layer

  • status/active (fixed in 8c8cf71 - in 2.1)

Stroke

  • line_join/linejoin (xml matches svg spec) (fixed in ab5ce64 - in 2.1)
  • line_cap/linecap (xml matches svg spec) (fixed in ab5ce64 - in 2.1)
  • dash_offset/dashoffset (xml matches svg spec) (fixed in ab5ce64- in 2.1)
  • {not in python, instead add_dash/get_dashs}/dasharray (fixed in ab5ce64 - in 2.1)

All Symbolizers using images/svg

  • filename/file

MarkersSymbolizer

  • marker-type: unclear future in XML, but still in 2.1 and not officially deprecated so we should add back to python to keep back-compatibility (fixed up in e8101a0 - in 2.1)

TextSymbolizer

NOTE: also need to review Shield Symbolizer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions