Distance Internal Error when creating coverage layer

105 views
Skip to first unread message

Matthew Nuttall

unread,
Sep 9, 2014, 7:01:49 AM9/9/14
to distance...@googlegroups.com
Dear all, 

I am attempting to run some analyses using the DSM engine in Distance 6.0.  I have got as far as getting my data in, and my study area layer and transect layer appear to be loaded in without any problems.  I have now got to the stage where I am trying to create the coverage layer, created as a child of the Study Area layer.  However, when I click "coverage" from the "Layer type" drop down menu in the "Create New Layer" dialogue box, I get the following error message:

The following internal error has occurred in Distance:

Record '1' not found.
(Error raised from: Distance.ClsGrid.SetDefault)
(Error source: D6DbEng.DataLayer.RecordShape)
(Error number: -2147214294)

After a quick Google search I have found a bug report from 2012 on bugzila - bug no.106 (http://www.ruwpa.st-and.ac.uk/distance/bugzilla/show_bug.cgi?id=106)

Does anyone know whether this error message has been caused by me doing something wrong, or is it an actual bug?  If it is, is there a way to fix it?

Thanks in advance

Matt

Eric Rexstad

unread,
Sep 9, 2014, 7:21:44 AM9/9/14
to Matthew Nuttall, distance...@googlegroups.com
Matt:

Yes, I believe we have seen that one before.  The "Record 1 not found" message is a give-away that the shapefile you used to define your study area layer lacks a field called "LinkID".

Have a look at the section on "Importing Existing GIS Data | Prepare the Shapefile" in Chapter 5 of the Users Guide.  That is on page 62 of the users guide that ships with Distance 6.2 release 1.  This describes the creation of this mandatory field.

The coverage grid is looking at your study area shape file to determine the area onto which to drop a mesh of points presumably for your prediction grid layer.

Let us know if that solves the problem.
--
You received this message because you are subscribed to the Google Groups "distance-sampling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distance-sampl...@googlegroups.com.
To post to this group, send email to distance...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/a73cb661-ceef-47cb-8424-91861b45eeda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Eric Rexstad
Research Unit for Wildlife Population Assessment
Centre for Research into Ecological and Environmental Modelling
University of St. Andrews
St. Andrews Scotland KY16 9LZ
+44 (0)1334 461833
The University of St Andrews is a charity registered in Scotland : No SC013532

Matthew Nuttall

unread,
Sep 9, 2014, 8:16:47 AM9/9/14
to distance...@googlegroups.com, mnut...@wcs.org, eric.r...@st-andrews.ac.uk, er...@st-andrews.ac.uk
Hi Eric, 

Yes that appeared to be the problem - I added that field and all seems to be working fine.  Thanks for your help and quick response.

Best

Matt

nikunj jambu

unread,
Dec 7, 2015, 3:26:53 AM12/7/15
to distance-sampling, mnut...@wcs.org, eric.r...@st-andrews.ac.uk, er...@st-andrews.ac.uk
hi Matt,

i am getting the same error, at the same stage. however, i did create the new field called LinkID with qgis lyon and still gives the error.. anything i am doing wrong here?

looking forward to your reply
Reply all
Reply to author
Forward
0 new messages