<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style><div dir="ltr">Do we have plans to add those entries to the GDAL API (C, Java, etc.)?<br><br>---------- \...\GDAL\TRUNK\FRMTS\VRT\GDAL_VRT.H<br>VRTDatasetH CPL_DLL CPL_STDCALL VRTCreate( int, int );<br>CPLXMLNode CPL_DLL * CPL_STDCALL VRTSerializeToXML( VRTDatasetH, const char * );<br>CPLErr CPL_STDCALL VRTAddSource( VRTSourcedRasterBandH, VRTSourceH );<br>CPLErr CPL_DLL CPL_STDCALL VRTAddSimpleSource( VRTSourcedRasterBandH,<br>CPLErr CPL_DLL CPL_STDCALL VRTAddComplexSource( VRTSourcedRasterBandH,<br><br><div><hr id="stopSpelling">From: lucena_ivan@hotmail.com<br>To: gdal-dev@lists.osgeo.org<br>Date: Mon, 9 Jun 2014 16:58:12 -0400<br>Subject: [gdal-dev] VRTDataset in Java<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<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>
<br>_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev</div></div>
</div></body>
</html>