Results 1 to 5 of 5

Thread: How to draw terrain map from srtm3 data

  1. #1
    Join Date
    Nov 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default How to draw terrain map from srtm3 data

    Hi all,

    I am new to Qt. I need to write a program to generate terrain map using SRTM3 data. I succeeded to read the elevation from srtm3. But, I have no idea how to plot it as terrain map with qwt. I know there exist some tools to do so, but I really want to have it in Qt

    Any suggestions would really help me a lot.

    Thanks in advance for your help

    Regards
    Venky

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to draw terrain map from srtm3 data

    I have no idea how to plot it as terrain map
    How do you expect us to know how you would like to interpret and plot this data if you do not know/explain what your own requirements are. A hypsometric tinted flat map in native data coordinates, or with coordinates converted to some cartographic projection, whole world or small region, further smoothed or averaged, a wire mesh, a synthetic 3d terrain...? We cannot even tell you if Qwt is a good tool for your job.

  3. #3
    Join Date
    Nov 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to draw terrain map from srtm3 data

    Hi,

    Thanks for your response. I have huge data set of x, y coordinates and corresponding height in z-axis.

    Now I need able to project this data as a map like this example_plot.jpg.

    Any suggestions ? Thanks for your help.

    Regards
    Venky

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to draw terrain map from srtm3 data

    A QwtPlot with a QwtPlotSpectrogram plot item to represent your height map.
    A QwtRasterData subclass to interrogate and return the height at given x,y coordinates.
    A QwtColorMap to determine the colouring based in the height value.

    Once you have the basics you can worry about height legends and other fluff

  5. #5
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to draw terrain map from srtm3 data

    This seems really interesting, please if you implanted this do post an example of it.

    best regards

Similar Threads

  1. Replies: 10
    Last Post: 10th February 2011, 23:31
  2. Raw Pixel Data to Image or Picture, to draw in a Widget
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 7th September 2010, 13:15
  3. PyQt code to draw image from raw data?
    By StevenB in forum Qt Programming
    Replies: 5
    Last Post: 31st August 2010, 06:09
  4. How to draw a cruve with increasing data?
    By anson97209 in forum Qwt
    Replies: 17
    Last Post: 30th November 2009, 14:35
  5. Draw New data, without erasing old ones
    By linuxdev in forum Newbie
    Replies: 11
    Last Post: 7th January 2009, 08:34

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.