Re: [Qgis-user] HTML tags in label expresion on QGIS 2.0.1

2013-10-21 Thread Nathan Woodrow
Hey,

HTML based labels aren't supported yet.  What you see in the dialog is a
render preview using a QLabel which can handle HTML.  I need to change that
to just use plain text rather then rich text.

It was never supported in any older versions.

- Nathan


On Tue, Oct 22, 2013 at 4:22 PM, Paulius Litvinas wrote:

> Hello list,
>
> ** **
>
> I tried to use HTML bold tag  for a part of label text in label
> expression.
>
> ** **
>
> HTML tags are properly interpreted and rendered on „Expression based
> label“ dialog at Output preview, but unfortunately not the same on the map.
> 
>
> You can see in the image below – red and green areas.
>
> http://img42.com/Hd4Zp
>
> ** **
>
> Maybe there is some kind of setting to enable this on map render? (I
> couldn‘t find) Or this is a bug?
>
> As I remember this used to work in 1.x versions.
>
> ** **
>
> Sincerely,
>
> Paul
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] HTML tags in label expresion on QGIS 2.0.1

2013-10-21 Thread Paulius Litvinas
Hello list,

 

I tried to use HTML bold tag  for a part of label text in label
expression.

 

HTML tags are properly interpreted and rendered on "Expression based label"
dialog at Output preview, but unfortunately not the same on the map. 

You can see in the image below - red and green areas.

http://img42.com/Hd4Zp

 

Maybe there is some kind of setting to enable this on map render? (I
couldn't find) Or this is a bug?

As I remember this used to work in 1.x versions.

 

Sincerely,

Paul

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Python Script for Multi-band zonal statistics

2013-10-21 Thread Leo Kris Palao
Dear QGIS Users,

Often we want to compute for band statistics for our stacked layers (i.e.,
bands 1 to 9). In QGIS, the available plugin for this is the Zonal
Statistics plugin but it only computes for one band at a time, and as we
suspect if our input is a stacked layer the plugin seems to get the average
values for all the stacked layers in a polygon.

So, I searched for some answers in the web, and I found a python script. I
used it and it seems to be working well, but this only works for one band,
So, what I did was to copy the script and change the band number for each
copy. However, this resulted in a very long script, and I think there is a
much better script than this. Can someone help me improve my script. I am
just new to Python. I just completed a basic Python training course.

import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(1),1)
zonalstats.calculateStatistics(None)
import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(2),2)
zonalstats.calculateStatistics(None)
import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(3),3)
zonalstats.calculateStatistics(None)
import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(4),4)
zonalstats.calculateStatistics(None)
import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(5),5)
zonalstats.calculateStatistics(None)
import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(6),6)
zonalstats.calculateStatistics(None)
import qgis.analysis
vectorlayer=qgis.utils.iface.mapCanvas().layer(0)
rasterfile = qgis.utils.iface.mapCanvas().layer(1).source()
zonalstats =
qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile,str(7),7)
zonalstats.calculateStatistics(None)

We used this tool most often to determine the average reflectance or
backscatter from our images per zone (polygon).

Thanks in advance,
-Leo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] setting name in title bar

2013-10-21 Thread Brent Fraser

Nathan,

  I'll try using the API, but I thought when I was going through the 
Plugin doc I found info on a setting in a startup config file.  And the 
Project approach tacks on the project name to show "QGIS 2.0.1 Dufour - 
projectname" instead of replacing the text...


Thanks!

Best Regards,
Brent Fraser

On 10/21/2013 5:00 PM, Nathan Woodrow wrote:
You can do this my doing iface.mainWindow().setWindowTitle("my 
title").  If you give the project a name in Project -> Project 
Settings -> Project Title it should also show up in there.


- Nathan


On Tue, Oct 22, 2013 at 12:24 AM, Brent Fraser 
mailto:bfra...@geoanalytic.com>> wrote:


A few months ago I found some info on setting the name of QGIS in
the title bar (I think it involved an entry in a config (.ini?)
file).  But now I can't find that information.  Does anyone have
any pointers?

Thanks!

-- 
Best Regards,

Brent Fraser


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/qgis-user




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] setting name in title bar

