Geoserver2.14.0安装在Win7上,试图使用图层的mbstyle样式。在层上使用mbstyle时,Get error "org.geotools.mbstyle.parse.MBFormatException:"layers“需要JSONArray”。
已尝试在(程序文件)\geoserver2.14.0\webapps\geoserver\WEB-INF\lib中安装java.util.jar,没有更改。
我遗漏了什么?
日志输出:layers:"layers“需要在org.geotools.mbstyle.parse.MBObjectParser.getJSONArray(MBObjectParser.java:245) at org.geotools.mbstyle.MBStyle.layers(MBStyle.java:135) at org.geotools.mbstyle.MBStyle.transform(MBStyle.java:347) at org.geotools.mbstyle.MapBoxStyle.parse(MapBoxStyle.java:53) at org.geoserver.community.mbstyle.MBStyleHandler.的JSONArrayorg.geoserver.community.mbstyle.MBStyleHandler.parse(MBStyleHandler.java:100)的convertToSLD(MBStyleHandler.java:121)
发布于 2018-11-15 17:13:27
这意味着您需要在样式的元素中提供一个层数组。
{
"version": 8,
"name": "point-circle-test",
"layers": [
{
"id": "point",
"type": "circle",
"paint": {
"circle-radius": 3,
"circle-color": "#FF0000",
"circle-pitch-scale": "map"
}
}
]
}https://stackoverflow.com/questions/53299103
复制相似问题