<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Joaquin Perez Valera</b> <<a href="mailto:joaquinperezvalera@gmail.com">joaquinperezvalera@gmail.com</a>><br>
Date: 20-feb-2008 20:17<br>Subject: Re: Adding a polygon to a shapefile<br>To: <a href="mailto:shapelib@lists.maptools.org">shapelib@lists.maptools.org</a><br><br></span>Hi Tom<br><br>With your corrections and suggestions the program runs very good, but exists a "but".<br>
When I want to view the shapefile from the ArcCatalog the program sends and error message <br>"Error openning feature class. The number of shapes does not match the number of fields of table records."<br>
<br>I suposse exists a shape, but in the dbf file there is nothing to read.<br>But, the program you said "shapeviewer" can open the shape, and I can view the shape in the file. <br>And after from in file menu I clicked "create an empty dbf file", and then I can read the shape with ArcCatalog. But I can't do it forever.<br>

<br>I can't understand, I guess this line creates a dbf file<br>"hDBF = DBFCreate( shape_name.c_str());"<br><br>but why not?<br><br>There is another time a problem with my code?<br><br>I must write a record for each shape in the file?<br>

<br>Can you send me an example? or teach me how?<br><br>Well, with these results I can be happy, but not totally.<br><br>Thanks and Cheers<br><br>Joaquin<br><br><br>