Store result of OGR_FD_GetGeomType into a QGis::WkbType, not in an int, which causes an integer overflow