fixed get geometry types from the query results