Good Morning,

 

QGIS allows a layer's style to be stored in a GeoPackage (or other database
oriented solutions).  It creates a table called layer_styles which contains
metadata, the QGIS proprietary layer style information , but also a column
which contains an SLD.

 

I would like to add methods to the org.geotools.geopkg.GeoPackage class to
be able to access this information.  

Looking at how the class is already designed, I would suggest the following

 

A new class: StyleEntry  (with appropriate getters)

{

                Entry entry;  // the entry to which the style belong

                String name; // the contents of the styleName column

                String description; // the contents of the description
column

}

 

Then add the following methods to GeoPackage

 

List<StyleEntry> layerStyles();

Style layerStyles(StyleEntry entry);

 

Although I would like to support adding a layer style, the layer_styles
table stores both the SLD and QML versions of the style description, and
until the rest of GeoTools supports QML styles that would leave the database
row created for the new storage inconsistent with rows created from QGIS.

 

If there is another way to reasonably pull this information from a
GeoPackage, I am open to other solutions.

 

Would this added feature be amenable to the developer community?

 

Very respectfully,

 

Mark Henning

Software Engineer, Technical Specialist

Nuclear Science & Engineering

Office: 719-599-1519

Cell: 612-703-8563



 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to