Fixed WKT/query generation
Merge branch 'master' of https://github.com/matforest/tesseract