QGIS Python (PyQGIS) - Query raster value at point

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 11

  • @joramvandervlist8500
    @joramvandervlist8500 2 роки тому +1

    This is great! Could you please not cut out how you solve an error? It would me very informative to see how you tackle the problem.

  • @pesaladesilva1105
    @pesaladesilva1105 6 місяців тому

    Thank You very much, is there any way to run queries in QuickOSM in the python console

  • @muamaralmanijasim9606
    @muamaralmanijasim9606 3 роки тому +1

    Thank you very much, how to read raster value on mouse click ? not by add it by my self, i mean coordinate

    • @geospatialschool
      @geospatialschool  3 роки тому +1

      Good question. I'll try to do a video on this in the next few weeks.

  • @raadmoola
    @raadmoola 5 років тому +1

    hi! I mean your courses are good thank you sir. I am a beginner in pyqgis and I want you to give me some examples about merging 2 or 3 raster into one single image with pyqgis.

    • @geospatialschool
      @geospatialschool  5 років тому

      Just to clarify. Do you want to mosaic rasters that cover different extents into a single raster that covers the entire extent (i.e. mosaic)? Or do you have multiple rasters that cover the same extent and you want to make a raster with multiple bands?

  • @joaofolgado3316
    @joaofolgado3316 4 роки тому

    HI! I see that video. But i have a problem. I select a point that are inside of my raster, but the console say that i am out of the raster. Can you help me ?

    • @geospatialschool
      @geospatialschool  4 роки тому

      Make sure the point you specify is in the same coordinate format as your raster's CRS

    • @joaofolgado3316
      @joaofolgado3316 4 роки тому

      @@geospatialschool yeah! Is that! Thank you. I traing to create a contour line in a buffer that i created. I have the terrain data too in a raster. Do you know the way to to this?

    • @joaofolgado3316
      @joaofolgado3316 4 роки тому

      @@geospatialschool if i have a matrix whit coorditantes is any possable to know whit qgis API the values of a raster in all of that point whitout a loop ? for exemple layer.dataProvider().identify(matrix, QgsRasterIdentifyResult)?

    • @geospatialschool
      @geospatialschool  4 роки тому

      @@joaofolgado3316 No, that is not possible. If you want multiple values you'll need to use numpy to query rasters or pandas/geopandas to query vectors.