DEM.Net icon indicating copy to clipboard operation
DEM.Net copied to clipboard

When I click on Generate Real Point, Null Reference Exception shows in _rasterIndexServiceResolver.

Open roshanstha1996 opened this issue 4 years ago • 1 comments

Describe the bug Null reference exception is shown in _rasterIndexServiceResolver when I click on "Generate Real Points" button. Null value is set in _rasterIndexServiceResolver during initialization of RasterService.cs class of DEM.NET.Core project.

To Reproduce Steps to reproduce the behavior:

  1. Start the project in DEM.NET.TestWinForm and click on 'Générer un point réel' button.
  2. It goes to GetPointsTestsByBBox() method of EchantillonsTestsServices.cs in DEM.NET.TestWinForm project.
  3. In GetPointsTestsByBBox() method, DownloadMissingFiles() is called from ElevationServices class.
  4. And then in DownloadMissingFiles() method, GenerateReport() method is called in which _rasterIndexServiceResolver value is set to null which shows Null reference exception.

Expected behavior I want to generate real point and create dtm models.

Screenshots My Error screenshot Capture

Desktop (please complete the following information):

  • OS: [e.g. Windows 10 Home]
  • Browser [e.g. chrome]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. Samsung Galaxy J2]
  • OS: [e.g. Android]
  • Browser [e.g. stock browser]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

roshanstha1996 avatar Jan 07 '21 12:01 roshanstha1996

Hi Roshan, DEM Net is about computing FROM dtm, not generating dtm. What are you trying to do exactly ?

This winform sample is there to test Triangle Irregular networks. Will try to see why you're getting the error.

xfischer avatar Jan 08 '21 14:01 xfischer