Skip to content

zsiki/AttributeSplit

Repository files navigation

AttributeSplit

QGIS Python plugin to split a layer by attribute values

The Attribute Split plugin splits a loaded vector layer into several shape files by a string or integer attribute column. Those features will be written to the same shape file what has the same attribute value in the selected column. A target directory and a name prefix can be set, too. A name of the created shape files are set by the targer directory, the name prefix and the attribute value. For example if the target directory is /home/user/split, the prefix is abc- and the actual attribute value is budapest then the output shape file will be /home/user/split/abc-budapest.shp.

The plugin was tested with Shape file, SpatiaLite and PostGIS.

Similiar functionality exists in the Vector menu of QGIS (Vector split, which I missed unfortunatelly), so this plugin will not be published on the official QGIS plugin web page.

Install the plugin

Actually the plugin has a beta version and is not available in the plugins.qgis.org repositora. You can install it manually.

Install from zip file

Download the zip file from the http://github.com/zsiki/AttributeSplit page, find the link at the lower right corner. Unzip the file to the personal plugin folder of your local machine:

  • ~/.qgis2/python/plugins (Linux)
  • \users\user_name\.qgis2\python\plugins (Windows 7+)
  • \Document ans Settings\user_name\.qgis2\python\plugins (Windows XP)

Rename the AttributeSplit-master folder to AttributeSplit

Start/restart QGIS and turn on the plugin in the Manage and install plugins dialog.

Install from git

Clone the repository to your local QGIS pesonal plugin folder.

About

QGIS Python plugin to split a layer by attribute values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages