Python Forum
using python with QGIS to disseminate CSV data on a polygon
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using python with QGIS to disseminate CSV data on a polygon
#1
Hi all,
i am a newbie programmer on QGIS with python.

i am working on QGIS version 3.12.3-București having a python interface prompt to write python code. QGIS is installed on windows 10.

in fact i have file CSV with 2 column and 3 values:

code Temperature
316552 11.5
316552 17.2
316552 24.3

on the other hand i have a map for my country as shape file having a polygon for Beirut city with an id 316552.


my question is: how could i write a python script so as:
1. disseminate the first value 11.5 on the polygon for Beirut with a color red and within a Temperature legend
from 10 - 15 and save this card as card1.png
2. disseminate the second value 17.2 on the polygon for Beirut with a color green and within a Temperature
legend from 16 - 21 and save this card as card2.png
3. disseminate the third value 24.3 on the polygon for Beirut with a color yellow and within a Temperature
legend from 22 - 27 and save this card as card3.png

for any helps or suggestions that would be given by any one will be appreciated.

Thank you in advance.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QGIS 3.34 Python Error paskiller 2 659 Nov-13-2023, 06:20 PM
Last Post: buran
  Python QGIS tool that replaces layout text labels with attributes from an input table geodenn92 1 2,661 Aug-13-2019, 06:05 AM
Last Post: buran
  Looking for algorithm to tranverse a polygon dspal 0 2,224 May-07-2018, 08:46 PM
Last Post: dspal
  Fix Memory Error while installing a library for Qgis alexastorga 0 2,576 Apr-13-2018, 04:54 PM
Last Post: alexastorga
  Animation with polygon points not working cbmanjoe 1 3,077 Jun-28-2017, 03:57 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020