Skip to content

Commit

Permalink
update 3D
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Jul 24, 2024
1 parent 81a08f6 commit ec21ef5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
7 changes: 6 additions & 1 deletion DATA/PROJECT/Montue/Montue.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ output_points=./outputPoints/outPoints.csv
[settings]
parameters_file=./SETTINGS/parameters.ini
log_file=./LOG/Montue.txt
tile_map=GOOGLE
tile_map=GOOGLE

[output]
waterContent=20,40,55,65,95,105,115,125,140
waterPotential=20,55,65,115,125
factorOfSafety=20,55,65,95,105,115,125
Binary file modified DATA/TEMPLATE/crop_default.db
Binary file not shown.
13 changes: 6 additions & 7 deletions agrolib/project/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,8 @@ bool Project::loadDEM(QString myFileName)

setProxyDEM();
interpolationSettings.setProxyLoaded(false);
if (! updateProxy()) return false;
if (! updateProxy())
return false;

//set interpolation settings DEM
interpolationSettings.setCurrentDEM(&DEM);
Expand Down Expand Up @@ -1899,7 +1900,7 @@ bool Project::loadProxyGrids()
}
else
{
errorString = "Error loading proxy grid " + fileName;
errorString = "Error loading raster proxy:\n" + fileName + "\nHow to fix it: check the proxy section in the parameters.ini";
return false;
}

Expand Down Expand Up @@ -1972,13 +1973,11 @@ bool Project::updateProxy()
{
if (! interpolationSettings.getProxyLoaded())
{
if (loadProxyGrids())
{
interpolationSettings.setProxyLoaded(true);
}
else
if (! loadProxyGrids())
return false;

interpolationSettings.setProxyLoaded(true);

if (meteoPointsDbHandler != nullptr)
{
if (! readProxyValues())
Expand Down
2 changes: 1 addition & 1 deletion bin/CRITERIA3D/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ void MainWindow::on_actionOpenProject_triggered()

if (! myProject.loadCriteria3DProject(fileName))
{
myProject.logError("Error opening project: " + myProject.errorString);
myProject.logError("*** Error opening the project! ***\n" + myProject.errorString);
myProject.loadCriteria3DProject(myProject.getApplicationPath() + "default.ini");
}

Expand Down

0 comments on commit ec21ef5

Please sign in to comment.