2013-10-21 Thread Nathan Woodrow
You can do this my doing iface.mainWindow().setWindowTitle("my title").  If
you give the project a name in Project -> Project Settings -> Project Title
it should also show up in there.

- Nathan


On Tue, Oct 22, 2013 at 12:24 AM, Brent Fraser wrote:

> A few months ago I found some info on setting the name of QGIS in the
> title bar (I think it involved an entry in a config (.ini?) file).  But now
> I can't find that information.  Does anyone have any pointers?
>
> Thanks!
>
> --
> Best Regards,
> Brent Fraser
>
>
> __**_
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How can I reset the starting point of a QgsFeatureIterator?

2013-10-21 Thread Nathan Woodrow
I would just grab a new one.  It's pretty cheap.

- Nathan


On Tue, Oct 22, 2013 at 12:01 AM, Stefano Masera <
stefano.mas...@arpa.piemonte.it> wrote:

> The reason is to be more fast.
> I think that restart an iterator is more fast than grab a new one from the
> same layer.
> But I don't know if it's true!
> Thanks
>
>
> --
> *Da: *"Nathan Woodrow" 
> *A: *"Stefano Masera" 
> *Cc: *"qgis-user" 
> *Inviato: *Lunedì, 21 ottobre 2013 15:56:35
> *Oggetto: *Re: [Qgis-user] How can I reset the starting point of a
> QgsFeatureIterator?
>
>
> Just grab a new iterator.  Any reason you want to reuse the same iteratror.
> On 21/10/2013 11:44 PM, "Stefano Masera" 
> wrote:
>
>> Hi list,
>> I use an iterator two times in a python code and I have to reset it to
>> the starting point before to recall it.
>>
>> # first use of the iterator
>> iterator = layer.dataProvider().getFeatures()
>> for feature in iterator:
>> #  operations
>> # than, a second time I have to use the operator, in a following part of
>> the code:
>> for feature in iterator:
>> #  other operations
>>
>> But it doesn't start from the first feature!
>>
>> I try with:
>> iterator.rewind()
>> between the two blocks, but it doesn't work.
>>
>> Thanks.
>>
>> Stefano Masera
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] qgis server

