Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
share|improve this 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.