"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "saga-gis/src/tools/io/io_grid_image/grid_to_kml.cpp" between
saga-7.6.2_src.zip and saga-7.6.3_src.zip

About: SAGA (System for Automated Geoscientific Analyses) is a Geographic Information System (GIS) software for geodata processing and analysis. All source codes.

grid_to_kml.cpp  (saga-7.6.2_src):grid_to_kml.cpp  (saga-7.6.3_src)
skipping to change at line 113 skipping to change at line 113
_TL("kmz, kml and image files"), _TL("kmz, kml and image files"),
_TL("kmz file") _TL("kmz file")
), 2 ), 2
); );
if( has_GUI() ) if( has_GUI() )
{ {
Parameters.Add_Choice("", Parameters.Add_Choice("",
"COLOURING" , _TL("Colouring"), "COLOURING" , _TL("Colouring"),
_TL(""), _TL(""),
CSG_String::Format("%s|%s|%s|%s|%s|%s|", CSG_String::Format("%s|%s|%s|%s|%s|%s",
_TL("stretch to grid's standard deviation"), _TL("stretch to grid's standard deviation"),
_TL("stretch to grid's value range"), _TL("stretch to grid's value range"),
_TL("stretch to specified value range"), _TL("stretch to specified value range"),
_TL("lookup table"), _TL("lookup table"),
_TL("rgb coded values"), _TL("rgb coded values"),
_TL("same as in graphical user interface") _TL("same as in graphical user interface")
), 5 ), 5
); );
Parameters.Add_Colors("", Parameters.Add_Colors("",
"COL_PALETTE" , _TL("Colours Palette"), "COL_PALETTE" , _TL("Colours Palette"),
_TL("") _TL("")
); );
} }
else else
{ {
Parameters.Add_Choice("", Parameters.Add_Choice("",
"COLOURING" , _TL("Colouring"), "COLOURING" , _TL("Colouring"),
_TL(""), _TL(""),
CSG_String::Format("%s|%s|%s|%s|%s|", CSG_String::Format("%s|%s|%s|%s|%s",
_TL("stretch to grid's standard deviation"), _TL("stretch to grid's standard deviation"),
_TL("stretch to grid's value range"), _TL("stretch to grid's value range"),
_TL("stretch to specified value range"), _TL("stretch to specified value range"),
_TL("lookup table"), _TL("lookup table"),
_TL("rgb coded values") _TL("rgb coded values")
), 0 ), 0
); );
Parameters.Add_Choice("", Parameters.Add_Choice("",
"COL_PALETTE" , _TL("Color Palette"), "COL_PALETTE" , _TL("Color Palette"),
_TL(""), _TL(""),
CSG_String::Format("%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|% s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|", CSG_String::Format("%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|% s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s",
_TL("DEFAULT" ), _TL("DEFAULT_BRIGHT" ), _ TL("BLACK_WHITE" ), _TL("BLACK_RED" ), _TL("DEFAULT" ), _TL("DEFAULT_BRIGHT" ), _ TL("BLACK_WHITE" ), _TL("BLACK_RED" ),
_TL("BLACK_GREEN" ), _TL("BLACK_BLUE" ), _ TL("WHITE_RED" ), _TL("WHITE_GREEN" ), _TL("BLACK_GREEN" ), _TL("BLACK_BLUE" ), _ TL("WHITE_RED" ), _TL("WHITE_GREEN" ),
_TL("WHITE_BLUE" ), _TL("YELLOW_RED" ), _ TL("YELLOW_GREEN" ), _TL("YELLOW_BLUE" ), _TL("WHITE_BLUE" ), _TL("YELLOW_RED" ), _ TL("YELLOW_GREEN" ), _TL("YELLOW_BLUE" ),
_TL("RED_GREEN" ), _TL("RED_BLUE" ), _ TL("GREEN_BLUE" ), _TL("RED_GREY_BLUE" ), _TL("RED_GREEN" ), _TL("RED_BLUE" ), _ TL("GREEN_BLUE" ), _TL("RED_GREY_BLUE" ),
_TL("RED_GREY_GREEN"), _TL("GREEN_GREY_BLUE"), _ TL("RED_GREEN_BLUE"), _TL("RED_BLUE_GREEN"), _TL("RED_GREY_GREEN"), _TL("GREEN_GREY_BLUE"), _ TL("RED_GREEN_BLUE"), _TL("RED_BLUE_GREEN"),
_TL("GREEN_RED_BLUE"), _TL("RAINBOW" ), _ TL("NEON" ), _TL("TOPOGRAPHY" ), _TL("GREEN_RED_BLUE"), _TL("RAINBOW" ), _ TL("NEON" ), _TL("TOPOGRAPHY" ),
_TL("ASPECT_1" ), _TL("ASPECT_2" ), _ TL("ASPECT_3" ) _TL("ASPECT_1" ), _TL("ASPECT_2" ), _ TL("ASPECT_3" )
), 0 ), 0
); );
skipping to change at line 172 skipping to change at line 172
Parameters.Add_Bool("", Parameters.Add_Bool("",
"COL_REVERT" , _TL("Revert Palette"), "COL_REVERT" , _TL("Revert Palette"),
_TL(""), _TL(""),
false false
); );
} }
Parameters.Add_Double("", Parameters.Add_Double("",
"STDDEV" , _TL("Standard Deviation"), "STDDEV" , _TL("Standard Deviation"),
_TL(""), _TL(""),
2.0, 0.0, true 2., 0., true
); );
Parameters.Add_Range("", Parameters.Add_Range("",
"STRETCH" , _TL("Stretch to Value Range"), "STRETCH" , _TL("Stretch to Value Range"),
_TL(""), _TL(""),
0.0, 100.0 0., 100.
); );
//----------------------------------------------------- //-----------------------------------------------------
CSG_Table *pLUT = Parameters.Add_FixedTable("", "LUT", _TL("Looku p Table"), _TL(""))->asTable(); CSG_Table *pLUT = Parameters.Add_FixedTable("", "LUT", _TL("Looku p Table"), _TL(""))->asTable();
pLUT->Set_Name(_TL("Table")); pLUT->Set_Name(_TL("Table"));
pLUT->Add_Field("Color" , SG_DATATYPE_Color ); pLUT->Add_Field("Color" , SG_DATATYPE_Color );
pLUT->Add_Field("Name" , SG_DATATYPE_String); pLUT->Add_Field("Name" , SG_DATATYPE_String);
pLUT->Add_Field("Description", SG_DATATYPE_String); pLUT->Add_Field("Description", SG_DATATYPE_String);
skipping to change at line 206 skipping to change at line 206
"RESAMPLING", _TL("Interpolation"), "RESAMPLING", _TL("Interpolation"),
_TL("Resampling method used when projection is needed"), _TL("Resampling method used when projection is needed"),
true true
); );
if( !has_GUI() ) if( !has_GUI() )
{ {
Parameters.Add_Range("", Parameters.Add_Range("",
"SHADE_BRIGHT", _TL("Shade Brightness"), "SHADE_BRIGHT", _TL("Shade Brightness"),
_TL("Allows one to scale shade brightness [percent]"), _TL("Allows one to scale shade brightness [percent]"),
0.0, 100.0, 0.0, true, 100.0, true 0., 100., 0., true, 100., true
); );
} }
} }
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
// // // //
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//--------------------------------------------------------- //---------------------------------------------------------
int CGrid_to_KML::On_Parameters_Enable(CSG_Parameters *pParameters, CSG_Paramete r *pParameter) int CGrid_to_KML::On_Parameters_Enable(CSG_Parameters *pParameters, CSG_Paramete r *pParameter)
skipping to change at line 323 skipping to change at line 323
if( !bDelete ) if( !bDelete )
{ {
Message_Fmt("\n%s: %s\n", _TL("re-projection"), _TL("fail ed")); Message_Fmt("\n%s: %s\n", _TL("re-projection"), _TL("fail ed"));
return( false ); return( false );
} }
} }
//----------------------------------------------------- //-----------------------------------------------------
if( (pTool = SG_Get_Tool_Library_Manager().Create_Tool("io_grid_image ", 0)) == NULL ) // Export Image if( (pTool = SG_Get_Tool_Library_Manager().Create_Tool("io_grid_image ", 0, has_GUI())) == NULL ) // Export Image
{ {
return( false ); return( false );
} }
bool bResult = false; bool bResult = false;
pTool->Set_Manager(NULL); pTool->Set_Manager(NULL);
if( pTool->Set_Parameter("GRID" , pGrid ) if( pTool->Set_Parameter("GRID" , pGrid )
&& pTool->Set_Parameter("SHADE" , pShade) && pTool->Set_Parameter("SHADE" , pShade)
&& pTool->Set_Parameter("COLOURING" , Method) && pTool->Set_Parameter("COLOURING" , Method)
&& pTool->Set_Parameter("FILE_KML" , true ) && pTool->Set_Parameter("FILE_KML" , true )
&& pTool->Set_Parameter("FILE" , Parameters("FILE" )) && pTool->Set_Parameter("FILE" , Parameters("FILE" ))
&& pTool->Set_Parameter("COL_PALETTE" , Parameters("COL_PALETTE" )) && pTool->Set_Parameter("COL_PALETTE" , Parameters("COL_PALETTE" ))
&& pTool->Set_Parameter("STDDEV" , Parameters("STDDEV" )) && pTool->Set_Parameter("STDDEV" , Parameters("STDDEV" ))
&& pTool->Set_Parameter("STRETCH" , Parameters("STRETCH" )) && pTool->Set_Parameter("STRETCH" , Parameters("STRETCH" ))
&& pTool->Set_Parameter("LUT" , Parameters("LUT" )) && pTool->Set_Parameter("LUT" , Parameters("LUT" ))
&& (has_GUI() && (has_GUI() || !Parameters("SHADE_BRIGHT")
|| pTool->Set_Parameter("SHADE_BRIGHT", Parameters("SHADE_BRIGHT"))) || pTool->Set_Parameter("SHADE_BRIGHT", Parameters("SHADE_BRIGHT")))
&& pTool->Execute() ) && pTool->Execute() )
{ {
bResult = true; bResult = true;
} }
SG_Get_Tool_Library_Manager().Delete_Tool(pTool); SG_Get_Tool_Library_Manager().Delete_Tool(pTool);
//----------------------------------------------------- //-----------------------------------------------------
if( bDelete ) if( bDelete )
 End of changes. 8 change blocks. 
8 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)