Do we have plans to add those entries to the GDAL API (C, Java, etc.)?

---------- \...\GDAL\TRUNK\FRMTS\VRT\GDAL_VRT.H
VRTDatasetH CPL_DLL CPL_STDCALL VRTCreate( int, int );
CPLXMLNode CPL_DLL * CPL_STDCALL VRTSerializeToXML( VRTDatasetH, const char * );
CPLErr CPL_STDCALL VRTAddSource( VRTSourcedRasterBandH, VRTSourceH );
CPLErr CPL_DLL CPL_STDCALL VRTAddSimpleSource( VRTSourcedRasterBandH,
CPLErr CPL_DLL CPL_STDCALL VRTAddComplexSource( VRTSourcedRasterBandH,

From: [email protected]
To: [email protected]
Date: Mon, 9 Jun 2014 16:58:12 -0400
Subject: [gdal-dev] VRTDataset in Java




Hi there,

What is the best option to create in memory VRT Dataset with the GDAL Java API?

I would like to do thing like gdal_translate does [0], band selection and 
window cropping for example. 

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.:

Dataset ds = dal.getDriverByName("VRT").Create("/vsimem/xxx.vrt", 255, 255);

But there are some methods in VRTDataset that GDALDataset doesn't have, so I 
think I am going with the raw XML option.

Any better idea?

Best regards,

Ivan

ref. :

[0] http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp#L1095

                                          

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
                                          
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to