The calculated distance (air line) between Sandomierz and Gliwice is approximately 138 miles respectively 222 kilometers.
By car or train, the actual journey to Gliwice is certainly longer, as only the direct route (as the crow flies) between Sandomierz and Gliwice has been calculated here.
Air line (approximately)
222 kilometers
120 nautical miles