Check the consistency of the metadata to enforce in the typmod: SRID, type, and dimensionality.
If things are inconsistent, return NULL