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

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

Open
roshanstha1996 opened this issue Jan 7, 2021 · 1 comment

Comments

@roshanstha1996
Copy link

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.

@xfischer
Copy link
Member

xfischer commented Jan 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants