lat min/max and lon min/max were reversed in the sql statement