Results 1 to 4 of 4

Thread: Plot Raster chart background

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Plot Raster chart background

    I have written such a raster item for geotiff maps a couple of years ago. As far as I remember we had divided our maps into tiles ( our maps were much more, than 12000x8000, but a tile was smaller ) and the most difficult thing was to put these tiles together for each image composition.

    AFAIR I had a TIFF library that offered to read the file line by line, so I didn't need to have all in memory at once. If your plot and your tiff files use the same projection all you need to do is to run over the lines in your image translate each pixel into your coordinates and pick the closest pixel from your tiff image.

    Unfortunately a lot of code that does the interaction between raster data and raster item can be found in the implementation of QwtPlotSpectrogram::renderImage instead of its base class ( where it should be ). So I'm afraif you have to copy some code, that calculates the size ( = resolution ) of the image and its position in scale coordinates.

    Uwe

  2. The following user says thank you to Uwe for this useful post:

    jmsbc (6th August 2010)

Similar Threads

  1. Native vs Raster
    By ArlexBee-871RBO in forum Qt Programming
    Replies: 7
    Last Post: 15th February 2010, 22:22
  2. Replies: 3
    Last Post: 9th September 2009, 04:34
  3. Replies: 2
    Last Post: 30th June 2009, 17:08
  4. Replies: 7
    Last Post: 22nd September 2008, 22:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.