Changeset 6658


Ignore:
Timestamp:
Dec 6, 2016 12:12:50 PM (8 years ago)
Author:
ldelgass
Message:

fix fallback for invalid (geodetic) map projection

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/map.tcl

    r6657 r6658  
    212212        # Can't use angular units in projection 
    213213        puts stderr "ERROR: Geodetic profile not supported as map projection.  Try using an equirectangular (epsg:32663) projection instead."
    214         set projection "epsg:32663"
     214        # FIXME: epsg:32663 not recognized?
     215        #set projection "epsg:32663"
     216        set projection "+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
    215217    } elseif { $projection == "equirectangular" ||
    216218               $projection == "eqc-wgs84" } {
     
    234236        }
    235237    } else {
    236          clearExtents
     238        clearExtents
    237239    }
    238240
  • trunk/gui/scripts/mapviewer.tcl

    r6657 r6658  
    115115    private method GetNormalizedMouse { x y }
    116116    private method GoToViewpoint { dataobj viewpoint {duration 2.0} }
    117     private method InitSettings { args  }
     117    private method InitSettings { args }
    118118    private method MapIsGeocentric {}
    119119    private method Pan {option x y}
Note: See TracChangeset for help on using the changeset viewer.