2013-10-21 Thread Dario
I was watching the tutorial 
(http://anitagraser.com/2012/04/06/qgis-server-on-windows7-step-by-step) the 
qgis server on windows made ​​by anita graser, and I was with a doubt:

when it says to do: Let's test the setup using "Add WMS Layer" in QGIS by 
adding the service URL and ticking "Ignore GetMap URI ..." and "Ignore 
GetFeature URI ...".

what is this service URL?? as I write this in the URL field of the WMS layer?___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Boosing Rendering Performance: Call for funding

2013-10-21 Thread Saber Razmjooei
Dear list,

 

We are looking to embark on a project to boost the drawing performance of QGIS 
to greatly decrease screen refresh times by taking advantage of multiple CPU 
cores.  We’re turning to the list to see if this is something that any of you 
(or any organisations you know) would be interested in co-funding.  

 

Besides ourselves, the Swiss QGIS User Group has very kindly offered to fund 
the development.  We are looking to raise approximately €20k in total and are 
looking for minimum donations of €1000 to reduce administrative overhead.  

 

Please contact us if you’d like to help,

 

Kind regards,

 

Saber Razmjooei
Lutra Consulting
  www.lutraconsulting.co.uk



 



--
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately 
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not the intended recipient you are notified 
that disclosing, copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited.

Whilst reasonable care has been taken to avoid virus transmission, no 
responsibility for viruses is taken and it is your responsibility to carry out 
such checks as you feel appropriate.

Saber Razmjooei and Peter Wells trading as Lut
 ra Consulting.

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Add Delimited Tex Layer plugin crash

2013-10-21 Thread venerio giuseppe anardu
Hello to everybody,

On my plugin list the plugin "Add Delimited Tex Layer" is unchecked: when I 
select it appears this error message:

    minidump scritto a 
C:\Users\\AppData\Local\Temp\qgis-20131021-204218-2560-4780-exported.dmp

and QGIS crashes.
I've installed QGIS 2.0 on Windows 7 64bit.
Does anyone knows where's the problem?


With many thanks in advance,

Giuseppe
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem with WMS 1.1.1 data providers in QGIS 2.0.1

2013-10-21 Thread Richard Duivenvoorde
On 21-10-13 20:07, Miguel Ángel Castro wrote:
> I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.
> 
> Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628 
> 
> http://idecan2.grafcan.es/ServicioWMS/EspNat   
> 
> In layer properties/metadata you can see the information from
> datasource, but no display the layer (not load data) in canvas.
> 
> In log messages: Map request error (status: 200  getDouble(): Symbol
> definition error. Parsing error near (96): (line 1).
> 
> Does anybody have an idea what is the problem?

Hi Miguel,

the error message that you see is a (Minnesota) Mapserver error message.
Somewhere in the style definitions it expects a number (or not).

This url I get from QGIS in debug mode, and gives you your error:

http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&TRANSPARENT=TRUE

Bug if I remove the "&DPI=96&MAP_RESOLUTION=96" part from it, I get a map:

http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png

I'm not familiar with the exact WMS-standard, but as most WMS servers I
know (and use) can handle these two query parameters from QGIS, I think
it is a Mapserver configuration problem/error. You cannot let QGIS
remove those params I think.

Regards,


Richard Duivenvoorde
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Problem with WMS 1.1.1 data providers in QGIS 2.0.1

2013-10-21 Thread Miguel Ángel Castro
I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.

Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628

http://idecan2.grafcan.es/ServicioWMS/EspNat

In layer properties/metadata you can see the information from datasource,
but no display the layer (not load data) in canvas.

In log messages: Map request error (status: 200  getDouble(): Symbol
definition error. Parsing error near (96): (line 1).

Does anybody have an idea what is the problem?


Thanks
Miguel Ángel castro
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] qgis cloud

2013-10-21 Thread Dario



I am not able to upload the qgiscloud, (it was not possible to connect to port 
).

can anyone help me?

I'm using qgis 1.8, windows 7___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Opening view or table using DBManager locks it in postgis

2013-10-21 Thread Giuseppe Sucameli
Hi Alexandre,

On Mon, Oct 21, 2013 at 5:51 PM, Alexandre Neto 
wrote:
>
> Opening with DBManager creates lots of locks in postgres (see below),
that are only released when QGIS is closed. During the lock, it seems
impossible to alter specific tables or views.
>
> (...)
>
> Is this expected?

no, that's not the intended behaviour.

Shared locks for select queries are ok (that's how postgres works) but they
must be released once cursors are closed (or even deleted).

Please, file a ticket on the QGIS trac [1].

Regards.

[1] http://hub.qgis.org/projects/quantum-gis/issues

--
Giuseppe Sucameli
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Error loading SIP module.

2013-10-21 Thread Goyo
2013/10/21 Nicholas L. Klein-Baer :
> Hi all,
>
> I'm having a problem with QGIS 2.0.1 on Ubuntu 13.04 very similar to the one
> described bug 8832. The resolution, however, isn't helping me very much.
>
If you want to use a different python/sip/pyqt4 than what is in your
 ubuntu by default, you need to build QGIS yourself against it.
>
> I'm a little confused by this because I don't think sip was install by
> default: Before I manually installed it I was getting an error saying "no
> module named sip"
> Any ideas on what I should do?

"Default" here means the version provided by Ubuntu in the standard
repositories, as opposed to the EPD version provided by Entough or the
upstream version of sip provided by Riverbank.

Goyo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Opening view or table using DBManager locks it in postgis

2013-10-21 Thread Alexandre Neto
Hello all,

While opening postgis tables and views in QGIS 2.0 (windows 7 64bit), I
noticed some different behaviors whether I use DBManager or Add Postgis
Layer.

Opening with DBManager creates lots of locks in postgres (see below), that
are only released when QGIS is closed. During the lock, it seems impossible
to alter specific tables or views.

For instance, having layer "One" and Layer "two" in QGIS, both tables added
from DBManager, I am not being able to run a trigger to update table "two"
whenever I commit a change in a table "one". If layer two is added  using
"Add Postgis Layer" this problem does not occur.

Is this expected?

Best Regards

Alexandre Neto


2256 postgis pg_constraint_conname_nsp_index postgres 6/14139
AccessShareLock Sim 2013-10-21 16:29:29+01 SELECT rulename, definition FROM
pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_constraint postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis 17044 postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_type postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_attribute postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_description_o_c_o_index postgres 6/14139
AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_namespace_oid_index postgres 6/14139 AccessShareLock
Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_namespace_nspname_index postgres 6/14139
AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_description postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_namespace postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_class_relname_nsp_index postgres 6/14139
AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_class_oid_index postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_class postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_proc_proname_args_nsp_index postgres 6/14139 AccessShareLock
Sim 2013-10-21 16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_proc_oid_index postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_proc postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgres 6/14139 6/14139 ExclusiveLock Sim 2013-10-21 16:29:29+01 SELECT
rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_attrdef postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_statistic postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_rewrite_rel_rulename_index postgres 6/14139 AccessShareLock
Sim 2013-10-21 16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_type_typname_nsp_index postgres 6/14139
AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_rewrite_oid_index postgres 6/14139 AccessShareLock Sim
2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_index_indrelid_index postgres 6/14139 AccessShareLock
Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_index postgres 6/14139 AccessShareLock Sim 2013-10-21
16:29:29+01 SELECT rulename, definition FROM pg_rules
WHERE tablename='sgev'  AND schemaname='epvu'
2256 postgis pg_type_oid_index postgr

Re: [Qgis-user] Labels and SLDs

2013-10-21 Thread Steve Campbell
Hi Marco

Thanks for that. Just added it to the feature list.

Thanks

Steve



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Labels-and-SLDs-tp5084826p5084835.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Labels and SLDs

2013-10-21 Thread Marco Lechner - FOSSGIS e.V.
Hi Steve,

this is not implemented yet. Do you want to fill a feature request? Use
http://hub.qgis.org/projects/quantum-gis

Marco

Am 21.10.2013 16:57, schrieb Steve Campbell:
> Hi
>
> Can anyone tell me how I can save label information in to an SLD file from
> QGIS 2.0? 
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Labels-and-SLDs-tp5084826.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
+
FOSSGIS 2014, Die Konferenz für Open Source GIS mit OpenData und OpenStreetMap!
19-21. März, Beuth HS für Technik, Berlin, http://www.fossgis.de/konferenz/2014/
+
FOSSGIS e.V.

die unabhängige Hilfe bei freier GIS-Software und freien Geodaten
http://www.fossgis.de
+

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Labels and SLDs

2013-10-21 Thread Steve Campbell
Hi

Can anyone tell me how I can save label information in to an SLD file from
QGIS 2.0? 

Thanks



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Labels-and-SLDs-tp5084826.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] setting name in title bar

2013-10-21 Thread Brent Fraser
A few months ago I found some info on setting the name of QGIS in the 
title bar (I think it involved an entry in a config (.ini?) file).  But 
now I can't find that information.  Does anyone have any pointers?


Thanks!

--
Best Regards,
Brent Fraser


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How can I reset the starting point of a QgsFeatureIterator?

2013-10-21 Thread Stefano Masera
The reason is to be more fast. 
I think that restart an iterator is more fast than grab a new one from the same 
layer. 
But I don't know if it's true! 
Thanks 



- Messaggio originale -

Da: "Nathan Woodrow"  
A: "Stefano Masera"  
Cc: "qgis-user"  
Inviato: Lunedì, 21 ottobre 2013 15:56:35 
Oggetto: Re: [Qgis-user] How can I reset the starting point of a 
QgsFeatureIterator? 


Just grab a new iterator. Any reason you want to reuse the same iteratror. 
On 21/10/2013 11:44 PM, "Stefano Masera" < stefano.mas...@arpa.piemonte.it > 
wrote: 




Hi list, 
I use an iterator two times in a python code and I have to reset it to the 
starting point before to recall it. 


# first use of the iterator 
iterator = layer.dataProvider().getFeatures() 

for feature in iterator: 
# operations 

# than, a second time I have to use the operator, in a following part of the 
code: 

for feature in iterator: 
# other operations 


But it doesn't start from the first feature! 



I try with: 
iterator.rewind() 
between the two blocks, but it doesn't work. 


Thanks. 





Stefano Masera 

___ 
Qgis-user mailing list 
Qgis-user@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/qgis-user 



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How can I reset the starting point of a QgsFeatureIterator?

2013-10-21 Thread Nathan Woodrow
Just grab a new iterator.  Any reason you want to reuse the same iteratror.
On 21/10/2013 11:44 PM, "Stefano Masera" 
wrote:

> Hi list,
> I use an iterator two times in a python code and I have to reset it to the
> starting point before to recall it.
>
> # first use of the iterator
> iterator = layer.dataProvider().getFeatures()
> for feature in iterator:
> #  operations
> # than, a second time I have to use the operator, in a following part of
> the code:
> for feature in iterator:
> #  other operations
>
> But it doesn't start from the first feature!
>
> I try with:
> iterator.rewind()
> between the two blocks, but it doesn't work.
>
> Thanks.
>
> Stefano Masera
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] How can I reset the starting point of a QgsFeatureIterator?

2013-10-21 Thread Stefano Masera
Hi list, 
I use an iterator two times in a python code and I have to reset it to the 
starting point before to recall it. 


# first use of the iterator 
iterator = layer.dataProvider().getFeatures() 

for feature in iterator: 
# operations 

# than, a second time I have to use the operator, in a following part of the 
code: 

for feature in iterator: 
# other operations 


But it doesn't start from the first feature! 



I try with: 
iterator.rewind() 
between the two blocks, but it doesn't work. 


Thanks. 





Stefano Masera 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Help running SAGA algorithms

2013-10-21 Thread Julian Bogdani
Hello all,
I'm trying to run saga algorithms (Kriging) on QGIS, MacOS X (10.6.8) (and Win, 
7) without success.
I've installed latest QGIS from KyngChaos site.
Saga seems to be installed correctly.
Here is the message I get:
Oooops! The following output layers could not be open

