correct multitude of PostGIS errors