Loading isis/make/config.darwin-MacOSX10_6 +12 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,13 @@ NNINCDIR = -I$(ISIS3LOCAL)/include/nn #NNLIBDIR = -L$(ISIS3LOCAL)/lib NNLIB = -lnn #--------------------------------------------------------------------------- # Set up for HDF5 libraries #--------------------------------------------------------------------------- HDF5INCDIR = -I$(ISIS3OPT)/include #HDF5LIBDIR = -L$(ISIS3LOCAL)/lib HDF5LIB = -lhdf5 -lhdf5_hl -lhdf5_cpp -lhdf5_hl_cpp #--------------------------------------------------------------------------- # Final generic setup for includes at the top level #--------------------------------------------------------------------------- Loading Loading @@ -407,6 +414,11 @@ THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libexpat*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libintl*.dylib" #THIRDPARTYLIBS += "$(ISIS3OPT)/lib/lib*.dylib" # hdf5 THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_cpp*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl_cpp*.dylib" # libxerces-c depends on these libraries THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libicui18n*.dylib" Loading isis/make/config.darwin-MacOSX10_8 +12 −0 Original line number Diff line number Diff line Loading @@ -306,6 +306,13 @@ NNINCDIR = -I$(ISIS3LOCAL)/include/nn #NNLIBDIR = -L$(ISIS3LOCAL)/lib NNLIB = -lnn #--------------------------------------------------------------------------- # Set up for HDF5 libraries #--------------------------------------------------------------------------- HDF5INCDIR = -I$(ISIS3OPT)/include #HDF5LIBDIR = -L$(ISIS3LOCAL)/lib HDF5LIB = -lhdf5 -lhdf5_hl -lhdf5_cpp -lhdf5_hl_cpp #--------------------------------------------------------------------------- # Final generic setup for includes at the top level #--------------------------------------------------------------------------- Loading Loading @@ -414,6 +421,11 @@ THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libp11-kit*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libffi*.dylib" #THIRDPARTYLIBS += "$(ISIS3OPT)/lib/lib*.dylib" # hdf5 THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_cpp*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl_cpp*.dylib" # libxerces-c depends on these libraries THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libicui18n*.dylib" Loading isis/src/base/apps/cam2map/cam2map.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,6 @@ void IsisMain() { incam->BasicMapping(camMap); PvlGroup &camGrp = camMap.findGroup("Mapping"); // Make the target info match the user mapfile double minlat, maxlat, minlon, maxlon; incam->GroundRange(minlat, maxlat, minlon, maxlon, userMap); Loading @@ -83,6 +82,16 @@ void IsisMain() { TProjection *outmap = NULL; bool trim = ui.GetBoolean("TRIM"); // Make sure the target name of the input cube and map file match. if (userGrp.hasKeyword("TargetName") && !icube->group("Instrument").findKeyword("TargetName").isNull()) { if (!PvlKeyword::stringEqual(incam->target()->name(), userGrp.findKeyword("TargetName")[0])) { QString msg = "The TargetName: [" + incam->target()->name() + "] of the input cube: [" + icube->fileName() + "] does not match the TargetName: [" + userGrp.findKeyword("TargetName")[0] + "] of the map file: [" + ui.GetFileName("MAP") + "]."; throw IException(IException::User, msg, _FILEINFO_); } } if ( !ui.GetBoolean("MATCHMAP") ) { if (ui.GetString("DEFAULTRANGE") == "MAP") { camGrp.deleteKeyword("MinimumLatitude"); Loading isis/src/base/apps/cam2map/cam2map.xml +5 −0 Original line number Diff line number Diff line Loading @@ -279,6 +279,11 @@ Brought code closer to ISIS coding standards. Added test to read NAIF body frame info from labels. References #3934 </change> <change name="Curtis Rose" date="2016-06-29"> Fixed an error when matchmap was true, the user could attempt to add a mapping file with a targetname that did not match the targetname of the instrument group of the cube file. Fixes #1952. </change> </history> <oldName> Loading isis/src/base/apps/cam2map/tsts/errors/Makefile 0 → 100644 +22 −0 Original line number Diff line number Diff line # This test will print errors thrown by the applicationName application. APPNAME = cam2map include $(ISISROOT)/make/isismake.tsts commands: # TEST A: Test that an exception is thrown when targetnames of cube and map do not match. echo -e "Error Test A:" > $(OUTPUT)/error_temp.txt; if [[ `$(APPNAME) \ from=$(INPUT)/vesta.cub \ to=$(OUTPUT)/output.cub \ map=$(INPUT)/marsEquirectangular.map \ 2>> $(OUTPUT)/error_temp.txt \ > /dev/null` ]]; \ then \ true; \ fi; $(SED) 's+\[/.*/\(input/.*\]\)\(.*\)\[/.*/\(input/.*\]\)+\[\1\2\[\3+' $(OUTPUT)/error_temp.txt > $(OUTPUT)/error.txt; $(RM) $(OUTPUT)/error_temp.txt; $(RM) $(OUTPUT)/output.cub; Loading
isis/make/config.darwin-MacOSX10_6 +12 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,13 @@ NNINCDIR = -I$(ISIS3LOCAL)/include/nn #NNLIBDIR = -L$(ISIS3LOCAL)/lib NNLIB = -lnn #--------------------------------------------------------------------------- # Set up for HDF5 libraries #--------------------------------------------------------------------------- HDF5INCDIR = -I$(ISIS3OPT)/include #HDF5LIBDIR = -L$(ISIS3LOCAL)/lib HDF5LIB = -lhdf5 -lhdf5_hl -lhdf5_cpp -lhdf5_hl_cpp #--------------------------------------------------------------------------- # Final generic setup for includes at the top level #--------------------------------------------------------------------------- Loading Loading @@ -407,6 +414,11 @@ THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libexpat*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libintl*.dylib" #THIRDPARTYLIBS += "$(ISIS3OPT)/lib/lib*.dylib" # hdf5 THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_cpp*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl_cpp*.dylib" # libxerces-c depends on these libraries THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libicui18n*.dylib" Loading
isis/make/config.darwin-MacOSX10_8 +12 −0 Original line number Diff line number Diff line Loading @@ -306,6 +306,13 @@ NNINCDIR = -I$(ISIS3LOCAL)/include/nn #NNLIBDIR = -L$(ISIS3LOCAL)/lib NNLIB = -lnn #--------------------------------------------------------------------------- # Set up for HDF5 libraries #--------------------------------------------------------------------------- HDF5INCDIR = -I$(ISIS3OPT)/include #HDF5LIBDIR = -L$(ISIS3LOCAL)/lib HDF5LIB = -lhdf5 -lhdf5_hl -lhdf5_cpp -lhdf5_hl_cpp #--------------------------------------------------------------------------- # Final generic setup for includes at the top level #--------------------------------------------------------------------------- Loading Loading @@ -414,6 +421,11 @@ THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libp11-kit*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libffi*.dylib" #THIRDPARTYLIBS += "$(ISIS3OPT)/lib/lib*.dylib" # hdf5 THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_cpp*.dylib" THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libhdf5_hl_cpp*.dylib" # libxerces-c depends on these libraries THIRDPARTYLIBS += "$(ISIS3OPT)/lib/libicui18n*.dylib" Loading
isis/src/base/apps/cam2map/cam2map.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,6 @@ void IsisMain() { incam->BasicMapping(camMap); PvlGroup &camGrp = camMap.findGroup("Mapping"); // Make the target info match the user mapfile double minlat, maxlat, minlon, maxlon; incam->GroundRange(minlat, maxlat, minlon, maxlon, userMap); Loading @@ -83,6 +82,16 @@ void IsisMain() { TProjection *outmap = NULL; bool trim = ui.GetBoolean("TRIM"); // Make sure the target name of the input cube and map file match. if (userGrp.hasKeyword("TargetName") && !icube->group("Instrument").findKeyword("TargetName").isNull()) { if (!PvlKeyword::stringEqual(incam->target()->name(), userGrp.findKeyword("TargetName")[0])) { QString msg = "The TargetName: [" + incam->target()->name() + "] of the input cube: [" + icube->fileName() + "] does not match the TargetName: [" + userGrp.findKeyword("TargetName")[0] + "] of the map file: [" + ui.GetFileName("MAP") + "]."; throw IException(IException::User, msg, _FILEINFO_); } } if ( !ui.GetBoolean("MATCHMAP") ) { if (ui.GetString("DEFAULTRANGE") == "MAP") { camGrp.deleteKeyword("MinimumLatitude"); Loading
isis/src/base/apps/cam2map/cam2map.xml +5 −0 Original line number Diff line number Diff line Loading @@ -279,6 +279,11 @@ Brought code closer to ISIS coding standards. Added test to read NAIF body frame info from labels. References #3934 </change> <change name="Curtis Rose" date="2016-06-29"> Fixed an error when matchmap was true, the user could attempt to add a mapping file with a targetname that did not match the targetname of the instrument group of the cube file. Fixes #1952. </change> </history> <oldName> Loading
isis/src/base/apps/cam2map/tsts/errors/Makefile 0 → 100644 +22 −0 Original line number Diff line number Diff line # This test will print errors thrown by the applicationName application. APPNAME = cam2map include $(ISISROOT)/make/isismake.tsts commands: # TEST A: Test that an exception is thrown when targetnames of cube and map do not match. echo -e "Error Test A:" > $(OUTPUT)/error_temp.txt; if [[ `$(APPNAME) \ from=$(INPUT)/vesta.cub \ to=$(OUTPUT)/output.cub \ map=$(INPUT)/marsEquirectangular.map \ 2>> $(OUTPUT)/error_temp.txt \ > /dev/null` ]]; \ then \ true; \ fi; $(SED) 's+\[/.*/\(input/.*\]\)\(.*\)\[/.*/\(input/.*\]\)+\[\1\2\[\3+' $(OUTPUT)/error_temp.txt > $(OUTPUT)/error.txt; $(RM) $(OUTPUT)/error_temp.txt; $(RM) $(OUTPUT)/output.cub;