[Qgis-user] Python Code to Clip Vector layers

Brad Nesom gisbradokla at live.com
Tue May 10 20:57:47 PDT 2011


Did you look in arcpy?

On Tue, May 10, 2011 at 6:18 PM, Saber <razmjooeis at faunalia.co.uk> wrote:

> For basic clipping, you can try ogr2ogr tool. Its a command line tool which
> you can write shell scripts for.
>
> Cheers
> Saber
>
> DelphineJB <del_cadarn at hotmail.com> wrote:
>
> >I am new to Python programming and relatively new to QGIS. So beware my
> >question is ridiculously simple but for some reason I have been turning in
> >circles on the web and on QGIS for more than a day now trying to find an
> >answer.
> >
> >So I am looking for the Python Code to clip Vector Layers
> >
> >I know how to clip vector layers using the plugins available on the
> >software.
> >But what I am looking for is the python code which will enable me to clip
> >vector layers out of another vector polygon (all in shapefile).
> >- I am trying to document the process of a specific GIS analysis so that
> it
> >can be repeatable, python code seemed the best solution following my
> >employer's opinion -
> >
> >I have looked on the web for a simple piece of code, I have explored dir()
> >of both ftools and gdal, but nothing seems to jump out despite that I know
> >fine well that it must be somewhere.
> >
> >Could anyone suggest me a code or at the very least where to look?
> >
> >           Thank you,
> >
> >                       Delphine
> >
> >-----
> >And a happy non-birthday to you, said the Mad Hatter
> >--
> >View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Python-Code-to-Clip-Vector-layers-tp6350004p6350004.html
> >Sent from the qgis-user mailing list archive at Nabble.com.
> >_______________________________________________
> >Qgis-user mailing list
> >Qgis-user at lists.osgeo.org
> >http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20110510/6d1ae33e/attachment.html>


More information about the Qgis-user mailing list