Skip to main content
Formatted the question.
Link
Germán Carrillo
  • 37k
  • 5
  • 125
  • 180

Getting Values from attribute table as well asvalues from userQt widgets and findingusing them for a buffer

Source Link
User123
  • 3k
  • 3
  • 37
  • 67

Getting Values from attribute table as well as from user and finding buffer

I am writing a simple plugin that finds buffer. My gui has 2 combo box and 1 Line edit. The first combo box will have a drop down of values from column 'States' and 2nd combo will have a drop down of values from column 'Cities'. Note that the Cities will be filtered in the combo box depending on the states selected. And 3rd Lineedit gets a distance from the user. As a result, I want buffer for the cities (from the 2nd combo box) with the user specified 'distance value' given in the lineedit box.I tried QgsGeometryAnalyzer().buffer() function in QGIS API. But the first argument is a layer for the above mentioned function. Instead i want my gui to take value from the city combo and lineedit and find buffer. How to accomplish. Sorry for the lengthy post.