Check the consistency of the metadata we want to enforce in the typmod: srid, type and dimensionality.
If things are inconsistent, shut down the query.