[Geoserver-users] "Internal Error" when rendering tiles with GeometryCollection from mongoDB storage

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

image1.jpg

And when I increase zoom level geoserver returns tiles with ‘code=“InternalError” Rendering process failed’ (for WMS)

image2.jpg

and “400: Problem communicating with GeoServer” (for WMTS)

image3.jpg

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

image6.png

“generic” SLD style that is used by default has the rule:

Polygon Polygon 2 #AAAAAA #000000 1

GeometryCollection’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.

Hi there.

Does anybody know how to solve it?..

чт, 26 дек. 2019 г. в 02:02, Artem Groznykh <groznykh.dev@…84…>:

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

image1.jpg

And when I increase zoom level geoserver returns tiles with ‘code=“InternalError” Rendering process failed’ (for WMS)

image2.jpg

and “400: Problem communicating with GeoServer” (for WMTS)

image3.jpg

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

image6.png

“generic” SLD style that is used by default has the rule:

Polygon Polygon 2 #AAAAAA #000000 1

GeometryCollection’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.

No idea… can you share the geoserver logs?

Cheers
Andrea

image1.jpg

image2.jpg

image6.png

image3.jpg

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

I don’t have access to mongodb at present, is there a stack trace in the logs indicating the problem?

image6.png

image3.jpg

···


Jody Garnett

In attach are logs for WMS and WMTS requests. They are identical.

Does it help?

пт, 21 февр. 2020 г. в 14:10, Jody Garnett <jody.garnett@…84…>:

I don’t have access to mongodb at present, is there a stack trace in the logs indicating the problem?

On Fri, Feb 21, 2020 at 11:07 AM Artem Groznykh <groznykh.dev@…84…> wrote:

Hi there.

Does anybody know how to solve it?..

чт, 26 дек. 2019 г. в 02:02, Artem Groznykh <groznykh.dev@…84…>:

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

image1.jpg

And when I increase zoom level geoserver returns tiles with ‘code=“InternalError” Rendering process failed’ (for WMS)

image2.jpg

and “400: Problem communicating with GeoServer” (for WMTS)

image3.jpg

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

image6.png

“generic” SLD style that is used by default has the rule:

Polygon Polygon 2 #AAAAAA #000000 1

GeometryCollection’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.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Jody Garnett

geoserver_WMS.txt (197 KB)

geoserver_WMTS.txt (155 KB)

Hi Artem,
from the logs, it seems the code expecting to get one geometry type (e…g, lines) but the
data actually contains something else, (e.g. points).
Do you have “weird” geometries in the mongo db, trying to imagine, maybe a geometry collection
that in turn contains a multilinestring (invalid, it should be flattened).

If you don’t need map wrapping, a workaround to the issue you’re seeing could be to disable
the map wrapping in the WMS settings

Cheers
Andrea

image1.jpg

image6.png

image2.jpg

image3.jpg

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Hi Andrea.

There is no “weird” geometries. In example there is a GeometryCollection with one Polygon and one LineString.

Disabling map wrapping solved the problem.

Thank you very much.

ср, 26 февр. 2020 г. в 18:13, Andrea Aime <andrea.aime@anonymised.com>:

Hi Artem,
from the logs, it seems the code expecting to get one geometry type (e…g, lines) but the
data actually contains something else, (e.g. points).
Do you have “weird” geometries in the mongo db, trying to imagine, maybe a geometry collection
that in turn contains a multilinestring (invalid, it should be flattened).

If you don’t need map wrapping, a workaround to the issue you’re seeing could be to disable
the map wrapping in the WMS settings

Cheers
Andrea

On Wed, Feb 26, 2020 at 3:51 PM Artem Groznykh <groznykh.dev@anonymised.com> wrote:

In attach are logs for WMS and WMTS requests. They are identical.

Does it help?

пт, 21 февр. 2020 г. в 14:10, Jody Garnett <jody.garnett@anonymised.com>:

