refactoring tbl_gis_visualization.php