function getHasZM(geometry) {
  const layout = geometry.getLayout();
  return {
    hasZ: layout === 'XYZ' || layout === 'XYZM',
    hasM: layout === 'XYM' || layout === 'XYZM',
  };
}
@param {import("../geom/SimpleGeometry.js").default} geometry Geometry.
@return {Object} Object with boolean hasZ and hasM keys.