Use WKB format instead of WKT to extract geometric data. Thanks to Dominique Legendre for the help.