see https://github.com/Turbo87/geoalchemy2/commit/79fb1b6e13845ecbcf830868c7a4f929e0dd30f5#L1L85

a WKTElement('POLYGON(...)') is created and it's AsRaster() method is then used to convert it.