I want to explode a multipart layer to singlepart in python. I see through the qgis gui there is a way to do it under vector--geometry--tools--Multipart to Singleparts.. which does what I need, I just need the python code for this. I'm new to qgis.
123668
Is it possible to run the multiparts to singleparts function from the console with the processing_runalg function? Or is there another way?
57758
Being new with python so far, I got inspired by this answer:   to dive into it a bit.  When creating features in a new target layer from an existing source layer, all "solutions" I found so far to create that new layer, were to either   prepare the new target layer manually in QGIS beforehand, adding all fields (with field types, lengths etc). Hard-code the field settings into the python script when creating that new target layer.    It seems a bit odd to me that there should be no programmatic way to clone the attribute scheme of a layer, and create a new (memory) layer with this scheme, so you wont have to change your script for each new layer, or fumble things together manually.  I'm focused on the creation of memory-layers, cause I want to have the opportunity to decide by myself if the outcome is satisfactory and save it manually when it fits my needs.
70041
I'm new to QGIS and have been seeing what it can do for me – seems good. I imported shape file data from a UK Ordnance Survey data file and saved the file in a new folder. It was very good, doing all I wanted. I exported and got exactly what I wanted ( a tiff image).   I closed the file in order to try a new experiment. When I went to re-open it I got a dialogue box saying 'Handle Bad Layers. I don't understand what is at issue and what to do.
117354
I have two vector files in the layers panel in QGIS (V2.8.2, Wien).  I am trying to select points from both vector files simultaneously to view in both attribute tables - both tables are set to show selected features only.  The only way I can do this is to select one layer in the Layers Panel, then select features by rectangle, then select the second layer in the Layers Panel and reselect again using the rectangle.   Is there a way to select features from both layers and only using select by rectangle once?
43066
I am a web dev and competent in Fireworks, but not so much in Photoshop.  I have just received a layered PSD file to turn into a web page.  Can anyone tell me the easiest way to export all layers to individual png files?  There are lots of layers and doing this manually seems wrong.  I have seen  but it does seem there should be native functionality for this in PS.  I have access to Photoshop CS4. Any pointers appreciated.
17551
I have a large file (8GB for Example). How can I split it into multiple parts, let's say 3 equal parts, and after that how do I integrate them later?
43647
I am very new to QGIS, so please bear with me.  I have a ".shp" file, which is contains a set of boundaries for suburbs of Australia. I opened it to QGIS and I would like to export it into a CSV file so that the final file would be like following.  POSTCODE, LATITUDE, LONGITUDE  When I select "Layer > Open attribute table" I can see the "postcode" column.  I had a look at a similar question here     Which told me to simply go to "Layer > Save as" and then type "GEOMETRY=AS_XY" or "GEOMETRY=AS_XYZ" in the "Layer" section of the "OGR creation options".  I followed exactly, but the latitude and longitude values are not being returned.
27777
I am generating new raster files from vector layers on a project. I would like to save them in the same directory as the project or layer files.   How do I find this path using PyQGIS?
42706
I need a list containing the names of all the layers in a QGIS session. I did the task as  layersNames = [] for i in self.iface.mapCanvas().layers():    layersNames.append(str(i.name()))   but this has the problem that only the names for the visible layers are extracted. How can I get a list with the names of all (visible or not) layers using PyQGIS?
93617
I need to build an app to analyze some raster layers in QGIS. I thought it was possible to just write code in python (2.7.6) (IDLE) and let it automatically open QGIS, load some layers, do a distance matrix, export that and load this file with python and use that information in the app. Is something like this possible? I have a mac running OSX10.9.1, using python 2.7.6 because I constantly got errors when using python 3.
26693
I would like to reconstruct a simple bitmap to vector, so I have put a grid and a layer on top of it.  Is it possible to e.g. use the fill tool, to just fill out one of the grid squares at a time?  Or is there a better way?
65265
I'm working on bulk data. I have a few hundred GeoTIFF images imported into a QGIS project, and I'd like to modify their layer properties - things like the no-data-value, transparency of certain pixel values, colour map assignments...  But I can't seem to find a way to apply these changes to several layers at once, short of editing the XML file with a global search-and-replace. Is there a way to do this using the GUI?
107815
I have about 300,000 CSV files which I want to convert to shapefiles, but ArcGIS and QGIS can only convert one CSV at a time.  Are there any ways to batch convert my CSVfiles?  x y z1 z2 z3 z4 1 2 3  4  5  6   My csv files just have a few columns like above  Can any one help me?
85126
I'm looking for tool that will be convert  WMS to vector layer.  Are they ready tool?(for example in python)
74450
I have an area which is divided into several zones the borders of which I have defined as separate layers.  The layers are defined by sql queries on a postgis table of line segments joined with a table that says which segments are part of which zone boundaries.  What I want to do is produce a set of maps where each map is a zoom to layer extent for each zone and which has standard header, legend and scale (which will preferably vary with the zone but could be fixed across all maps).  My first attempt was to get a new composer for each map -- that worked but was rather tedious.  Next I tried producing one map and printing it and then deleting the map frame and going into qgis to zoom to the next layer extent and make the boundary visible then hopping back into the composer to load it in.  This worked more or less.  Map was fine, legend was OK because it was the same for all the maps and the zone name was easy to edit but the scale needed to be deleted and set up again for each map.  Next I looked at Atlas Generation.  The manual seems to assume that you know how it works and all you need is a reminder about the details (like so many software manuals ;)  It seems to assume that you have something that you are iterating over but I can't see how to make it work -- there is nothing to iterate over to get the layers.  Any suggestions welcome!!  :)  Russell
38975
Lets suppose I have 10 objects in the root layer of my project named layer 1. Now lets suppose I quickly want to turn all those object as independent separate layers all at the root level. Is selecting individual object and pressing on collect in new layer the only way?  Is there a quick method of selecting all the objects and doing something to turn them all into layers at once?
1829
I am new at using QGIS. How can I simply split features in QGIS? The manual tells to simply draw a line through the polygon you want to split. But it doesn't work. The line disappears when finishing it. When I select the polygon and then split it, it sometimes works and sometimes doesn't (an info appears after which it does not split the feature). Does anybody have an idea why the tool does not work properly?