public class OerebIconizer
extends java.lang.Object
| Constructor and Description |
|---|
OerebIconizer() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LegendEntry> |
getSymbolsQgis3(java.lang.String configFileName,
java.lang.String legendGraphicUrl)
Gets all the symbols and the according type code from a QGIS 3 wms server.
|
void |
saveSymbolsToDisk(java.util.List<LegendEntry> legendEntries,
java.lang.String directory)
Saves symbols to disk.
|
int |
updateSymbols(java.util.List<LegendEntry> legendEntries,
java.lang.String jdbcUrl,
java.lang.String dbUsr,
java.lang.String dbPwd,
java.lang.String dbQTable,
java.lang.String typeCodeAttrName,
java.lang.String symbolAttrName,
java.lang.String legendTextAttrName)
Updates the symbols in a database table of the according type code.
|
public java.util.List<LegendEntry> getSymbolsQgis3(java.lang.String configFileName, java.lang.String legendGraphicUrl) throws java.lang.Exception
configFileName - GetStyles request url (= SLD file).legendGraphicUrl - GetLegendGraphic request url with the vendor specific parameters for single symbol support.
The RULE parameter is added dynamically. The LAYER parameter must be included.java.lang.Exceptionpublic void saveSymbolsToDisk(java.util.List<LegendEntry> legendEntries, java.lang.String directory) throws java.lang.Exception
legendEntries - List with legend entries (type code, legend text and symbol).directory - Directory to save the symbols.java.io.IOExceptionjava.lang.Exceptionpublic int updateSymbols(java.util.List<LegendEntry> legendEntries, java.lang.String jdbcUrl, java.lang.String dbUsr, java.lang.String dbPwd, java.lang.String dbQTable, java.lang.String typeCodeAttrName, java.lang.String symbolAttrName, java.lang.String legendTextAttrName) throws java.lang.Exception
typeCodeSymbols - Map with the type code and the symbols.jdbcUrl - JDBC urldbUsr - User namedbPwd - PassworddbQTable - Qualified table name.typeCodeAttrName - Name of the type code attribute in the database.symbolAttrName - Name of the symbol attribute in the database.legendTextAttrName - Name of the legend text attribute in the database.java.lang.Exception