<div dir="ltr"><div><div><div>Hi, I am trying to create a vector format (i.e. ESRI Shapefile) from laser file (.las), and it works fine, but when I try to overwrite the file I get the following error:<br><br>ERROR 1: Layer 'output' already exists<br>terminate called after throwing an instance of 'std::runtime_error'<br>  what():  output layer creation failed<br>Aborted (core dumped)<br><br clear="all"></div>I am using the next code to create the layer:<br><br>OGRSFDriverH formatTranslateDriver = OGRGetDriverByName(argFormat->sval[0]);<br><br>OGRDataSourceH dataset = OGR_Dr_CreateDataSource(formatTranslateDriver, argOutput->sval[0], 0);<br><br>OGRLayerH layer = OGR_DS_CreateLayer(dataset, layerName.c_str(), 0, wkbPoint25D, 0);<br><br></div>Any idea about this error?<br><br></div>Thanks.<br><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">Carlos I. Piury<br><br>Computer <span lang="en"><span>engineer</span></span></div></div>
</div></div></div></div></div>