2

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
  • 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.