I have a layer in GeoServer and its projection is EPSG:27700. When I query the layer in my app I get and error.
Error rendering coverage on the fast path java.lang.IllegalArgumentException: The reference geometry must be either Polygon, MultiPolygon, or a polygonal PreparedGeometry The reference geometry must be either Polygon, MultiPolygon, or a polygonal PreparedGeometry
If I manually modify the SRS value in the URL and paste it into the browser again... I get a valid png file.
I assume the SRS it is sending is identifying what the projection of the map object and I cannot change it? Can anyone help me to understand what is going on please?
=== marked as duplicate, although the question linked doesn't help me much === By "copy the request" I meant that Using the browser console I copied the URL my map was firing to GeoServer to request tiles.
The only difference between what my map's URL and the URL from the GeoServer's OpenLayers preview is that the SRS parameter is different.
The GeoServer preview request gets a valid png, the request from my map results in the error mentioned. I guess specifically I want to understand how that results in the error as I cannot understand how referencing a geometry even comes into this scenario.