Обновить информацию о картах GCM с одноимённой исходной картой.
#include <gis/gis_driver.h>int gis_common_driver_update_clipped_map_info( gis_driver_ctx_t *driver_ctx, gis_core_map_information_t *map_info );
formatctl
Функция обновляет поля gcm_clip_* в структуре map_info.
gis_driver_ctx_t driver_ctx;driver_ctx.id = GIS_CORE_DRIVERS_SXF_LOCAL;driver_ctx.prefix = "[SXF_local_driver] ";gis_core_map_information_t *map_info; // must be initializedchar *suffix = calloc( strlen( "sxf" ) + strlen( ".local."GIS_GCM_FILE_EXTENSION ) + 1, sizeof( char ) );if ( !suffix ){gis_helper_debug_write( GIS_DEBUG_LEVEL_ERROR, DRIVER_PREFIX,"Memory allocation error [%s()]", __FUNCTION__ );return ENOMEM;}strcpy( suffix, "sxf" );driver_ctx.driver_gcm_suffix = strcat( suffix, ".local."GIS_GCM_FILE_EXTENSION );if ( gis_common_driver_update_clipped_map_info( &driver_ctx, map_info ) != EOK ){gis_helper_debug_write_lvl( GIS_DEBUG_LEVEL_ERROR, driver_ctx.prefix,"Update clipped mapinfo failed [%s()]", __FUNCTION__ );return EFAULT;}free( (char*)driver_ctx.driver_gcm_suffix );
ПК ЦКИ для ЗОСРВ «Нейтрино»
1.3
gis_driver_ctx_t, gis_core_map_information_t
Предыдущий раздел: Описание API картографического фреймворка