[Qgis-developer] TileServer as layer for qgis

Peter Ersts ersts at amnh.org
Sun Nov 23 17:52:26 EST 2008


Marco Hugentobler wrote:
> Hi Richard
>
> One way to do it is to create a subclasse of QgsRasterDataProvider, similar to 
> how it is done for WMS.

QgsRasterLayer is still so tightly bound to GDAL, that I agree with 
Marco's suggestion.  The easiest approach is to use the wms provider as 
a guide. The tile provider will basically be responsible for obtaining 
and merging all of the tiles together into one new QImage, which will be 
return by QImage* draw(QgsRectangle, int, int)

-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