<div dir="ltr">Hi,<div><br></div><div>I am working on swig bindings for librarified GDAL utilities as part of my Google Summer of Code project. I have already librarified gdalinfo utility.</div><div><br></div><div><a href="https://github.com/fazam/gdal/blob/gdalinfo/gdal/apps/gdal_utils.h">https://github.com/fazam/gdal/blob/gdalinfo/gdal/apps/gdal_utils.h</a><br></div><div><a href="https://github.com/fazam/gdal/blob/gdalinfo/gdal/apps/gdalinfo_lib.cpp">https://github.com/fazam/gdal/blob/gdalinfo/gdal/apps/gdalinfo_lib.cpp</a><br></div><div><br></div><div>These are the two approaches for swig bindings, after discussing with my mentor Even.</div><div><br></div><div>(1)To create a new module gdal_utils</div><div>If we go with this approach, the function calls for gdalinfo and ogrinfo will be like</div><div>gdal_utils.gdalinfo()</div><div>gdal_utils.ogrinfo()</div><div><br></div><div>(2)To go with the existing modules gdal and ogr</div><div>In this approach the function calls for gdalinfo and ogrinfo will be like</div><div>gdal.Info()</div><div>ogr.Info()</div><div><br></div><div>We also need to decide on the names of the functions for all librarified utilities. Since there is already gdal.RasterizeLayer() and gdal.ContourGenerate() which does most of the work of gdal_rasterize and gdal_contour utilities, what should be the names of functions for gdal_rasterize and gdal_contour?</div><div>What should we name the function for ogr2ogr?</div><div><br></div><div>I'd appreciate any feedback/suggestion.</div><div><br></div><div>Regards,</div><div>Faza</div></div>