Re: [gdal-dev] VRTBuilder class
Le mercredi 28 mai 2014 21:03:40, Gordon Farquharson a écrit : > The VRTBuilder class in the gdalbuildvrt utility source code is very > useful. Is there any intention to make it part of the GDAL API? > > Gordon Gordon, the idea of turning the code of GDAL utilities as library code reusable by user code has floated around. It probably waits for contributions and/or funding. In the mean time, you can "import" the code into your code. Even -- Geospatial professional services http://even.rouault.free.fr/services.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] VRTBuilder class
Thanks for the quick answer. Would the approach of turning GDAL utility code into libraries be as simple as putting the code into .h and .cpp files, or would you want to do it in a more globally organized way, e.g.., to develop a sensible class hierarchy and a consistent naming scheme? Gordon On Wed, May 28, 2014 at 12:18 PM, Even Rouault wrote: > Le mercredi 28 mai 2014 21:03:40, Gordon Farquharson a écrit : > > The VRTBuilder class in the gdalbuildvrt utility source code is very > > useful. Is there any intention to make it part of the GDAL API? > > > > Gordon > > Gordon, > > the idea of turning the code of GDAL utilities as library code reusable by > user code has floated around. It probably waits for contributions and/or > funding. In the mean time, you can "import" the code into your code. > > Even > > -- > Geospatial professional services > http://even.rouault.free.fr/services.html > -- Gordon Farquharson GnuPG Key ID: 32D6D676 ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] VRTBuilder class
Le mercredi 28 mai 2014 21:27:54, Gordon Farquharson a écrit : > Thanks for the quick answer. Would the approach of turning GDAL utility > code into libraries be as simple as putting the code into .h and .cpp > files, or would you want to do it in a more globally organized way, e.g.., > to develop a sensible class hierarchy and a consistent naming scheme? Everything can be considered. Proposals welcome. At the minimum, work should be done to remove global variables, avoid exit() calls, etc... so that it can be used as a proper library function. And it would be good if that library'fication of utilities should allow to pass dataset objects instead of strings for example. > > Gordon > > > On Wed, May 28, 2014 at 12:18 PM, Even Rouault > > > wrote: > > > > Le mercredi 28 mai 2014 21:03:40, Gordon Farquharson a écrit : > > > The VRTBuilder class in the gdalbuildvrt utility source code is very > > > useful. Is there any intention to make it part of the GDAL API? > > > > > > Gordon > > > > Gordon, > > > > the idea of turning the code of GDAL utilities as library code reusable > > by user code has floated around. It probably waits for contributions > > and/or funding. In the mean time, you can "import" the code into your > > code. > > > > Even > > > > -- > > Geospatial professional services > > http://even.rouault.free.fr/services.html -- Geospatial professional services http://even.rouault.free.fr/services.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] VRTBuilder class
Dear Gordon, If you want to use the VRTBuilder inside your own programming environment (on Windows) you could also start using the MapWinGIS ActiveX control. Version 4.9 and later supports GDAL, including the VRTBuilder function. The activeX control can be downloaded here: mapwingis.codeplex.com I just got it working myself. Building a VRT file from a bunch of grids has become quite easy now. Sequentially I use functions such as ClipGridByPolygon on the VRT file and it works fine. Cheers, Siebe On 28-05-14 21:03, Gordon Farquharson wrote: The VRTBuilder class in the gdalbuildvrt utility source code is very useful. Is there any intention to make it part of the GDAL API? Gordon -- Gordon Farquharson GnuPG Key ID: 32D6D676 ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- - Hydroconsult Lulofsstraat 55, unit 47 2521 AL Den Haag The Netherlands web: http://www.hydroconsult.nl e-mail: si...@hydroconsult.nl phone: +31(0)70 250 0580 mobile: +31(0)6 17 682 689 - Aangesloten bij WaterFocus, de coöperatie van zelfstandige professionals in het waterbeheer ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] VRTBuilder class
Il 28/05/2014 21:14, Siebe Bosch ha scritto: > If you want to use the VRTBuilder inside your own programming environment (on > Windows) you could also start using the MapWinGIS ActiveX control. > Version 4.9 and later supports GDAL, including the VRTBuilder function. Or you can use Processing in QGIS to automatically create a Python script for this. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev