<div dir="ltr"><br clear="all"><div><div dir="ltr"><div style>Hi everyone!<br></div><div style><br>I have a question about using the method OGRLayer::Layer().<br><br>Following i show you a protion of code:</div><div><br></div>
<div><div>/*** */</div><div>// Create geometry from wkt</div><div>OGRGeometryFactory::createFromWkt(&pwkt, pSpatialRef, &pgeometry);</div><div><br></div><div>/** Configure geom</div><div>pCurrentFeature_->SetGeometry(&pgeometry);</div>
<div><br></div><div>if (pCurrentLayer_->SetFeature(pCurrentFeature_) != OGRERR_NONE) {</div><div> SHOW_ERROR(message_LAYER_MODIFIED_CLOSE_ERROR);</div><div>}</div></div><div><br></div><div style>1: The SetFeature, returns with an error, but if I open the .DBF file I found that the insert was made.</div>
<div style>Then... why I have the Feature set?, taking account that the method is returning FAIL.</div><div style><br></div><div style>2: Suppose that i have two features, and I open it and started to edit a third feature. Whats</div>
<div style> wrong in this case, is that after the insert, the value of the FID is a very very very big number. Example:<br><br>Feature 1 = FID = 0;<br>Feature 2 = FID = 1;<br>Feature 3 = FID = 2893772.<br><br>I dont have any clue about whats happening, any kind of data will be appreciated.</div>
<div style><br></div><div style>Thanks in advance, </div><div><br></div><div>Mauro Pisano<br></div><div>SUR Emprendimientos Tecnológicos</div><div><br></div><div>Perú 345 Piso 5to Oficina "B" (C1067AAG)</div><div>
Ciudad de Buenos Aires, Argentina</div><div>Tel. +54 (11) 4342-2976/84</div><div><a href="mailto:mauropisano@suremptec.com.ar" style="color:rgb(17,85,204)" target="_blank">mauropisano@suremptec.com.ar</a></div><div><a href="http://www.suremptec.com/" style="color:rgb(17,85,204)" target="_blank">www.suremptec.com</a></div>
</div></div>
</div>