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

Source code compilation errors #100

Closed muhammadawais95 closed 2 years ago

muhammadawais95 commented 2 years ago

Hi, I am trying to compile the source code to run the DEM.Net.TestWinForm project. I am getting the following errors.

Screenshot 2022-05-19 194915

Can someone please guide how to resolve them?

xfischer commented 2 years ago

Yes, I'm the one in charge here. WinForms project is here for test purposes, I'll fix compilation, sorry about that.

What are you trying to achieve ?

muhammadawais95 commented 2 years ago

Thanks for the quick response. I am trying to load a SRTM DEM file. Just wanted to run DEM.Net.TestWinForm to understand the working of the library.

xfischer commented 2 years ago

Build is fixed. WinForms project is outdated, but if you want to give it a try, here's how :

image

At step 2, the DEM files required to run the sample will be downloaded (a few seconds to wait). At last step, a 3D file (.glb) will be generated under bin\debug\test3D

Let me know if you need more help.

muhammadawais95 commented 2 years ago

Thank you @xfischer. It is now working. I also had a look at samples and they helped a lot.