Commit 856b6ddd authored by Janet Barrett's avatar Janet Barrett
Browse files

(PROG) Checked in wrong version of ProcessMapMosaic.cpp in revision 5715. References #1500.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5721 41f8697f-d340-4b68-9986-7bafba869bb8
parent dd709e9f
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -528,13 +528,25 @@ namespace Isis {
    // All map projected cubes must have an upper left x/y and do not require a lat/lon
    // range. If the current values for the latitude and longitude range are out of
    // order or equal, then we don't write them to the labels.
    if (latlonflag) {
      if (slat < elat && slon < elon) {
    if (latlonflag && slat < elat && slon < elon) {
      mapping.addKeyword(PvlKeyword("MinimumLatitude", toString(slat)), Pvl::Replace);
      mapping.addKeyword(PvlKeyword("MaximumLatitude", toString(elat)), Pvl::Replace);
      mapping.addKeyword(PvlKeyword("MinimumLongitude", toString(slon)), Pvl::Replace);
      mapping.addKeyword(PvlKeyword("MaximumLongitude", toString(elon)), Pvl::Replace);
    }
    else {
      if (mapping.hasKeyword("MinimumLatitude")) {
        mapping.deleteKeyword("MinimumLatitude");
      }
      if (mapping.hasKeyword("MaximumLatitude")) {
        mapping.deleteKeyword("MaximumLatitude");
      }
      if (mapping.hasKeyword("MinimumLongitude")) {
        mapping.deleteKeyword("MinimumLongitude");
      }
      if (mapping.hasKeyword("MaximumLongitude")) {
        mapping.deleteKeyword("MaximumLongitude");
      }
    }

    Projection *firstProj = ProjectionFactory::CreateFromCube(fileLab);