Skip to content

Commit

Permalink
And more.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Apr 30, 2024
1 parent 0c6aa69 commit 882a44d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions apps/gdal_viewshed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@
/* main() */
/************************************************************************/

//ABELL
//MAIN_START(argc, argv)
int main(int argc, char **argv)

MAIN_START(argc, argv)
{
using namespace gdal;

Expand Down Expand Up @@ -264,15 +261,6 @@ int main(int argc, char **argv)

GDALDatasetH hDstDS = GDALDataset::FromHandle(oViewshed.output().release());

/**
GDALDatasetH hDstDS = GDALViewshedGenerate(
hBand, osFormat.c_str(), osDstFilename.c_str(),
aosCreationOptions.List(), dfObserverX, dfObserverY, dfObserverHeight,
dfTargetHeight, dfVisibleVal, dfInvisibleVal, dfOutOfRangeVal,
dfNoDataVal, dfCurvCoeff, GVM_Edge, dfMaxDistance, pfnProgress, nullptr,
outputMode, nullptr);
**/

GDALClose(hSrcDS);
if (GDALClose(hDstDS) != CE_None)
bSuccess = false;
Expand All @@ -283,5 +271,4 @@ int main(int argc, char **argv)
return bSuccess ? 0 : 1;
}

//ABELL
//MAIN_END
MAIN_END

0 comments on commit 882a44d

Please sign in to comment.