[gdal-dev] how to test the creation and deletion capability of ogr?

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Oct 15 13:13:08 EDT 2009


atubar,

Here is a sample.
http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/ogr2ogr.cpp#L401
The preferred #define macro forms are used here. (
http://www.gdal.org/ogr/classOGRSFDriver.html#6c37cb7552902cd27cd6d4b904d7c744
)

As per your problem, perhaps the drivers you tested did indeed not support
creation and deletion. Which drivers were they?

2009/10/15 atubar <atubar at 126.com>

> Hi,
>
> I want to take a test about the capability of creation and deletion for
> all supported formats of ogr .
>
> The code like below,  The parameter "const char" are copied from api doc.
> But all flag return a value of 0, why ?
>
>   int flag;
>
>   flag=poDriver->TestCapability("ODrCCreateDataSource");
>   if(flag==TRUE)
>    cout<<endl<<"  --Supported Creation. "<<endl;
>   flag=poDriver->TestCapability("ODrCDeleteDataSource");
>   if(flag==TRUE)
>    cout<<endl<<"  --Supported Deletion. "<<endl;
>
> Many funcions need const char * params, is there a list of these values ?
>
>
>
>
> ------------------------------
> 网易历六年耗亿资打造,3D国韵网游《天下贰》,免费领光盘<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>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091015/fe159dc9/attachment.html


More information about the gdal-dev mailing list