Grid: /Users/jbogdani/Desktop/gis/one.tif
Variance: /Users/jbogdani/Desktop/gis/two.tif
The above files could not be opened, which probably indicates that they were 
not correctly produced by the executed algorithm

Checking the log information might help you see why those layers were not 
created as expected

This algorithm requires SAGA to be run. A test to check if SAGA is correctly 
installed and configured in your system has been performed, with the following 
result:

SAGA seems to be correctly installed and configured

Thank you

-
Julian Bogdani
jbogd...@gmail.com
http://bradypus.net





___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Topological editing of two vector layers

2013-10-21 Thread Alexandre Neto
Hello Deon,

If you have the chance, exporting both your layers to Postgres\Postgis,
would allow you to, for each district geometry, run ST_Snap[1] against its
related province geometry. With the correct tolerance, this might solve a
big part of your Boundary differences.

Even tho, you would need to check the result and correct the rest of the
problems manually.

Best regards,

Alexandre Neto

[1] http://postgis.org/docs/ST_Snap.html


On Mon, Oct 21, 2013 at 8:10 AM, Harish  wrote:

> If the layers are digitized by different agencies and dissolving is time
> consuming for each next higher level, then the automatic snapping of
> boundaries within tolerance distance, with keeping one layer as correct
> layer will be a useful feature.
> Regards
>
>
>
> On Tue, Oct 15, 2013 at 7:25 PM, Carlos Cerdán wrote:
>
>> ... or you can disolve your districts to obtain new provinces and leave
>> the old layer
>>
>> Good luck
>>
>> Carlos Cerdán
>>
>>
>> 2013/10/15 Lene Fischer 
>>
>>>  Hello Deon
>>> You can use the function Avoid Intersection while digitizing.
>>> In this way you avoid overlap - but not gaps.
>>> Read more about this issue in the usermanual
>>>
>>>
>>> http://qgis.org/en/docs/gentle_gis_introduction/06_topology.html?highlight=snap
>>>
>>> http://qgis.org/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html?highlight=snap
>>>
>>>  Regards
>>> Lene Fischer
>>>
>>>  --
>>> *Fra:* qgis-user-boun...@lists.osgeo.org [
>>> qgis-user-boun...@lists.osgeo.org] på vegne af Pretorius Deon -
>>> Lieutenant Colonel [pretoriusd...@saps.gov.za]
>>> *Sendt:* 15. oktober 2013 06:55
>>> *Til:* 'qgis-user@lists.osgeo.org'
>>> *Emne:* [Qgis-user] Topological editing of two vector layers
>>>
>>>   Hi, Iam new to QGIS. I have two boundary vector  layers, the one
>>> exist of polygons of all the provinces and the other of all the districts.
>>> The district boundaries must be aligned with the provincial boundaries.
>>> Since there is so much errors that needs alignment and rectification  I was
>>> wondering if there isn’t an easier way as to snap to the boundaries without
>>> to drag each vertex which is very time consuming.  Is there perhaps a way
>>> where the whole identified segments/vertex of the districts can be aligned
>>> easier to the provincial boundaries.
>>>
>>>
>>>
>>> Regards
>>>
>>>
>>>
>>> Deon Pretorius
>>>
>>>
>>>
>>>
>>>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2 and interlis format

2013-10-21 Thread Stefan Keller
Yes, it's probably not compiled by default under Linux because of it's
dependency to a Java runtime.
In addition, the Interlis 2 driver is incomplete.
There is a project underway which delivers a new Interlis 1 and 2 driver
end of this year (without Java dependency).

Yours, S.


2013/10/21 Jukka Rahkonen 

>   writes:
>
> >
> > Hi all,
> > I would like to display interlis data
> > in QGIS 2, but I can't find the format in the list of vector data
> formats.
> > In QGIS 1.8, the format is in the list (INTERLIS 1 [OGR]). OGR supports
> > this format, why does QGIS 2 not ? I tried to display all files *.* and
> > select an itf file, but QGIS 2 fires an error.
> > QGIS version : 2.0.1
> > QGDAL/OGR version : 1.10.0
> > Thanks,
> > Daniel
>
> Hi,
>
> Most probably GDAL is not built with Interlis driver. There are lots of OGR
> formats which are not built by default and Interlis seems to be one of
> those
> http://www.gdal.org/ogr/ogr_formats.html
>
> -Jukka Rahkonen-
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2 and interlis format

2013-10-21 Thread Jukka Rahkonen
  writes:

> 
> Hi all, 
> I would like to display interlis data
> in QGIS 2, but I can't find the format in the list of vector data formats.
> In QGIS 1.8, the format is in the list (INTERLIS 1 [OGR]). OGR supports
> this format, why does QGIS 2 not ? I tried to display all files *.* and
> select an itf file, but QGIS 2 fires an error.
> QGIS version : 2.0.1
> QGDAL/OGR version : 1.10.0
> Thanks, 
> Daniel  

