Skip to content

Errors importing DEMs for GCD #437

@ICF-Massey

Description

@ICF-Massey

The Problem

Failed to import DEM

Reproduction steps

  1. Clicked on inputs - DEM surveys
  2. Selected first DEM, which generated the first exception message below (Rangitikei_lower_20210131_DEM_NZVD2016).
  3. Repeated step for second DEM, which generated second exception message below (Rangitikei_corridor_2017)

Exception message 1

TIFFAppendToStrip:Write error at scanline 7808
--- Stacktrace ---
at OSGeo.GDAL.Dataset.BuildOverviews(String resampling, Int32 overviewlist, IntPtr pOverviews, GDALProgressFuncDelegate callback, String callback_data)
at OSGeo.GDAL.Dataset.BuildOverviews(String resampling, Int32[] overviewlist, GDALProgressFuncDelegate callback, String callback_data)
at GCDConsoleLib.Raster.BuildPyramids(String method) in D:\Code\gcd\gcd\GCDConsoleLib\Raster.cs:line 554
at GCDConsoleLib.RasterOperators.BuildPyramids(FileInfo rInput) in D:\Code\gcd\gcd\GCDConsoleLib\RasterOperators\Interfaces.cs:line 1229
at GCDCore.RasterPyramidManager.PerformRasterPyramids(PyramidRasterTypes ePyramidRasterType, FileInfo rasterPath)
at GCDCore.UserInterface.SurveyLibrary.frmImportRaster.ProcessRaster()
at GCDCore.UserInterface.Project.TreeNodeTypes.DEMSurveysGroup.OnAdd(Object sender, EventArgs e)
--- Exception Data ---
ArcMap = 10.8.0.12790
GCD = 7.4.1.0
Windows: Microsoft Windows NT 6.2.9200.0
Date: 15/11/2022 8:08:37 pm

Exception message 2


EXCEPTION
Exception has been thrown by the target of an invocation.
--- Stacktrace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at GCDConsoleLib.RasterOperators.GenericRunWithOutput(Type generic, Type innerType, String sDesc, EventHandler1 progressHandler, Object[] args) in D:\Code\gcd\gcd\GCDConsoleLib\RasterOperators\Interfaces.cs:line 1293 at GCDConsoleLib.RasterOperators.BilinearResample(Raster rInput, FileInfo sOutputRaster, ExtentRectangle outputExtent, EventHandler1 progressHandler) in D:\Code\gcd\gcd\GCDConsoleLib\RasterOperators\Interfaces.cs:line 391
at GCDCore.UserInterface.SurveyLibrary.frmImportRaster.ProcessRaster()
at GCDCore.UserInterface.Project.TreeNodeTypes.DEMSurveysGroup.OnAdd(Object sender, EventArgs e)
--- Exception Data ---
ArcMap = 10.8.0.12790
GCD = 7.4.1.0------------------------------------------------
EXCEPTION
TIFFReadDirectory:Failed to read directory at offset 8
--- Stacktrace ---
at OSGeo.GDAL.Gdal.Open(String utf8_path, Access eAccess)
at GCDConsoleLib.Raster.Open(Boolean write) in D:\Code\gcd\gcd\GCDConsoleLib\Raster.cs:line 329
at GCDConsoleLib.Raster.Write[T](Int32 xOff, Int32 yOff, Int32 xSize, Int32 ySize, T[] buffer) in D:\Code\gcd\gcd\GCDConsoleLib\Raster.cs:line 688
at GCDConsoleLib.Internal.Operators.BilinearResample1.Run() in D:\Code\gcd\gcd\GCDConsoleLib\RasterOperators\Operators\BilinearResample.cs:line 79 at GCDConsoleLib.Internal.Operators.BilinearResample1.RunWithOutput() in D:\Code\gcd\gcd\GCDConsoleLib\RasterOperators\Operators\BilinearResample.cs:line 134TIFFWriteDirectoryTagData:IO error writing tag data
Windows: Microsoft Windows NT 6.2.9200.0
Date: 16/11/2022 3:21:33 pm

Paste the exception message you are getting from the app here. It really helps us.


## Anything else?

You can attach links to datasets:
https://www.dropbox.com/scl/fo/c87g8m90z58oojji665k3/h?dl=0&rlkey=pxukevj238qkyss1jo7w9c2k8 

All help and advice appreciated!
Thanks
Ian

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions