<DIV><BR><B><I>Frank Warmerdam &lt;warmerdam@pobox.com&gt;</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>One thing to keep in mind is that VRT capabilities can all be taken advantage<BR>of by just constructing the VRT XML, without having to expose the C++<BR>entry points to the various VRT classes. So my suggestion is that instead<BR>of adding a bunch of entry points into the VRT classes from VB6, that<BR>you (or we) just prepare the corresponding VRT XML and then pass that<BR>to the GDAL.Open() method. The VRT tutorial at:<BR><BR>http://www.gdal.org/gdal_vrttut.html<BR><BR>should give some useful details. I am also happy to help out as needed.<BR><BR>Frank,</P>
<P>I have created the GDAL VB App Dev group on&nbsp;Yahoo Groups and I am cross-posting.&nbsp; I have looks at the tutorials as you suggested above, and loaded the gdalvbtest project to run.&nbsp; Realizing I would need to understand the VRT before moving into saving out as Kakadu JP2, I wanted to see if I could read&nbsp;the attributes&nbsp;from a sample JP2 with the gdalvbtest project.&nbsp; I found out that gdal12vb.dll doesn't have the JP2KAK driver built in.&nbsp; Is it possible you could compile a gdal12vb.dll with the Kakadu driver?</P>
<P>&nbsp;</P>
<P>My strategy is to first determine what will go into the VRT XML.&nbsp; Most of the items needed are already being generated by&nbsp;my code.&nbsp; I am confused how the GDAL.Open() function will work with the XML.&nbsp; Shouldn't it be more like CreateCopy()?&nbsp; Even then, I really don't understand how the XML gets used unless something like SetGeoTransform() is involved.</P>
<P>&nbsp;</P>
<P>Appreciate any help you provide.</P>
<P>&nbsp;</P>
<P>Gerald "Buck" Buckmaster</P></BLOCKQUOTE></DIV><p>
                <hr size=1> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Yahoo! Music Unlimited - Access over 1 million songs. Try it free.</a>