Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
dee4fe0a
Commit
dee4fe0a
authored
Jan 26, 2012
by
Luis Kornblueh
Browse files
Add reading of horizontal file uuid reading.
parent
3b2187e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
dee4fe0a
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment