Shapefile Opening Error [message #76531] |
Fri, 17 June 2011 02:00  |
Patrick Leinenkugel
Messages: 5 Registered: June 2011
|
Junior Member |
|
|
Hi,
I created a new polygone shapefile with IDL and everything works fine.
I can open it with ESRI ArcGIS and work with it. However, very often
at some stage, when I want to open the shapefile again the following
error message appears:
'Error opening feature class
Number of shapes does not match the number of table records
Number of shapes does not match the number of table records'
(The third line is no writing mistake, it appears twice)
Can someone help me? Is it me or is it ArcGIS, doing something wrong:)
Cheers,
Patrick
|
|
|
Re: Shapefile Opening Error [message #76654 is a reply to message #76531] |
Sat, 18 June 2011 06:00  |
devin.white
Messages: 50 Registered: March 2007
|
Member |
|
|
I think IDL's shapefile library expects there to be a valid DBF
attribute entry for every entity in the shapefile. If you don't need
to convey anything useful in the DBF, just create an attribute called
"ID" and dump a sequentially increasing integer in there for each
entity (e.g., first entity gets 0, second gets 1, etc.). You'll have
to use IDLffShape's ::addAttribute and ::setAttributes methods to do
this.
On Jun 17, 5:00 am, Patrick Leinenkugel <lei...@googlemail.com> wrote:
> Hi,
>
> I created a new polygone shapefile with IDL and everything works fine.
> I can open it with ESRI ArcGIS and work with it. However, very often
> at some stage, when I want to open the shapefile again the following
> error message appears:
>
> 'Error opening feature class
> Number of shapes does not match the number of table records
> Number of shapes does not match the number of table records'
>
> (The third line is no writing mistake, it appears twice)
>
> Can someone help me? Is it me or is it ArcGIS, doing something wrong:)
> Cheers,
> Patrick
|
|
|