PyQGIS overlaying raster image on vector map correctly?Overlaying Line (Vector) Layer on Raster Zones?overlaying raster layer hides my vector layers in PyQGISGrowing error from west to east when overlaying raster and shapepyQGIS changing Paletted Raster Layers to GrayscaleCreate Vector Grid from a features Extent with PyQGISImage Overlay / Qgis raster projected incorrectly on Leaflet JSChecking if vector coordinates are inside raster file using pyqgis?render Raster Layer from pyQgis 3PyQGIS composer map add raster layerSaving a raster and vector layers together as .png in PyQGIS

What are these boxed doors outside store fronts in New York?

How is it possible to have an ability score that is less than 3?

Shell script not opening as desktop application

Why Is Death Allowed In the Matrix?

How to make payment on the internet without leaving a money trail?

Do any Labour MPs support no-deal?

The Meaning of "Simply a child of her times"

Can I interfere when another PC is about to be attacked?

strToHex ( string to its hex representation as string)

"which" command doesn't work / path of Safari?

Motorized valve interfering with button?

N.B. ligature in Latex

What is the command to reset a PC without deleting any files

Disadvantages of online checking accounts?

"You are your self first supporter", a more proper way to say it

Is it possible to do 50 km distance without any previous training?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

How does one intimidate enemies without having the capacity for violence?

Why linear maps act like matrix multiplication?

What is the offset in a seaplane's hull?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Why is an old chain unsafe?

Is the month field really deprecated?

Do Phineas and Ferb ever actually get busted in real time?



PyQGIS overlaying raster image on vector map correctly?


Overlaying Line (Vector) Layer on Raster Zones?overlaying raster layer hides my vector layers in PyQGISGrowing error from west to east when overlaying raster and shapepyQGIS changing Paletted Raster Layers to GrayscaleCreate Vector Grid from a features Extent with PyQGISImage Overlay / Qgis raster projected incorrectly on Leaflet JSChecking if vector coordinates are inside raster file using pyqgis?render Raster Layer from pyQgis 3PyQGIS composer map add raster layerSaving a raster and vector layers together as .png in PyQGIS






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have some code written in Python using PyQGIS where I am trying to overlay a raster image gridded with coordinates on to a vector shapefile map with the same coordinates. However, when overlaying the raster image, the image is shifted up and also seems larger than it should be compared to the vector layer.



Currently I am using self.canvas.setExtent(layer.extent()) where layer = QgsRasterLayer(filename)



Any suggestions on how to correctly overlay the raster on the vector map?










share|improve this question






























    1















    I have some code written in Python using PyQGIS where I am trying to overlay a raster image gridded with coordinates on to a vector shapefile map with the same coordinates. However, when overlaying the raster image, the image is shifted up and also seems larger than it should be compared to the vector layer.



    Currently I am using self.canvas.setExtent(layer.extent()) where layer = QgsRasterLayer(filename)



    Any suggestions on how to correctly overlay the raster on the vector map?










    share|improve this question


























      1












      1








      1








      I have some code written in Python using PyQGIS where I am trying to overlay a raster image gridded with coordinates on to a vector shapefile map with the same coordinates. However, when overlaying the raster image, the image is shifted up and also seems larger than it should be compared to the vector layer.



      Currently I am using self.canvas.setExtent(layer.extent()) where layer = QgsRasterLayer(filename)



      Any suggestions on how to correctly overlay the raster on the vector map?










      share|improve this question
















      I have some code written in Python using PyQGIS where I am trying to overlay a raster image gridded with coordinates on to a vector shapefile map with the same coordinates. However, when overlaying the raster image, the image is shifted up and also seems larger than it should be compared to the vector layer.



      Currently I am using self.canvas.setExtent(layer.extent()) where layer = QgsRasterLayer(filename)



      Any suggestions on how to correctly overlay the raster on the vector map?







      python raster pyqgis overlay vector-layer






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago







      user137875

















      asked Apr 3 at 14:40









      user137875user137875

      233




      233




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317649%2fpyqgis-overlaying-raster-image-on-vector-map-correctly%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317649%2fpyqgis-overlaying-raster-image-on-vector-map-correctly%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Magento 1.9 observer on only new product added ( no updated product )Admin Create New Order ObserverObserver checkout_cart_product_add_after get product quantity in cartHow can I differentiate between product creation and saving existing products?How to get the original price Product SaveBeforeMagento Observer for Admin Sales order Address updateHow do i get quantity in a product_save_after event observer magento2?Using observer event to get updated customer infoSave product observer - detect availabilityEvent not triggered when new product added in admin : Magento 2magento 1.9 observer on quantity product change

          Does an object always see its latest internal state irrespective of thread? The 2019 Stack Overflow Developer Survey Results Are InDoes a finally block always get executed in Java?Java: serial thread confinement questionJava difference between fixed threadpool and scheduled threadpoolJackrabbit and concurrent modificationHow to stop a Runnable scheduled for repeated execution after a certain number of executionsMultiple threads accessing inner classHow can a loop be completed by two thread? say loop from count=1 to count=4 by ist thread and count =5 to 8 by 2nd thread?If I keep a reference to a Runnable, when does the Thread it ran on get released?How to stop a schedule ScheduledExecutorServiceHow to implement a singleThreadedScheduledExcecutor in wildfly

          What CSS properties can the br tag have?Will whitespace or wrap be ignored between two block elements in HTML?Set cellpadding and cellspacing in CSS?Change an HTML5 input's placeholder color with CSSIs this possible in p tag without using span or anything new in html tag?jQuery + Regex to change CSS of first couple of Wordscentering an image while text covers both canvas (left and right)Position button material designsubmit button doesn't work with html codejavascript summary my checked inputHow can I create this effect on a slider?Changing JQuery to affect colour of button, not background?