Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create GIS enabled image viewer (QGraphicsview) in Qt
Forum Updated to NodeBB v4.3 + New Features

How to create GIS enabled image viewer (QGraphicsview) in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 3.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kanuashu7
    wrote on last edited by
    #1

    I want to load raster or vector data into qgraphicsview which is GIS enabled.
    GIS enabled image viewer means it can handle all kind of coordinate reference systems and projections.

    Please Help or Guide me a right direction to achieve it.
    Any Help will be appreciated
    Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      But what format need it support ? There are many GIS formats available.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kanuashu7
        wrote on last edited by
        #3

        Hi
        Thanks for quick response.

        I want to load .tif or GTiff files for raster and .shp for vector on GIS canvas which can handle the geographic and UTM coordinate system atleast.

        mrjjM 1 Reply Last reply
        0
        • K kanuashu7

          Hi
          Thanks for quick response.

          I want to load .tif or GTiff files for raster and .shp for vector on GIS canvas which can handle the geographic and UTM coordinate system atleast.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @kanuashu7
          Hi
          So maybe first find some c++ LIBs that allows reading such formats?
          Im not sure if any of the Qt map stuff could be used.
          I know many used GDAL but i have no personal experience with it
          http://www.gdal.org/frmt_gtiff.html

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kanuashu7
            wrote on last edited by
            #5

            I can read all this formats usig GDAL but i am not able to display them on correct coordinate system, for that i need GIS enabled canvas like QGIS

            mrjjM 1 Reply Last reply
            0
            • K kanuashu7

              I can read all this formats usig GDAL but i am not able to display them on correct coordinate system, for that i need GIS enabled canvas like QGIS

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @kanuashu7 said in How to create GIS enabled image viewer (QGraphicsview) in Qt:

              QGIS

              But this cant be used or ?

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kanuashu7
                wrote on last edited by
                #7

                Actually, I am trying to make my own application in Qt similar to QGIS which can handle all the GIS capabilities like loading of raster and vector data by reading and loading it correct coordinate system.

                mrjjM 1 Reply Last reply
                0
                • K kanuashu7

                  Actually, I am trying to make my own application in Qt similar to QGIS which can handle all the GIS capabilities like loading of raster and vector data by reading and loading it correct coordinate system.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Hi
                  ahh that way.
                  I wonder if source of QGIS could not provide at good point to start ?
                  to see how they draw it etc ?

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kanuashu7
                    wrote on last edited by
                    #9

                    Nope, its very difficult to understand the QGIS architecture and to understand its classes.
                    I am looking for simple solution like these are the steps i want to achieve -:

                    1. I need to make my qgraphicsview to understand the geographic coordinate system and UTM coordinate system.
                    2. Load geo resgistered raster images on correct lat long location on my qgraphicsview.
                    1 Reply Last reply
                    0
                    • O Offline
                      O Offline
                      ofmrew
                      wrote on last edited by
                      #10

                      Have you read the shapefile documentation? It is a very simple structure and easy to program. I wrote as shapefile reader nearly 30 years ago in Smalltalk. I could help you with it if you decide to write one.

                      1 Reply Last reply
                      1
                      • mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        +1 for smalltalk :)

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kanuashu7
                          wrote on last edited by
                          #12

                          @ofmrew Thanks for your suggestion.

                          I am able to read vector and raster files correctly.
                          Also, I can display them on QGraphicsview with its original coordinate system.

                          But, I want to customize my QGraphicsview to one of the coordinate reference system mentioned below -:

                          1. Geographic Coordinate Reference System
                          2. UTM Coordinate Reference System
                          O 1 Reply Last reply
                          0
                          • K kanuashu7

                            @ofmrew Thanks for your suggestion.

                            I am able to read vector and raster files correctly.
                            Also, I can display them on QGraphicsview with its original coordinate system.

                            But, I want to customize my QGraphicsview to one of the coordinate reference system mentioned below -:

                            1. Geographic Coordinate Reference System
                            2. UTM Coordinate Reference System
                            O Offline
                            O Offline
                            ofmrew
                            wrote on last edited by
                            #13

                            @kanuashu7 It has been awhile since I worked with GIS, but here are my observations:
                            QGraphicsView uses a flipped y-axis, so the data will probably be upside down, but you can correct for that.

                            UMT should only require registration which requires a scale and translation.

                            For the first item, have you considered OpenGL or 3D.

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved