gt-jdbc-hana - Spatial filters against views don't always work

Description

If the HANA dialect is asked for the SRID of a geometry column in a view (via HanaDialect#getGeometrySRID()), it returns null.

This leads to a faulty query generation in HanaDialect#prepareGeometryValue() because -1 is used as SRID instead of the SRID of the geometries in the view's column. As a result the database returns an error stating that a spatial reference system with SRID -1 does not exist.

Environment

None

Assignee

Stefan Uhrig

Reporter

Stefan Uhrig

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure