Re: [Qgis-user] Clipping tool takes a lot of time

2014-10-13 Thread Paolo Cavallini
Il 12/10/2014 23:31, Jonas Sjögren ha scritto: I am trying to clip a road network by a polygon in a script using the algorithm 'qgis:clip'. The result seems to be quite ok but it takes an incredible long time to produce, about 14 hours (!). Have you tried one of the several Processing

[Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread walter.nordmann
Hi, running 2.4 /phyton programming i need the Id of one of three layers and that layer is not the active one. want to remove that unneeded layer with python. Regards walter -- View this message in context:

[Qgis-user] Help QGIS main window higer than the disply (1200 x 1920)

2014-10-13 Thread Johan Nilsson
I have Ubuntu 14.04LTS and QGIS 2.4. I have not used QGIs for a long time and have problems to find thing, but this I a real big problem! If i move the QGIS main-window it resize and get bigger/higher than 1200 pixel (appoximaltly 1500 pixel high), and I can't make it smaller :( I have 4

Re: [Qgis-user] Help QGIS main window higer than the disply (1200 x 1920)

2014-10-13 Thread Johan Nilsson
If I start from terminal I get this errorrs Johan@Datorn:~$ qgis Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US] Warning: QGraphicsScene::addItem: item has already been added to this scene no need ; ; ; ; ; *; * deactivate parallellinetool

Re: [Qgis-user] Help QGIS main window higer than the disply (1200 x 1920)

2014-10-13 Thread Salvatore Larosa
Hi, On Mon, Oct 13, 2014 at 11:57 AM, Johan Nilsson joni8...@gmail.com wrote: If I start from terminal I get this errorrs Johan@Datorn:~$ qgis Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US] Warning: QGraphicsScene::addItem: item has already been added to

Re: [Qgis-user] Help QGIS main window higer than the disply (1200 x 1920)

2014-10-13 Thread Johan Nilsson
Hi. Will try that.. Seems to work :) Tanks Oiva :) 2014-10-13 12:02 GMT+02:00 Hakala Oiva (MTT) oiva.hak...@mtt.fi: Hi Johan Have you tried to temporarily rename or delete .qgis2 folder from you home folder and restart Qgis? Sometimes something goes wrong with settings. I also use