I don’t have access to mongodb at present, is there a stack trace in the logs indicating the problem?

On Fri, Feb 21, 2020 at 11:07 AM Artem Groznykh <groznykh.dev@anonymised.com> wrote:

Hi there.

Does anybody know how to solve it?..

чт, 26 дек. 2019 г. в 02:02, Artem Groznykh <groznykh.dev@anonymised.com>:

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

image1.jpg

And when I increase zoom level geoserver returns tiles with ‘code=“InternalError” Rendering process failed’ (for WMS)

image2.jpg

and “400: Problem communicating with GeoServer” (for WMTS)

image3.jpg

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

image6.png

“generic” SLD style that is used by default has the rule:

Polygon Polygon 2 #AAAAAA #000000 1

GeometryCollection’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.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Jody Garnett


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Thanks Artem. Any chance you can open a bug report for mixed geometry type collections?
They are indeed uncommon, maybe the map wrapping code is not handling them properly
(it tries, but there is probably a bug):

https://osgeo-org.atlassian.net/projects/GEOS/summary

Cheers
Andrea

image1.jpg

image6.png

image2.jpg

image3.jpg

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Andrea, I created a bug report. Here it is - https://osgeo-org.atlassian.net/browse/GEOS-9525?atlOrigin=eyJpIjoiMjNkOTRjMzI5ZmJmNDcyMjllNTBkZWI2ZWU3NGQ5MjgiLCJwIjoiaiJ9

вт, 3 мар. 2020 г. в 16:01, Andrea Aime <andrea.aime@anonymised.com>:

Thanks Artem. Any chance you can open a bug report for mixed geometry type collections?
They are indeed uncommon, maybe the map wrapping code is not handling them properly
(it tries, but there is probably a bug):

https://osgeo-org.atlassian.net/projects/GEOS/summary

Cheers
Andrea

On Tue, Mar 3, 2020 at 1:42 PM Artem Groznykh <groznykh.dev@anonymised.com> wrote:

Hi Andrea.

There is no “weird” geometries. In example there is a GeometryCollection with one Polygon and one LineString.

Disabling map wrapping solved the problem.

Thank you very much.

ср, 26 февр. 2020 г. в 18:13, Andrea Aime <andrea.aime@anonymised.com>:

Hi Artem,
from the logs, it seems the code expecting to get one geometry type (e…g, lines) but the
data actually contains something else, (e.g. points).
Do you have “weird” geometries in the mongo db, trying to imagine, maybe a geometry collection
that in turn contains a multilinestring (invalid, it should be flattened).

If you don’t need map wrapping, a workaround to the issue you’re seeing could be to disable
the map wrapping in the WMS settings

Cheers
Andrea

On Wed, Feb 26, 2020 at 3:51 PM Artem Groznykh <groznykh.dev@anonymised.com> wrote:

In attach are logs for WMS and WMTS requests. They are identical.

Does it help?

пт, 21 февр. 2020 г. в 14:10, Jody Garnett <jody.garnett@anonymised.com>:

I don’t have access to mongodb at present, is there a stack trace in the logs indicating the problem?

On Fri, Feb 21, 2020 at 11:07 AM Artem Groznykh <groznykh.dev@anonymised.com> wrote:

Hi there.

Does anybody know how to solve it?..

чт, 26 дек. 2019 г. в 02:02, Artem Groznykh <groznykh.dev@anonymised.com>:

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

image1.jpg

And when I increase zoom level geoserver returns tiles with ‘code=“InternalError” Rendering process failed’ (for WMS)

image2.jpg

and “400: Problem communicating with GeoServer” (for WMTS)

image3.jpg

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

image6.png

“generic” SLD style that is used by default has the rule:

Polygon Polygon 2 #AAAAAA #000000 1

GeometryCollection’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.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Jody Garnett


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Thanks Artem

Cheers
Andrea

image1.jpg

image6.png

image2.jpg

image3.jpg

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.