Is it possible to create buffer and get intersected features in Qgis using Python?

I did in ArcObjects.but i need the same in QGIS also.

Dim topo As ITopologicalOperator
topo = chkPoint
Dim sFc As ISpatialFilter = New SpatialFilter
With sFc
  .Geometry = topo.Buffer(1000)
  .GeometryField = "Shape"
  .SpatialRel = esriSpatialRelIntersects
  .WhereClause = "NAME = 'ROYAL'"
End With
pFcursor = pLayer.Search(sFc, False)
pFeature = pFcursor.NextFeature

closed as off-topic by mgri, whyzar, PolyGeo Feb 12 '17 at 23:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – mgri, whyzar, PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Sure, everything you can do in QGIS desktop can be reproduced in Python using the pyqgis api... Have you explored the QGis plugin system? qgis.org/pyqgis-cookbook/plugins.html – Etienne Desgagné Jun 14 '13 at 13:06
  • Is chkPoint a single point? (Never used ArcObjects) – Nathan W Jun 15 '13 at 2:50
  • @Nathan yes its a single point – venkat Jun 15 '13 at 4:05
  • @Etienne yes i have developed few QGIS plugins. – venkat Jun 15 '13 at 4:10
  • Which version of QGIS? – Nathan W Jun 15 '13 at 4:32

Browse other questions tagged or ask your own question.