Hello.
I use:
- GeoServer 2.15.2
- mongoDB plugin
- mongoDB 3.6
I created collection. Inserted one document with “geo” field equals geojson GeometryCollection. It contains one LineString and one Polygon
{
“id” : 1,
“geo” : {
“type” : “GeometryCollection”,
“geometries” : [
{
“type” : “LineString”,
“coordinates” : [
[
99.2922,
57.932074
],
[
99.297522,
57.932222
]
]
},
{
“type” : “Polygon”,
“coordinates” : [
[
[
99.2919,
57.932074
],
[
99.285581,
57.931908
],
[
99.285581,
57.926168
],
[
99.288996,
57.926688
],
[
99.288996,
57.930237
],
[
99.2919,
57.932074
]
]
]
}
]
}
}
Created 2dsphere index on field “geo”. Then created GeoServer layer on that collection.
I faced such trouble.
WMS and WMTS requests of tiles on some zoom level are OK
And when I increase zoom level geoserver returns tiles with ‘code=“InternalError” Rendering process failed’ (for WMS)
and “400: Problem communicating with GeoServer” (for WMTS)
What could be the problem?
First I thought error could be when both primitives are one the same tile. But on the first screenshot there is such tile
“generic” SLD style that is used by default has the rule:
Polygon Polygon 2 #AAAAAA #000000 1GeometryCollection’s dimension is 2. That rule is used both for LineString and Polygon. Could this be the reason?
And how to apply different styles for different type of primitives in GeometryCollection?
Thanks in advance.