[Qgis-developer] Raster layer datasource
Peter Ersts
ersts at amnh.org
Wed Feb 27 14:07:26 EST 2008
Maurício de Paulo,
Currently there are no public methods in QgsRasterLayer class that
provide access to pixel level data; the class right now is really not
much more than a rendered. This is something that has been discussed but
will likely not be available in the immediate future. Your best approach
right now would be to open the image with GDAL yourself, process, write
our a new image, pass that to qgis to load; not idea but all possible
from within a plugin without too much hassle.
One option that we may consider is to move the GDALDataSetH from private
to protected so that you could at least inherit QgsRasterLayer to extend
it yourself.
Please keep us up to date with what you are working on. There are a
number of users who are interested in similar functionality and it would
be nice to see some joint effort putting together a nifty raster
manipulation plugin; components of which can be consider at a later time
for inclusion to the raster core.
-pete
Maurício de Paulo wrote:
> Ok, i'm new at qgis api but i only found a protected mDataSource
> property in the QgsRasterLayer class. I hoped i could get access to
> the actual pixel matrix inside qgis so i could write some image
> processing simple plugins (IHS, raster band).
> Am i missing something?
> Thanks for reading.
> Maurício de Paulo - Cartographer Engineer.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
====================================
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