Re: [Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread Nathan Woodrow
Hey Walter. Try this: maplayers = QgsMapLayerRegistry.instance().mapLayers() maplayers will be a dict of layerid-layer object - Nathan On Mon, Oct 13, 2014 at 7:19 PM, walter.nordmann walter.nordm...@web.de wrote: Hi, running 2.4 /phyton programming i need the Id of one of three layers

Re: [Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread walter.nordmann
Nathan Woodrow wrote Try this: maplayers = QgsMapLayerRegistry.instance().mapLayers() maplayers will be a dict of layerid-layer object and than? i'm new to qgis programming and the documentation is not very helpfull :( Please no breadcrombs. Trying to solve this little problem for 2 day

Re: [Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread Nathan Woodrow
layer.id() returns the id http://qgis.org/api/classQgsMapLayer.html#a710f27dec806d3bcd5ae14701c2e6fd7 layer.name() returns the name http://qgis.org/api/classQgsMapLayer.html#aff7fb3990b6c736fbe41643666b027e5 If you have a layerid and you want to look up the layer object for it you can use:

[Qgis-user] Multiple QGIS installs (Windows)

2014-10-13 Thread Jonathan Moules
Hi list, I was wondering, is it possible to have multiple installs of QGIS at the same time on a Windows box? I.e.: 2.2 2.4 2.6 (in a month)? Or can you only have one? And does the answer vary depending on whether you're using the OSGeo installer or the standalone one? Cheers, Jonathan

Re: [Qgis-user] Multiple QGIS installs (Windows)

2014-10-13 Thread Randal Hale
I've had 2.2 and 2.4 using the OSGEO Installer. I haven't tried multiple copies with the standalone installer. Randy On 10/13/2014 09:02 AM, Jonathan Moules wrote: Hi list, I was wondering, is it possible to have multiple installs of QGIS at the same time on a Windows box? I.e.: 2.2

Re: [Qgis-user] Generating GeoTIFF overview (gdaladdo -r gauss ...) takes days for 2GB file...

2014-10-13 Thread Jonathan Moules
Hi Stefan, How large is the image? As in, pixel width height. Also the GDALinfo would be helpful. 7 days is a very long time. I've seen times like that myself for images that were 100,000*50,000 or similar dimensions where there was (still is?) an issue with the pyramiding function in GDAL

Re: [Qgis-user] Multiple QGIS installs (Windows)

2014-10-13 Thread McDonaldR
Hi Jonathan Yes, you can. You can install the standalone version - it installs into a unique folder under C:\Program Files\ You can install using OSGeo4W and install the latest stable and development releases into OSGeo4W\apps\qgis and qgis-dev However, having said this all installs (I have

Re: [Qgis-user] Multiple QGIS installs (Windows)

2014-10-13 Thread Nathan Woodrow
Use the --configpath and --settings path command line options to split the config and settings path. Nathan On Oct 13, 2014 11:13 PM, McDonaldR mcdona...@angus.gov.uk wrote: Hi Jonathan Yes, you can. You can install the standalone version – it installs into a unique folder under

Re: [Qgis-user] Simple Georeference a .png chart

2014-10-13 Thread Jonathan Moules
Hi Alex, It may just be me being slow, but it's not entirely clear what you're trying to accomplish here. As best I can tell the two images are at very very different scales. Are you trying to georeference the Newark close-up onto the Newark-area map? I believe using a transformation Type of

Re: [Qgis-user] Generating GeoTIFF overview (gdaladdo -r gauss ...) takes days for 2GB file...

2014-10-13 Thread Ziegler Stefan
Hi Stefan Does it need to be gauss as resampling method? You can use QGIS' own resampling functionality to get nice raster rendering. Regards Stefan -Ursprüngliche Nachricht- Von: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von

Re: [Qgis-user] Clipping tool takes a lot of time

2014-10-13 Thread Paolo Cavallini
Il 13/10/2014 15:40, Jonas Sjögren ha scritto: thank you for answering. Actually, I have not found any other processing tools for clipping a shapefile by another shapefile than the 'qgis:clip', except for the 'gdalogr:ogr2ogr'. Do you have any suggestions? Try in Processing: v.overlay or

Re: [Qgis-user] Multiple QGIS installs (Windows)

2014-10-13 Thread Richard Duivenvoorde
On 13-10-14 15:15, Nathan Woodrow wrote: Use the --configpath and --settings path command line options to split the config and settings path. Read something about that here: http://www.qgis.nl/2014/04/22/qgis-in-de-klas-onder-windows/?lang=en Richard

Re: [Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread walter.nordmann
last try: That is all what i want to do. Create a layer, use it for clipping (works fine) and remove it. Reduced code: clipLayer.id is not accepted. http://qgis.org/api/2.2/classQgsMapLayerRegistry.html#ae16eed3de96bd605893d06551ceacb1c running 2.4. have specifications changed from 2.2 to

Re: [Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread walter.nordmann
omg, got it: QgsMapLayerRegistry.instance().removeMapLayer(clipLayer.id*()*) walter 2 1/2 days for one statement :( -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Get-layer-id-by-layer-not-by-acive-layer-tp5167152p5167248.html Sent from the Quantum GIS - User mailing

Re: [Qgis-user] Get layer-id by layer (not by acive layer)

2014-10-13 Thread Matthias Kuhn
Hi Walter, I'm glad you found it! Small hint for next time: paste some code from what you tried already and it will be easier to spot the error for others :-) Regards, Matthias On 13.10.2014 16:46, walter.nordmann wrote: omg, got it:

[Qgis-user] Join multiple values

2014-10-13 Thread labiancamaril...@libero.it
Dear all, I would like to know whether the join command, you can associate multiple values. For example, the same municipality has different classes of economic activities and corrispondent values of no. of workers. QGIS should associate for each municipalities multiple values. I tried to

Re: [Qgis-user] Help QGIS main window higer than the disply (1200 x 1920)

2014-10-13 Thread Mike Flannigan
This also happens on Win7 64 QGIS 2.4.0. Not right away, but after working with a QGIS file for a while the top of the window freezes against the top of the display area, and the bottom of the QGIS window is down below the screen size. The only way I have found to fix this is close down and

Re: [Qgis-user] Clipping tool takes a lot of time

2014-10-13 Thread Mike Flannigan
I am also using QGIS 2.4 64b Chugiak on Windows 7. The same thing happens to me. Even when I create a line layer with only 11 lines and try to clip 3 of them with a polygon layer, the progress bar just goes back and forth for ever. I didn't run it for hours to see what would eventually happen.