<DIV>Thanks for your help, I modify those params and get right return values now.</DIV>
<DIV> </DIV>
<DIV>As I want to write a function, which can automatically return a rusult, that whether the input raster file has a set of subdataset.</DIV>
<DIV>I use a metadata item of "subdataset", and this value is known from another program but not api doc.</DIV>
<DIV> </DIV>
<DIV>By generally reading the api doc, and as a freshman, I find it hard to get exact value of those const char params and options.</DIV>
<DIV> </DIV>
<DIV>Do you have a good idea?<BR><BR></DIV>
<DIV></DIV><BR><PRE>在2009-10-16 01:50:33,"Even Rouault" <even.rouault@mines-paris.org> 写道:
>Selon Chaitanya kumar CH <chaitanya.ch@gmail.com>:
>
>Atubar
>
>As Chaintanya says and the doc recommands it, you must use the macro and not
>string values directly. For one good reason : #define ODrCCreateDataSource
>expands to "CreateDataSource"... So "ODrCCreateDataSource" is an invalid input
>for OGRSFDriver::TestCapability().
>
>You're also mentionning functions that take strings as arguments but you don't
>know which values are valid. Could you be more explicit about which functions ?
>Generally the doc should make it clear about the expected meaning / accepted
>values. But things can always be improved ;-)
>
>Even
>
>> 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@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@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>> >
>>
>>
>>
>> --
>> Best regards,
>> Chaitanya kumar CH.
>>
>
>
</PRE><br><br><span title="neteasefooter"/><hr/>
<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1254,611,23&cid=145,4,1&sid=1351&show=ignore&url=http://tx2.163.com/fab.html">09年新晋3D主流网游《天下贰》,网易六年亿资打造</a>
</span>