dem-net / DEM.Net

Digital Elevation model library in C#. 3D terrain models, line/point Elevations, intervisibility reports
https://elevationapi.com
Other
300 stars 56 forks source link

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

Open roshanstha1996 opened 3 years ago

roshanstha1996 commented 3 years ago

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):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

xfischer commented 3 years ago

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.