Skip to content
Snippets Groups Projects
Commit dee4fe0a authored by Luis Kornblueh's avatar Luis Kornblueh
Browse files

Add reading of horizontal file uuid reading.

parent 3b2187e9
No related branches found
No related tags found
No related merge requests found
......@@ -454,6 +454,7 @@ void gribapiGetGrid(grib_handle *gh, grid_t *grid)
}
case GRID_REFERENCE:
{
char uuid[17];
char reference_link[8192];
size_t len = sizeof(reference_link);
reference_link[0] = 0;
......@@ -468,6 +469,12 @@ void gribapiGetGrid(grib_handle *gh, grid_t *grid)
if ( strncmp(reference_link, "file://", 7) == 0 )
grid->reference = strdupx(reference_link);
}
len = (size_t) 16;
uuid[16] = 0;
if ( grib_get_string(gh, "uuidOfHGrid", uuid, &len) == 0)
{
strncpy(grid->uuid, uuid, 16);
}
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment