我想从 sql 视图层获取样式(sld 或 css 无关紧要,但更喜欢 css),但我无法实现这一点。这是我的层的 sql 视图
select
value,
location,
'mark: symbol(square);mark-size: 6px;:mark {fill: #0099cc;}' STYLE
from TABLE t
这是我的风格:
/* @title point */
* {
[STYLE]
}
当我预览图层时,出现以下错误:
org.parboiled.errors.ParserRuntimeException: Error at line 3. Encountered "<EOF>" at line 1, column 5. Was expecting one of: "(" ... ":" ... <IDENTIFIER> ... "." ... "not" ... "in" ... "tequals" ... "before" ... "after" ... "during" ... "*" ... "/" ... "+" ... "-" ... "like" ... "ilike" ... "exists" ... "does-not-exist" ... "is" ... "between" ... "=" ... ">" ... "<" ... ">=" ... "<=" ... "<>" ... Parsing : STYLE.
有没有办法从数据库中获取样式信息?