Hi,

Most probably GDAL is not built with Interlis driver. There are lots of OGR
formats which are not built by default and Interlis seems to be one of those
http://www.gdal.org/ogr/ogr_formats.html

-Jukka Rahkonen-


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS 2 and interlis format

2013-10-21 Thread Daniel . Gnerre
Hi all, 

I would like to display interlis data in QGIS 2, but I can't find the 
format in the list of vector data formats. In QGIS 1.8, the format is in 
the list (INTERLIS 1 [OGR]). OGR supports this format, why does QGIS 2 not 
? I tried to display all files *.* and select an itf file, but QGIS 2 
fires an error.

QGIS version : 2.0.1
QGDAL/OGR version : 1.10.0

Thanks, 

Daniel 



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Export map to pdf defective

2013-10-21 Thread Andreas Neumann

Hi Nelson,

This is probably not a bug. It sounds like you have the Atlas serial 
printing active. In the print composer have a look at the "Atlas 
Generation" panel and make sure it is not enabled.


Hope this helps.

Andreas

On Sun, 20 Oct 2013 17:58:22 -0200, Nelson Fava wrote:

Dear Sirs.,

First of all congratularions for the new Quantum GIS 2.0.

I was playing with it last friday, October 18yh., succeeded in
georreferencing high resolution satelite images, very happy. When I
decided to export the map I constructed made to pdf format, there was
a series of at least 10 (ten) maps generated, one of the whole map I
made and the others were fragments of the main map, each of them from
a different map of the "mother map". Can you solve this bug?

