geostyler / geostyler-sld-parser

GeoStyler-Style-Parser implementation for SLD
BSD 2-Clause "Simplified" License
51 stars 31 forks source link

[sld-parser] Allow passing in renderOpts for xml2js 'Builder' #247

Closed chrismayer closed 1 year ago

chrismayer commented 5 years ago

PARSER

SLD

FEATUREREQUEST

Description:

The Builder class of xml2js accepts several renderOpts in order to influence the created XML (SLD in our case). The SLD-parser should be able to accept these and use them when creating the SLD in the writeStyle function. By https://github.com/terrestris/geostyler-sld-parser/pull/207 the render option pretty was introduced as specific member. This could be replaced by the more generic approach of passing in a complete renderOpts config as described above.

KaiVolland commented 1 year ago

We switched to fast-xml parser with #682 and added the possibility to pass in th the options for read and write.