<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi there,<br><br>What is the best option to create in memory VRT Dataset with the GDAL Java API?<br><br>I would like to do thing like gdal_translate does [0], band selection and window cropping for example. <br><br>It seems like the VRTDataset class is not wrapped in Java, so I would need to write the XML myself or use a regular GDAL Dataset clas, ex.:<br><br>Dataset ds = dal.getDriverByName("VRT").Create("/vsimem/xxx.vrt", 255, 255);<br><br>But there are some methods in VRTDataset that GDALDataset doesn't have, so I think I am going with the raw XML option.<br><br>Any better idea?<br><br>Best regards,<br><br>Ivan<br><br>ref. :<br><br>[0] <a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp#L1095" target="_blank">http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp#L1095</a><br><br>                                           </div></body>
</html>