multiple rasters && mapview

Russell Nelson nelson at crynwr.com
Sat Jan 8 08:10:35 CET 2005


I'm still tracking down the problem with multiple rasters.  The
intrinsic problem is that ProjectRasterFile (called from
baserenderer.py and implemented in gdalwarp.cpp) always creates a
bitmap that fills the viewport.  Doesn't matter how big the raster
image actually is.  Doesn't matter if the actual data in the raster
covers only a portion of the image.

You can see this for yourself.  Load a raster, and a layer that covers
more than just the raster.  Then zoom to the full extents.  The white
background of the viewport is entirely overlaid by the raster.

The fix is going to have to be in the way ProjectRasterFile gets
called.  Instead of creating a BMP image, it needs to return a
wxImage, clipping mask, and offset.  I don't know enough about GDAL to
be able to do that yet.  I may need help with the Python bindings, but
I'll ask for it when I need it.

Mapview is now nicely editing line files.  I really like the UI, and
I'll be putting it into Thuban, once Thuban gets as good as Mapview at
displaying rasters.  The trouble I'm now running into is that I'm
basically re-creating shapfiles.  Rather than going that, I need to
add line editing to Thuban.  That way, everyone benefits.

I'm going to have to create an Extension for Terraserver tiles.

-- 
--My blog is at angry-economist.russnelson.com  | Freedom means allowing
Crynwr sells support for free software  | PGPok | people to do things the
521 Pleasant Valley Rd. | +1 315-323-1241 cell  | majority thinks are
Potsdam, NY 13676-3213  | +1 212-202-2318 VOIP  | stupid, e.g. take drugs.




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)