Results 1 to 3 of 3

Thread: working with shapefiles in Qwt

  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default working with shapefiles in Qwt

    hi,
    im trying to use a map in my Qt/ Qwt application. and im very immature in dealing with this. i would like to know ur suggestions regarding this. how can i use shapefiles (esri) of a perticular region in my application. or which is better, to use a SVG map or a shapefile? how can i use with Qwt Plots where my data is drawn over them in real time.. pls post your suggestions in this regard.. thanks in advance. bye

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

    Default Re: working with shapefiles in Qwt

    AFAIR shapes are simply polygons. I would implement a custom plot item, that maps them into the coordinate system of the plot ( using the scale maps ) and renders them by QwtPainter::drawPolygon().

    The more difficult thing about shape files is, when they represent huge data sets ( f.e all streets or all county borders of a country in high resolution ). For those you need some type of spatial index like a R-tree. Also the projection might be a too expensive operation for polygons of many points. So you should try to remove duplicates ( points mapped to the same screen position ) as soon as possible.

    But if your shape files are small, the implementation should be no big deal.

    Uwe

  3. #3
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: working with shapefiles in Qwt

    thanks Uwe,
    that seems to be of huge labour for the application operating with big shapefiles. im also looking at QGIS implementation of shapefiles or other formats. actually, im trying to make a very simple map application (with Qt + Qwt) with zoom and panning facilities. thank u very much again. bye.

Similar Threads

  1. QWT embedded
    By damien in forum Qwt
    Replies: 3
    Last Post: 20th February 2011, 19:26
  2. Replies: 7
    Last Post: 9th May 2009, 22:31
  3. Step by step Qwt on MinGW
    By Doug Broadwell in forum Qwt
    Replies: 2
    Last Post: 23rd January 2009, 00:19
  4. How to upgrade Qwt 5.0.1 to Qwt 5.0.2
    By luffy27 in forum Qwt
    Replies: 1
    Last Post: 15th July 2007, 19:55
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

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.