Remove getCoordinateDimension calls

Use HasZ instead of getCoordinateDimension to support GEOS 3.2.