本文整理汇总了C++中GDALDriver::SetDescription方法的典型用法代码示例。如果您正苦于以下问题:C++ GDALDriver::SetDescription方法的具体用法?C++ GDALDriver::SetDescription怎么用?C++ GDALDriver::SetDescription使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GDALDriver
的用法示例。
在下文中一共展示了GDALDriver::SetDescription方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RegisterOGRMySQL
void RegisterOGRMySQL()
{
if (! GDAL_CHECK_VERSION("MySQL driver"))
return;
GDALDriver *poDriver;
if( GDALGetDriverByName( "MySQL" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "MySQL" );
poDriver->SetMetadataItem( GDAL_DCAP_VECTOR, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"MySQL" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"drv_mysqls.html" );
poDriver->pfnOpen = OGRMySQLDriverOpen;
poDriver->pfnCreate = OGRMySQLDriverCreate;
poDriver->pfnUnloadDriver = OGRMySQLDriverUnload;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例2: GDALRegister_GMT
void GDALRegister_GMT()
{
GDALDriver *poDriver;
if (! GDAL_CHECK_VERSION("GMT driver"))
return;
if( GDALGetDriverByName( "GMT" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "GMT" );
poDriver->SetMetadataItem( GDAL_DCAP_RASTER, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"GMT NetCDF Grid Format" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_various.html#GMT" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "nc" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
"Int16 Int32 Float32 Float64" );
poDriver->pfnOpen = GMTDataset::Open;
poDriver->pfnCreateCopy = GMTCreateCopy;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例3: GDALRegister_HF2
void GDALRegister_HF2()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "HF2" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "HF2" );
poDriver->SetMetadataItem( GDAL_DCAP_RASTER, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"HF2/HFZ heightfield raster" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_hf2.html" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "hf2" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList>"
" <Option name='VERTICAL_PRECISION' type='float' default='0.01' description='Vertical precision.'/>"
" <Option name='COMPRESS' type='boolean' default='false' description='Set to true to produce a GZip compressed file.'/>"
" <Option name='BLOCKSIZE' type='int' default='256' description='Tile size.'/>"
"</CreationOptionList>");
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->pfnOpen = HF2Dataset::Open;
poDriver->pfnIdentify = HF2Dataset::Identify;
poDriver->pfnCreateCopy = HF2Dataset::CreateCopy;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例4: GDALRegister_GS7BG
void GDALRegister_GS7BG()
{
if( GDALGetDriverByName( "GS7BG" ) != NULL )
return;
GDALDriver *poDriver = new GDALDriver();
poDriver->SetDescription( "GS7BG" );
poDriver->SetMetadataItem( GDAL_DCAP_RASTER, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"Golden Software 7 Binary Grid (.grd)" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC, "frmt_various.html#GS7BG" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "grd" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
"Byte Int16 UInt16 Float32 Float64" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->pfnIdentify = GS7BGDataset::Identify;
poDriver->pfnOpen = GS7BGDataset::Open;
poDriver->pfnCreate = GS7BGDataset::Create;
poDriver->pfnCreateCopy = GS7BGDataset::CreateCopy;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
示例5: GDALRegister_E00GRID
void GDALRegister_E00GRID()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "E00GRID" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "E00GRID" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"Arc/Info Export E00 GRID" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_various.html#E00GRID" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "e00" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->pfnOpen = E00GRIDDataset::Open;
poDriver->pfnIdentify = E00GRIDDataset::Identify;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例6: GDALRegister_R
void GDALRegister_R()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "R" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "R" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"R Object Data Store" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_r.html" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "rda" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES, "Float32" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList>"
" <Option name='ASCII' type='boolean' description='For ASCII output, default NO'/>"
" <Option name='COMPRESS' type='boolean' description='Produced Compressed output, default YES'/>"
"</CreationOptionList>" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->pfnOpen = RDataset::Open;
poDriver->pfnIdentify = RDataset::Identify;
poDriver->pfnCreateCopy = RCreateCopy;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例7: RegisterOGRCouchDB
void RegisterOGRCouchDB()
{
if( GDALGetDriverByName( "CouchDB" ) != NULL )
return;
GDALDriver *poDriver = new GDALDriver();
poDriver->SetDescription( "CouchDB" );
poDriver->SetMetadataItem( GDAL_DCAP_VECTOR, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME, "CouchDB / GeoCouch" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC, "drv_couchdb.html" );
poDriver->SetMetadataItem( GDAL_DMD_CONNECTION_PREFIX, "CouchDB:" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList/>");
poDriver->SetMetadataItem( GDAL_DS_LAYER_CREATIONOPTIONLIST,
"<LayerCreationOptionList>"
" <Option name='UPDATE_PERMISSIONS' type='string' description='Update permissions for the new layer.'/>"
" <Option name='GEOJSON ' type='boolean' description='Whether to write documents as GeoJSON documents.' default='YES'/>"
" <Option name='COORDINATE_PRECISION' type='int' description='Maximum number of figures after decimal separator to write in coordinates.' default='15'/>"
"</LayerCreationOptionList>");
poDriver->SetMetadataItem( GDAL_DMD_CREATIONFIELDDATATYPES,
"Integer Integer64 Real String Date DateTime "
"Time IntegerList Integer64List RealList "
"StringList Binary" );
poDriver->pfnIdentify = OGRCouchDBDriverIdentify;
poDriver->pfnOpen = OGRCouchDBDriverOpen;
poDriver->pfnCreate = OGRCouchDBDriverCreate;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
示例8: GDALRegister_ISIS2
void GDALRegister_ISIS2()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "ISIS2" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "ISIS2" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"USGS Astrogeology ISIS cube (Version 2)" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC, "frmt_isis2.html" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES, "Byte Int16 UInt16 Float32 Float64");
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList>\n"
" <Option name='LABELING_METHOD' type='string-select' default='ATTACHED'>\n"
" <Value>ATTACHED</Value>"
" <Value>DETACHED</Value>"
" </Option>"
" <Option name='IMAGE_EXTENSION' type='string' default='cub'/>\n"
"</CreationOptionList>\n" );
poDriver->pfnIdentify = ISIS2Dataset::Identify;
poDriver->pfnOpen = ISIS2Dataset::Open;
poDriver->pfnCreate = ISIS2Dataset::Create;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例9: GDALRegister_HDF5
CPL_C_END
/************************************************************************/
/* ==================================================================== */
/* HDF5Dataset */
/* ==================================================================== */
/************************************************************************/
/************************************************************************/
/* GDALRegister_HDF5() */
/************************************************************************/
void GDALRegister_HDF5()
{
GDALDriver *poDriver;
if( GDALGetDriverByName("HDF5") == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription("HDF5");
poDriver->SetMetadataItem(GDAL_DMD_LONGNAME,
"Hierarchical Data Format Release 5");
poDriver->SetMetadataItem(GDAL_DMD_HELPTOPIC,
"frmt_hdf5.html");
poDriver->SetMetadataItem(GDAL_DMD_EXTENSION, "hdf5");
poDriver->pfnOpen = HDF5Dataset::Open;
poDriver->pfnIdentify = HDF5Dataset::Identify;
GetGDALDriverManager()->RegisterDriver(poDriver);
}
}
示例10: GDALRegister_ERS
void GDALRegister_ERS()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "ERS" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "ERS" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"ERMapper .ers Labelled" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_ers.html" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
"Byte Int16 UInt16 Int32 UInt32 Float32 Float64" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList>"
" <Option name='PIXELTYPE' type='string' description='By setting this to SIGNEDBYTE, a new Byte file can be forced to be written as signed byte'/>"
"</CreationOptionList>" );
poDriver->pfnOpen = ERSDataset::Open;
poDriver->pfnCreate = ERSDataset::Create;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例11: GDALRegister_PAux
void GDALRegister_PAux()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "PAux" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "PAux" );
poDriver->SetMetadataItem( GDAL_DCAP_RASTER, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"PCI .aux Labelled" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_various.html#PAux" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
"Byte Int16 UInt16 Float32" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
"<CreationOptionList>"
" <Option name='INTERLEAVE' type='string-select' default='BAND'>"
" <Value>BAND</Value>"
" <Value>LINE</Value>"
" <Value>PIXEL</Value>"
" </Option>"
"</CreationOptionList>" );
poDriver->pfnOpen = PAuxDataset::Open;
poDriver->pfnCreate = PAuxDataset::Create;
poDriver->pfnDelete = PAuxDelete;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例12: GDALRegister_ECRGTOC
void GDALRegister_ECRGTOC()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "ECRGTOC" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "ECRGTOC" );
poDriver->SetMetadataItem( GDAL_DCAP_RASTER, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"ECRG TOC format" );
poDriver->pfnIdentify = ECRGTOCDataset::Identify;
poDriver->pfnOpen = ECRGTOCDataset::Open;
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_various.html#ECRGTOC" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "xml" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_SUBDATASETS, "YES" );
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例13: GDALRegister_XPM
void GDALRegister_XPM()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "XPM" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "XPM" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"X11 PixMap Format" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_various.html#XPM" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "xpm" );
poDriver->SetMetadataItem( GDAL_DMD_MIMETYPE, "image/x-xpixmap" );
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES,
"Byte" );
poDriver->pfnOpen = XPMDataset::Open;
poDriver->pfnCreateCopy = XPMCreateCopy;
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例14: GDALRegister_BSB
void GDALRegister_BSB()
{
GDALDriver *poDriver;
if( GDALGetDriverByName( "BSB" ) == NULL )
{
poDriver = new GDALDriver();
poDriver->SetDescription( "BSB" );
poDriver->SetMetadataItem( GDAL_DCAP_RASTER, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"Maptech BSB Nautical Charts" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC,
"frmt_various.html#BSB" );
poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
#ifdef BSB_CREATE
poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES, "Byte" );
#endif
poDriver->pfnOpen = BSBDataset::Open;
poDriver->pfnIdentify = BSBDataset::Identify;
#ifdef BSB_CREATE
poDriver->pfnCreateCopy = BSBCreateCopy;
#endif
GetGDALDriverManager()->RegisterDriver( poDriver );
}
}
示例15: RegisterOGRVFK
/*!
\brief Register VFK driver
*/
void RegisterOGRVFK()
{
if( !GDAL_CHECK_VERSION("OGR/VFK driver") )
return;
if( GDALGetDriverByName( "VFK" ) != nullptr )
return;
GDALDriver *poDriver = new GDALDriver();
poDriver->SetDescription( "VFK" );
poDriver->SetMetadataItem( GDAL_DCAP_VECTOR, "YES" );
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME,
"Czech Cadastral Exchange Data Format" );
poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "vfk" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC, "drv_vfk.html" );
poDriver->SetMetadataItem(GDAL_DMD_OPENOPTIONLIST,
"<OpenOptionList>"
" <Option name='SUPPRESS_GEOMETRY' type='boolean' description='whether to suppress geometry' default='NO'/>"
" <Option name='FILE_FIELD' type='boolean' description='whether to include VFK filename field' default='NO'/>"
"</OpenOptionList>");
poDriver->pfnOpen = OGRVFKDriverOpen;
poDriver->pfnIdentify = OGRVFKDriverIdentify;
GetGDALDriverManager()->RegisterDriver( poDriver );
}