[Qgis-developer] python scripting

Tim Sutton lists at linfiniti.com
Sun May 26 13:53:47 PDT 2013


Hi

The python cookbook is a good place to start:

http://www.qgis.co.za/pyqgis-cookbook/intro.html

Also look at other plugins that do something similar to your
requirements and see how they work.

Regards

Tim

On Sat, May 25, 2013 at 11:21 PM, Jo <winfixit at gmail.com> wrote:
> Hi,
>
> I'm going to have to do a series of actions about 20 times, so I'd like to
> automate the process, but I don't know how to get started. What to import?
> What functions to call?
>
> Here's what I need to do:
>
> Add Vector Layer
>   File/Latin1/ -> 2 layers
>
> One layer has points with address information, the other has polygons of
> building shapes
>
> Vector/Analysis Tools/Point in Polygon
>
> -> PNTCNT
>
> Query on the new CNT layer -> save buildings with one PNTCNT=1 to
> only1address.shp
>                                                    save buildings with
> PNTCNT=0 or PNTCNT>1 to not1address.shp
>
> Vector/Data Management Tools/Join Attributes By Location
>   Target Layer: only1address.shp
>   Join Vector Layer: AdPt
>   To: BuildingsWith1Address
>
> Then I want to remove several fields and create new fields with the field
> calculator, to create one field with both French and Dutch names combined.
>
>
> I create a few more vector layers (one with the other set of building
> shapes, one with the address nodes that didn't become one address buildings)
> and in the end I need to merge them once again.
>
> Vector/Merge Shapefiles to One
>
>
> Could somebody get me started with that? Point my nose in the right
> direction?
>
> Thanks,
>
> Jo
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list