atubar,<br><br>Here is a sample. <a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/ogr2ogr.cpp#L401">http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/ogr2ogr.cpp#L401</a><br>The preferred #define macro forms are used here. (<a href="http://www.gdal.org/ogr/classOGRSFDriver.html#6c37cb7552902cd27cd6d4b904d7c744">http://www.gdal.org/ogr/classOGRSFDriver.html#6c37cb7552902cd27cd6d4b904d7c744</a>)<br>
<br>As per your problem, perhaps the drivers you tested did indeed not support creation and deletion. Which drivers were they?<br><br><div class="gmail_quote">2009/10/15 atubar <span dir="ltr"><<a href="mailto:atubar@126.com">atubar@126.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Hi, </p>
<p>I want to take a test about the capability of creation and deletion for all supported formats of ogr .</p>
<p>The code like below, The parameter "const char" are copied from api doc. But all flag return a value of 0, why ? </p>
<p> int flag;</p>
<p> flag=poDriver->TestCapability("ODrCCreateDataSource");<br> if(flag==TRUE)<br> cout<<endl<<" --Supported Creation. "<<endl;<br> flag=poDriver->TestCapability("ODrCDeleteDataSource");<br>
if(flag==TRUE)<br> cout<<endl<<" --Supported Deletion. "<<endl;</p>
<p>Many funcions need const char * params, is there a list of these values ?</p>
<div><br><br></div><br><br><span title="neteasefooter"></span><hr>
<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1256,612,23&cid=146,4,1&sid=1353&show=ignore&url=http://tx2.163.com/fab.html" target="_blank">网易历六年耗亿资打造,3D国韵网游《天下贰》,免费领光盘</a>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>