<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16490"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT color=#0000ff
size=2 face=Arial>OK thank you very much</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT face=Arial><FONT
color=#0000ff size=2>and the last question : to have metadata, I use the
function </FONT><FONT face=Consolas><FONT color=#0000ff><FONT
size=2>band.GetMetadata<SPAN class=156065313-09012012>(<TD
class=paramtype></TD><FONT size=3><FONT color=#000000><FONT
face="Times New Roman"> <TD
class=paramname><EM>pszDomain).</EM></FONT></FONT></FONT></SPAN></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT face=Arial><FONT
face=Consolas><FONT color=#0000ff><FONT size=2><SPAN
class=156065313-09012012><FONT size=3><FONT color=#000000><FONT
face="Times New Roman"><EM></EM></FONT></FONT></FONT></SPAN></FONT></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><SPAN
class=156065313-09012012></TD></SPAN></SPAN><SPAN class=156065313-09012012><FONT
color=#0000ff size=2 face=Arial>But if i write "" in parameter of the
function, the default metadatas is not complete. Do you have
document that list <TD class=paramtype></TD><FONT size=3><FONT
color=#000000><FONT face="Times New Roman"> <TD class=paramname><EM>pszDomain
?</EM></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT color=#0000ff
size=2 face=Arial><FONT size=3><FONT color=#000000><FONT
face="Times New Roman"><EM></EM></FONT></FONT></FONT></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012></TD></SPAN><SPAN
class=156065313-09012012><FONT color=#0000ff size=2 face=Arial>Thank you for
your help</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=156065313-09012012><FONT color=#0000ff
size=2 face=Arial>Pascal</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=fr class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>De :</B> Chaitanya kumar CH
[mailto:chaitanya.ch@gmail.com] <BR><B>Envoyé :</B> vendredi 6 janvier 2012
14:53<BR><B>À :</B> Jaugeas, Pascal (External)<BR><B>Cc :</B>
gdal-dev@lists.osgeo.org<BR><B>Objet :</B> Re: [gdal-dev] Open Grib
File<BR></FONT><BR></DIV>
<DIV></DIV>Pascal,<BR><BR>The data is written into the buffer array. The
function returns the CE_None or CE_None.<BR><BR>
<DIV class=gmail_quote>On Fri, Jan 6, 2012 at 7:11 PM, Jaugeas, Pascal
(External) <SPAN dir=ltr><<A
href="mailto:pascal.jaugeas.External@cassidian.com">pascal.jaugeas.External@cassidian.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN>Hello,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>another problem
....</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>I try to read
data of a band of a grib File. I think , in C# dev, I must use ReadRaster
function:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>My code :
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN><FONT
color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT
color=#0000ff face=Consolas>
<P><FONT size=+0>for</FONT></P></FONT></FONT></FONT><FONT size=+0><FONT
face=Consolas><FONT color=#000000 face=Consolas>(</FONT></FONT><FONT
color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT
color=#0000ff face=Consolas>int</FONT></FONT></FONT></FONT><FONT
face=Consolas><FONT face=Consolas><FONT color=#000000> j = 1; j <= rows;
j++)</FONT>
<P><FONT size=+0>{</FONT></P>
<P></P></FONT></FONT><FONT size=+0><FONT face=Consolas><FONT
face=Consolas><FONT face=Consolas>for</FONT></FONT></FONT><FONT
face=Consolas><FONT face=Consolas> (</FONT></FONT><FONT face=Consolas><FONT
face=Consolas><FONT face=Consolas>int</FONT></FONT></FONT><FONT face=Consolas>
k = 1; k <= cols; k++)</FONT></FONT>
<P><SPAN><FONT size=+0>{</FONT></SPAN><FONT color=#008000><FONT
color=#008000><FONT color=#008000></FONT></FONT></FONT></P></SPAN></FONT>
<P><FONT size=+0><FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff
face=Consolas>byte</FONT></FONT></FONT><FONT face=Consolas>[] buffer
={1,1};</FONT></FONT></P>
<P><FONT size=+0><FONT color=#2b91af><FONT color=#2b91af><FONT color=#2b91af
face=Consolas>CPLErr</FONT></FONT></FONT><FONT face=Consolas> err =
band.ReadRaster(0, 0, cols, rows, buffer, cols, rows, 1, 1);</FONT></FONT></P>
<P><FONT size=+0><FONT face=Consolas><FONT color=#0000ff><FONT
color=#0000ff><FONT color=#0000ff>double</FONT></FONT></FONT> val = (<FONT
color=#0000ff><FONT color=#0000ff><FONT
color=#0000ff>double</FONT></FONT></FONT></FONT><FONT face=Consolas>)band.
ReadRaster(0, 0, cols, rows, buffer, cols, rows, 1, 1); </FONT></FONT></P>
<P><FONT face=Consolas>}</FONT></P>
<P><FONT face=Consolas>}</FONT></P></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>But, val stay at
0 and err is none.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>Do you have an
idea ? buffer is important ?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>Tank you again
for any help</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff face=Arial><SPAN>Best
regards</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN>Pascal</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial><SPAN></SPAN></FONT> </DIV><BR>
<DIV dir=ltr lang=fr align=left>
<HR>
<FONT face=Tahoma><B>De :</B> <A
href="mailto:gdal-dev-bounces@lists.osgeo.org"
target=_blank>gdal-dev-bounces@lists.osgeo.org</A> [mailto:<A
href="mailto:gdal-dev-bounces@lists.osgeo.org"
target=_blank>gdal-dev-bounces@lists.osgeo.org</A>] <B>De la part de</B>
Chaitanya kumar CH<BR><B>Envoyé :</B> jeudi 5 janvier 2012 17:25
<DIV>
<DIV class=h5><BR><B>À :</B> Jaugeas, Pascal
(External)<BR><B>Cc :</B> <A href="mailto:gdal-dev@lists.osgeo.org"
target=_blank>gdal-dev@lists.osgeo.org</A><BR><B>Objet :</B> Re:
[gdal-dev] Open Grib File<BR></DIV></DIV></FONT><BR></DIV>
<DIV>
<DIV class=h5>
<DIV></DIV>Pascal,<BR><BR>Use the GDALMajorObject::GetMetaData()
method[1].<BR><BR>You might want to go through the GDAL API docs[2] a bit
throughly.<BR><BR>[1]: <A href="http://www.gdal.org/classGDALMajorObject.html"
target=_blank>http://www.gdal.org/classGDALMajorObject.html</A><BR>[2]: <A
href="http://www.gdal.org/hierarchy.html"
target=_blank>http://www.gdal.org/hierarchy.html</A><BR><BR>
<DIV class=gmail_quote>On Thu, Jan 5, 2012 at 7:40 PM, Jaugeas, Pascal
(External) <SPAN dir=ltr><<A
href="mailto:pascal.jaugeas.External@cassidian.com"
target=_blank>pascal.jaugeas.External@cassidian.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff face=Arial>I have another
problem.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff face=Arial>After open grib
file, I have a DataSet.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff face=Arial>This dataset
give the quantities of row, col and band.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff face=Arial>For each band,
I want to know the heading. In a band of a grib file, there are 3 rows
for heading, not counting by the dataset.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff face=Arial>Do you know
how I can do that ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff face=Arial>Thanks and
regards,</FONT></SPAN></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff
face=Arial></FONT></SPAN> </DIV><BR>
<DIV dir=ltr lang=fr align=left>
<HR>
<FONT face=Tahoma><B>De :</B> Chaitanya kumar CH [mailto:<A
href="mailto:chaitanya.ch@gmail.com"
target=_blank>chaitanya.ch@gmail.com</A>] <BR><B>Envoyé :</B> jeudi 5
janvier 2012 13:00<BR><B>À :</B> Jaugeas, Pascal
(External)<BR><B>Cc :</B> <A href="mailto:gdal-dev@lists.osgeo.org"
target=_blank>gdal-dev@lists.osgeo.org</A><BR><B>Objet :</B> Re:
[gdal-dev] Open Grib File<BR></FONT><BR></DIV>
<DIV></DIV></DIV>
<DIV>
<DIV><SPAN><FONT face=Consolas>Pascal,<BR><BR>First check if your file works
with the gdalinfo utility. Set the environment variable CPL_DEBUG to ON to
get more detailed reports on events.<BR><BR>Check if you get the same error
with another grib file and another format file.<BR><BR></FONT></SPAN><BR>
<DIV class=gmail_quote>On Thu, Jan 5, 2012 at 2:50 PM, Jaugeas, Pascal
(External) <SPAN dir=ltr><<A
href="mailto:pascal.jaugeas.External@cassidian.com"
target=_blank>pascal.jaugeas.External@cassidian.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<DIV><SPAN><FONT face=Arial>Hello,</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial>I develop with Gdal for
.Net.</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial>And I try to read a grib File (ed 1) like
this : <FONT color=#2b91af face=Consolas><FONT color=#2b91af
face=Consolas><FONT color=#2b91af face=Consolas>
<P>Dataset</P></FONT></FONT></FONT><FONT face=Consolas><FONT
face=Consolas>ds = </FONT></FONT><FONT color=#2b91af face=Consolas><FONT
color=#2b91af face=Consolas><FONT color=#2b91af
face=Consolas>Gdal</FONT></FONT></FONT><FONT face=Consolas><FONT
face=Consolas>.Open(dataSourcePath, </FONT></FONT><FONT color=#2b91af
face=Consolas><FONT color=#2b91af face=Consolas><FONT color=#2b91af
face=Consolas>Access</FONT></FONT></FONT><FONT face=Consolas><FONT
face=Consolas>.GA_Update);</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial>with <FONT face=Consolas>dataSourcePath is the
path of grib file (.grb).</FONT></FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Consolas>But I have an error in debug : "...
not recognised as a supported file format."</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Consolas>Is this method correct to have a dataset of
a grib file ?</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Consolas>Thank you for your
help,</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Consolas>Best Regards,</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Consolas></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Consolas>Pascal Jaugeas</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN><FONT
face=Arial></FONT></SPAN> </DIV></DIV><BR>_______________________________________________<BR>gdal-dev
mailing list<BR><A href="mailto:gdal-dev@lists.osgeo.org"
target=_blank>gdal-dev@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
target=_blank>http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Best regards,<BR>Chaitanya kumar CH.<BR><BR><A
href="tel:%2B91-9494447584" target=_blank
value="+919494447584">+91-9494447584</A><BR>17.2416N
80.1426E<BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>--
<BR>Best regards,<BR>Chaitanya kumar CH.<BR><BR><A href="tel:%2B91-9494447584"
target=_blank value="+919494447584">+91-9494447584</A><BR>17.2416N
80.1426E<BR></DIV></DIV></DIV><BR>_______________________________________________<BR>gdal-dev
mailing list<BR><A
href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
target=_blank>http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Best regards,<BR>Chaitanya kumar
CH.<BR><BR>+91-9494447584<BR>17.2416N 80.1426E<BR></BODY></HTML>