Thanks in advance,

Sincerely,

Nelson Fava.


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Topological editing of two vector layers

2013-10-21 Thread Harish
If the layers are digitized by different agencies and dissolving is time
consuming for each next higher level, then the automatic snapping of
boundaries within tolerance distance, with keeping one layer as correct
layer will be a useful feature.
Regards


On Tue, Oct 15, 2013 at 7:25 PM, Carlos Cerdán  wrote:

> ... or you can disolve your districts to obtain new provinces and leave
> the old layer
>
> Good luck
>
> Carlos Cerdán
>
>
> 2013/10/15 Lene Fischer 
>
>>  Hello Deon
>> You can use the function Avoid Intersection while digitizing.
>> In this way you avoid overlap - but not gaps.
>> Read more about this issue in the usermanual
>>
>>
>> http://qgis.org/en/docs/gentle_gis_introduction/06_topology.html?highlight=snap
>>
>> http://qgis.org/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html?highlight=snap
>>
>>  Regards
>> Lene Fischer
>>
>>  --
>> *Fra:* qgis-user-boun...@lists.osgeo.org [
>> qgis-user-boun...@lists.osgeo.org] på vegne af Pretorius Deon -
>> Lieutenant Colonel [pretoriusd...@saps.gov.za]
>> *Sendt:* 15. oktober 2013 06:55
>> *Til:* 'qgis-user@lists.osgeo.org'
>> *Emne:* [Qgis-user] Topological editing of two vector layers
>>
>>   Hi, Iam new to QGIS. I have two boundary vector  layers, the one exist
>> of polygons of all the provinces and the other of all the districts.  The
>> district boundaries must be aligned with the provincial boundaries.  Since
>> there is so much errors that needs alignment and rectification  I was
>> wondering if there isn’t an easier way as to snap to the boundaries without
>> to drag each vertex which is very time consuming.  Is there perhaps a way
>> where the whole identified segments/vertex of the districts can be aligned
>> easier to the provincial boundaries.
>>
>>
>>
>> Regards
>>
>>
>>
>> Deon Pretorius
>>
>>
>>
>>
>>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user