ngageoint / geopackage-js

GeoPackage JavaScript Library
http://ngageoint.github.io/geopackage-js/
MIT License
304 stars 78 forks source link

SLD to FeatureStyle? #159

Closed fjenett closed 3 years ago

fjenett commented 4 years ago

Hi, currently QGIS will store styles as SLD in a table called "layer_styles" in a geopackage. Is there a way to transform these settings to FeatureStyles?

danielbarela commented 4 years ago

As far as I know, QGIS is utilizing this extension: https://github.com/pka/qgpkg/blob/master/qgis_geopackage_extension.md We currently do not implement that extension, but would welcome a pull request which implements it. That extension would have to be implemented, along with QML and SLD parsing to be able to translate the styles into the FeatureStyle extension. This library works both in node and the browser which complicates this further.