Unverified Commit b5908101 authored by Jacob Cain's avatar Jacob Cain Committed by GitHub
Browse files

Updated Qmos to load planetographic projections without loading planetocentric first (#5130)

* Updated Grid-specific lat-lons to track proj radii

* updated changelog with qmos fix
parent c3d975e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ release.
### Deprecated

### Fixed
- Fixed users not being able to modify planetographic projections in qmos

## [7.2.0] - 2022-12-07

+10 −5
Original line number Diff line number Diff line
@@ -810,20 +810,25 @@ namespace Isis {
  void MosaicGridTool::onProjectionChanged() {
    TProjection * tproj = (TProjection *)getWidget()->getProjection();
    
    PvlGroup mappingGroup(tproj->Mapping());

    // If Projection changed from a file, force extents to come from 
    // the new map file
    m_latExtents = Map;
    m_lonExtents = Map; 

    Latitude minLat = Latitude(tproj->MinimumLatitude(), Angle::Degrees);
    Latitude maxLat = Latitude(tproj->MaximumLatitude(), Angle::Degrees);
    Latitude minLat = Latitude(tproj->MinimumLatitude(), mappingGroup, Angle::Degrees);
    Latitude maxLat = Latitude(tproj->MaximumLatitude(), mappingGroup, Angle::Degrees);
    
    setLatExtents(m_latExtents, minLat, maxLat);
  
    Longitude minLon = Longitude(tproj->MinimumLongitude(), Angle::Degrees);
    Longitude maxLon = Longitude(tproj->MaximumLongitude(), Angle::Degrees);
    Longitude minLon = Longitude(tproj->MinimumLongitude(), mappingGroup, Angle::Degrees);
    Longitude maxLon = Longitude(tproj->MaximumLongitude(), mappingGroup, Angle::Degrees);
  
    setLonExtents(m_lonExtents, minLon, maxLon);

    setBaseLat(Latitude(baseLat().angle(Angle::Degrees), mappingGroup, Angle::Degrees));
    setBaseLon(Longitude(baseLon().angle(Angle::Degrees), mappingGroup, Angle::Degrees));
  }