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

Error Message #300

Closed
emma994 opened this Issue Jul 30, 2018 · 8 comments

Comments

Projects
None yet
3 participants
@emma994
Copy link

emma994 commented Jul 30, 2018

After adding the raster I get this error message:

Attempted to divide by zero.
--- Stacktrace ---
at System.Decimal.FCallDivide(Decimal& d1, Decimal& d2)
at GCDConsoleLib.ExtentRectangle.GetDivisibleExtent() in D:\Code\gcd\gcd\GCDConsoleLib\ExtentRectangle.cs:line 376
at GCDCore.UserInterface.SurveyLibrary.ExtentImporter.Initialize(Decimal cellWidth)
at GCDCore.UserInterface.SurveyLibrary.ExtentImporter.set_InputExtent(ExtentRectangle value)
at GCDCore.UserInterface.SurveyLibrary.frmImportRaster.OnRasterChanged(Object sender, PathEventArgs e)
--- Exception Data ---
ArcMap = 10.5.1.7333
GCD = 7.1.1.0
Windows: Microsoft Windows NT 6.2.9200.0
Date: 30/07/2018 10:08:13

@philipbaileynar

This comment has been minimized.

Copy link
Contributor

philipbaileynar commented Aug 2, 2018

Hi @emma994 can you please zip and send one of your rasters please?

Respond and let me know if it's too big or you don't have a means of sending it and I can help out.

@emma994

This comment has been minimized.

Copy link

emma994 commented Aug 7, 2018

Hi @philipbaileynar
I cannot share the files as they are too big. Would you be willing to share your email address with me and I can send you a link to onedrive to access it.
Thanks,
Emma

@philipbaileynar

This comment has been minimized.

Copy link
Contributor

philipbaileynar commented Aug 7, 2018

@emma994

This comment has been minimized.

Copy link

emma994 commented Aug 8, 2018

Thanks Philip, I have granted you access to the one drive. Let me know if you cannot access it.

@philipbaileynar

This comment has been minimized.

Copy link
Contributor

philipbaileynar commented Aug 22, 2018

Hi @emma994 I just tried downloading the file and OneDrive/SharePoint won't let me because it is larger than 25Mb. Do you have another way of getting this to me please?

@philipbaileynar

This comment has been minimized.

Copy link
Contributor

philipbaileynar commented Aug 22, 2018

@emma994 found a way to get it!

The problem is related to the fact that the data are unprojected and stored in decimal degrees. We are working on a proper warning message instead of a hard error, but we recommend that you reproject into a non-geopgrahic projection such as the British National Grid or Universal Transverse Meractor.

GCD requires projected data that is represented using linear units, as opposed to angular units, so that it can calculate accurate areas and volumes.

MattReimer added a commit that referenced this issue Aug 22, 2018

@philipbaileynar

This comment has been minimized.

Copy link
Contributor

philipbaileynar commented Aug 22, 2018

Not withstanding that GCD should not be used with angular coordinates, the fix for this error so that GCD does not crash with very small cell widths will be part of the next GCD release. Closing this issue.

@MattReimer MattReimer added this to the 7.1.x Next Release milestone Aug 23, 2018

@emma994

This comment has been minimized.

Copy link

emma994 commented Sep 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment