[Qgis-developer] Should QGIS use generic names for raster bands

Peter Ersts ersts at amnh.org
Sun Jul 20 21:36:27 EDT 2008


Marco Hugentobler wrote:
>> If we are to go with generic band names, I will not be winning any
>> popularity contests with the users because the band name is stored in
>> the project file rather than just the band number. While it may seem
>> trivial, I think that this is actually a very important decision as we
>> move toward trying to get version 1.0 out.
>>     
>
> In my opinion, technical decisions should have priority over project file 
> compatibility issues.
> And there is the possibility to write some code to transform project files to 
> new version (see the project file transformation framework provided by Magnus 
> in qgsprojectfiletransform.cpp/h). There you could write a new method 
> (transform0110to1000), iterate over the raster layers and transform the band 
> names to band numbers.
>   

Thanks Marco. There was actually an easy way to incorporate this right 
into right into the QgsRasterLayer so it will transform to the new name 
on the fly. Everyone's project files and qml files should work just fine.


-pete

-- 
====================================
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: Home Office (518)-632-4745 or NYC Office (212)-496-3488
Web: http://biodiversityinformatics.amnh.org
Web: http://cbc.amnh.org

Quantum GIS Raster Development Team. Visit http://www.qgis.org
to learn more about QGIS, a free and open source desktop GIS

Open Source,
...evolving through community cooperation to change the world bit by bit



More information about the Qgis-developer mailing list