[GEOT-4911]: Fixing coordinateAxis checks
Merge pull request #559 from dromagnoli/GEOT-4911-12.x

[GEOT-4911]: Fixing coordinateAxis checks-backport to 12.x