Lists available coordinate systems in a given category.
struct resbuf*
ade_projlistcrdsysts(
char* categoryName);
Returns a list of available coordinate systems or NULL.
| categoryname | Coordinate system code, eight characters. |
The following sample parses the resbuf returned by ade_projlistcrdsysts() and prints the value for the specified option. Then it releases the resbuf, as required.
char* pszCategoryName = "Lat Longs";
struct resbuf* pCoordSysRb = ade_projlistcrdsysts(pszCategoryName);
if(pCoordSysRb != NULL){
acutPrintf(
"\nThe following coordinate system(s) have been detected for the %s catagory:"
, pszCategoryName);
struct resbuf* rb = pCoordSysRb;
while(rb != NULL) {
acutPrintf(
"\n\n\t %s"
, rb->resval.rstring);
rb = rb->rbnext;
}
}
else
{
acutPrintf(
"\nNo coordinate system(s) have been detected for the %s catagory: %s"
, pszCategoryName);
}
acutRelRb(pCoordSysRb);


