comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Shapefile Opening Error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Shapefile Opening Error [message #76531] Fri, 17 June 2011 02:00 Go to next message
Patrick Leinenkugel is currently offline  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 Go to previous message
devin.white is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: wavelet using wv_dwt
Next Topic: Re: Looking for more elegant plot scaling...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:01:25 PDT 2025

Total time taken to generate the page: 0.01720 seconds