Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a flag to allow for Geoid-height on NaN points in DEM generation #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public final class AddElevationOp extends Operator {
@Parameter(description = "The elevation band name.", defaultValue = "elevation", label = "Elevation Band Name")
private String elevationBandName = "elevation";

@Parameter(description = "Fill nodata values by geod values", defaultValue = "false", label = "Fill Nodata with Geod")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor note: there's a typo in 'geoid'.

private Boolean fillWithGeoid = false;

private boolean isElevationModelAvailable = false;
private ElevationModel dem = null;
private double demNoDataValue = 0; // no data value for DEM
Expand Down Expand Up @@ -176,7 +179,7 @@ public void computeTile(Band targetBand, Tile targetTile, ProgressMonitor pm) th

final boolean valid = DEMFactory.getLocalDEM(
dem, demNoDataValue, demResamplingMethod, tileGeoRef, x0, y0, w, h,
sourceProduct, true, localDEM);
sourceProduct, !fillWithGeoid, localDEM);

if (!valid)
return;
Expand Down