Vector records not showing individual record feature preview when clicking on feature
Opened this issue · 2 comments
Some or all vector type records are not displaying the preview single-record feature in the record page that presents the underlying tabular record for that feature. The problem seems to be the same for point, line, and polygon layers.
Examples include:
POINT
Record: https://geo.nyu.edu/catalog/nyu-2451-44260
Also: https://geo.nyu.edu/catalog/nyu-2451-44256
LINE
Record: https://geo.nyu.edu/catalog/nyu-2451-36787
POLYGON
Record: https://geo.nyu.edu/catalog/nyu-2451-43803
I've replicated the requests that the frontend is making directly to the GeoServer and requests for all 3 maps generate the following error:
<?xml version="1.0" encoding="UTF-8"?>
<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc https://maps-public.geo.nyu.edu:443/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException>
Internal error occurred
java.io.IOException: Error occured calculating bounds for nyu_2451_43803
Error occured calculating bounds for nyu_2451_43803
ERROR: function st_force_2d(geometry) does not exist
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Position: 18
</ServiceException>
</ServiceExceptionReport>
This StackOverflow post suggests it may be because of an old version of GeoTools packaged with GeoServer: https://gis.stackexchange.com/questions/353638/error-when-publishing-a-table-layer-from-postgis-to-geoserver