This is a great tutorial but does anyone know what the code would be to add gradient stops between the minimum and maximum values? I want to use equal intervals and have a specific number of classes.
Thanks a lot. It's great. Just if I could ask you to increase the font size of the code a bit in future videos, because it's too small for some viewers I guess (at least for me) thanks anyways :)
Hay - I keep getting an error while opening the QGIS application. Error = utf-8 codec can't decode byte 0xfd in position 3: invalid start byte can you help?
How can I Script showing the following with PyQGIS: 1. Number of polygons that have the selected leading species. 2. Minimum and maximum area of the stands that have the leading species. 3. The average of the leading species percentages within the stands. 4. The total area and average area of the stands, containing the leading species.
Hi dude. Thanks for this video. I have a question. Can i create a script to import csv and shp and automatically generate a layout with a pdf as output (print composer)?
I haven't tried this yet. Here's a link to the Python documentation for the class as a place to start: qgis.org/pyqgis/3.2/core/other/QgsPalettedRasterRenderer.html I will add this to my list of videos and try to get a tutorial made in the next few weeks.
Python Console Use iface to access QGIS API interface or Type help(iface) for more info Security warning: typing commands from an untrusted source can harm your computer exec(open('E:/OneDrive - TVBC/0_Tài liệu/Python/Xử lý ảnh.py'.encode('utf-8')).read()) Traceback (most recent call last): File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "", line 11, in NameError: name 'Qcolor' is not defined
Sorry. That's my mistake. The code gets information from the file, gets the file name without the directory path or extension, and adds a raster layer the QGIS interface with the layer name the same as the file name. As long as you add this line of code you'll be okay: rlayer=iface.addRasterLayer(fn) where fn is the path to your raster layer.
This is a great tutorial but does anyone know what the code would be to add gradient stops between the minimum and maximum values? I want to use equal intervals and have a specific number of classes.
Thanks a lot. It's great. Just if I could ask you to increase the font size of the code a bit in future videos, because it's too small for some viewers I guess (at least for me) thanks anyways :)
i guess it is pretty randomly asking but do anybody know a good website to watch new movies online?
@Dominik Zaire try Flixzone. Just search on google for it :)
@Dominik Zaire i use flixzone. Just google for it =)
@Dominik Zaire I watch on flixzone. Just search on google for it :)
@Dominik Zaire I watch on flixzone. You can find it by googling :)
Hay - I keep getting an error while opening the QGIS application. Error = utf-8 codec can't decode byte 0xfd in position 3: invalid start byte can you help?
Hi - do you know how to use estimated (faster) accuracy when computing band min/max values as opposed to exact values?
How can I Script showing the following with PyQGIS: 1. Number of polygons that have the selected leading species.
2. Minimum and maximum area of the stands that have the leading species.
3. The average of the leading species percentages within the stands.
4. The total area and average area of the stands, containing the leading species.
Hi dude. Thanks for this video. I have a question. Can i create a script to import csv and shp and automatically generate a layout with a pdf as output (print composer)?
Yes you can. I don't have a specific video on that, but this one will get you started.
What have you imported at line 1: Fn='C:/temp/smr/trimmer_peak/dem/dem.tif'
This is the path to a raster file
How does it work to shade a raster layer using the QgsPalettedRasterRenderer class?
I haven't tried this yet. Here's a link to the Python documentation for the class as a place to start: qgis.org/pyqgis/3.2/core/other/QgsPalettedRasterRenderer.html
I will add this to my list of videos and try to get a tutorial made in the next few weeks.
Is it possible to make a code that interpolates some points and generate isolines? Thanks!
AttributeError: 'NoneType' object has no attribute 'dataProvider' , please guide me!
omg, I just fix it by myself
I wrote the wrong file name
same, thanks :)
Hi,
Is there anyway to create a raster attribute table using QGIS Python ?
Python Console
Use iface to access QGIS API interface or Type help(iface) for more info
Security warning: typing commands from an untrusted source can harm your computer
exec(open('E:/OneDrive - TVBC/0_Tài liệu/Python/Xử lý ảnh.py'.encode('utf-8')).read())
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "", line 11, in
NameError: name 'Qcolor' is not defined
i want to use SCP, how can use it through script
dataprovider() showing error "AttributeError: 'NoneType' object has no attribute 'dataprovider'." Qgis version is 3.4.2. suggest a solution please.
You probably need to use 'dataProvider()' instead of 'dataprovider()'.
Which QGIS version are you using?
In this video, I believe it's version 3.4. The lowest version it would be is 3.2.
@@geospatialschool Thanks! That was quick
Hi, how can I visualise DEM with flood analysis.
What kind of flood analysis do you want to do?
sir i have a error in this tutorial i wonder if you have the file in the .tif file base on the line 1 is not define please answer my problem thankyou
You can download any .tif file and use it in place of the file I use in this tutorial
@@geospatialschool thanks sir
Page in the video description not found :(
I updated the description with new links
At 3:07, several extra lines of code appear and there's no reference in the dialog to them. Am I missing something?
Sorry. That's my mistake. The code gets information from the file, gets the file name without the directory path or extension, and adds a raster layer the QGIS interface with the layer name the same as the file name. As long as you add this line of code you'll be okay:
rlayer=iface.addRasterLayer(fn)
where fn is the path to your raster layer.
Mine came out grayscale 🤷♂️
Can you make this in the new version please ?
This will work with any version of QGIS 3. Just tested it.
Join tables using PyQgis! please cover
if you found the way please help me
where is the raster/file.tif file?. can i download?
See this video for how to download your own DEM: ua-cam.com/video/VlKkAYoNoRE/v-deo.html