<DIV><BR><B><I>Frank Warmerdam <warmerdam@pobox.com></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 Yahoo Groups and I am cross-posting. I have looks at the tutorials as you suggested above, and loaded the gdalvbtest project to run. Realizing I would need to understand the VRT before moving into saving out as Kakadu JP2, I wanted to see if I could read the attributes from a sample JP2 with the gdalvbtest project. I found out that gdal12vb.dll doesn't have the JP2KAK driver built in. Is it possible you could compile a gdal12vb.dll with the Kakadu driver?</P>
<P> </P>
<P>My strategy is to first determine what will go into the VRT XML. Most of the items needed are already being generated by my code. I am confused how the GDAL.Open() function will work with the XML. Shouldn't it be more like CreateCopy()? Even then, I really don't understand how the XML gets used unless something like SetGeoTransform() is involved.</P>
<P> </P>
<P>Appreciate any help you provide.</P>
<P> </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>