[Qgis-user] RE: Qgis-user Digest, Vol 70, Issue 62

Jan Kašpar kaspar.jan at mujmail.cz
Sun Jan 1 06:57:48 PST 2012



Odesláno z Windows® phone

----- Puvodní zpráva -----
Od: qgis-user-bounces at lists.osgeo.org <qgis-user-bounces at lists.osgeo.org>
Odesláno: 29. prosince 2011 18:00
Komu: qgis-user at lists.osgeo.org <qgis-user at lists.osgeo.org>
Predmet: Qgis-user Digest, Vol 70, Issue 62

Send Qgis-user mailing list submissions to
	qgis-user at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/qgis-user
or, via email, send a message with subject or body 'help' to
	qgis-user-request at lists.osgeo.org

You can reach the person managing the list at
	qgis-user-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Qgis-user digest..."


Today's Topics:

   1. Georeferencing raster (Giacomo Fontanelli)
   2. Re: Add new template to the composer (Marco Hugentobler)
   3. Re: Add new template to the composer (Paolo Cavallini)
   4. Re: Add new template to the composer (Marco Hugentobler)
   5. Registering Custom Symbol Libarary - reference to	Postgresql
      column (Minja)
   6. Re: New Labeling: conditional labels (Giuseppe Sucameli)
   7. Syntax highlighting in expression builder dialog (Nathan Woodrow)
   8. Re: New Labeling: conditional labels (Giuseppe Sucameli)


----------------------------------------------------------------------

Message: 1
Date: Thu, 29 Dec 2011 10:36:08 +0000 (GMT)
From: Giacomo Fontanelli <giacomofontanelli at yahoo.it>
Subject: [Qgis-user] Georeferencing raster
To: "Qgis-user at lists.osgeo.org" <Qgis-user at lists.osgeo.org>
Message-ID:
	<1325154968.21487.YahooMailNeo at web24820.mail.ird.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi
I've used the georeferencing plugin in QGis 1.7.2 Wroclaw for a Tif image.
I think I've followed the right procedure, indeed I can see the GCP upon the
other layers in the right position, but I can't see the map: it seems
transparent.
 
Where did I go wrong?
 
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/qgis-user/attachments/20111229/ad4e070d/att
achment-0001.html

------------------------------

Message: 2
Date: Thu, 29 Dec 2011 11:41:37 +0100
From: Marco Hugentobler <marco.hugentobler at sourcepole.ch>
Subject: Re: [Qgis-user] Add new template to the composer
To: qgis-user at lists.osgeo.org
Message-ID: <4EFC43E1.2010606 at sourcepole.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

>Hi all.
>Wouldn't it be better using the /home dir instead of /usr/share/qgis for
this?
>All the best.

Is there a particular advantage if putting it in the home dir? In 
/usr/share/qgis, the templates are available for all system users.

Regards,
Marco

On 29.12.2011 10:54, Paolo Cavallini wrote:
> Il 28/12/2011 19:05, Marco Hugentobler ha scritto:
>> Hi Yves
>>
>> Add a new directory called 'composer_templates' into /usr/share/qgis and
save
>> template files into it ('Save as template' in print composer window). The
>> composermanager creates a new entry for each template in that directory.
> Hi all.
> Wouldn't it be better using the /home dir instead of /usr/share/qgis for
this?
> All the best.
>


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfdffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



------------------------------

Message: 3
Date: Thu, 29 Dec 2011 11:54:18 +0100
From: Paolo Cavallini <cavallini at faunalia.it>
Subject: Re: [Qgis-user] Add new template to the composer
To: qgis-user at lists.osgeo.org
Message-ID: <4EFC46DA.8050403 at faunalia.it>
Content-Type: text/plain; charset=ISO-8859-1

Il 29/12/2011 11:41, Marco Hugentobler ha scritto:
>> Hi all.
>> Wouldn't it be better using the /home dir instead of /usr/share/qgis for
this?
>> All the best.
> 
> Is there a particular advantage if putting it in the home dir? In
/usr/share/qgis,
> the templates are available for all system users.

The advantage is that also normal user can write to it (non need for admin
rights).
Of course the best approach is the one used for plugins: using both. Would
this be
difficult to implement?
All the best.
-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc


------------------------------

Message: 4
Date: Thu, 29 Dec 2011 12:17:59 +0100
From: Marco Hugentobler <marco.hugentobler at sourcepole.ch>
Subject: Re: [Qgis-user] Add new template to the composer
To: qgis-user at lists.osgeo.org
Message-ID: <4EFC4C67.4030200 at sourcepole.ch>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

>The advantage is that also normal user can write to it (non need for admin
rights).
>Of course the best approach is the one used for plugins: using both. Would
this be
>difficult to implement?
>All the best.

It is not difficult to implement.
However, the user can save/open the personal templates in composer 
already conveniently.

The use case of the default templates was to have the possibility to 
ship (company) specific templates as part of the installation to a large 
number of users.

Regards,
Marco

On 29.12.2011 11:54, Paolo Cavallini wrote:
> Il 29/12/2011 11:41, Marco Hugentobler ha scritto:
>>> Hi all.
>>> Wouldn't it be better using the /home dir instead of /usr/share/qgis for
this?
>>> All the best.
>> Is there a particular advantage if putting it in the home dir? In
/usr/share/qgis,
>> the templates are available for all system users.
> The advantage is that also normal user can write to it (non need for admin
rights).
> Of course the best approach is the one used for plugins: using both. Would
this be
> difficult to implement?
> All the best.


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfdffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



------------------------------

Message: 5
Date: Thu, 29 Dec 2011 13:20:52 +0100
From: Minja <msiljegovic at gmail.com>
Subject: [Qgis-user] Registering Custom Symbol Libarary - reference to
	Postgresql column
To: qgis-user at lists.osgeo.org
Message-ID:
	<CAJFPnRwhUYWYUigUUWEJcQFbmZW-VyHbNprusjjT+NSis+=PZA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I need to add my custom symbol library to qgis. I know that I need to copy
my .svg symbols to following path OSGeo4W\apps\qgis\svg.

I'm loading layer from postgresql database where I have column with values
that should point to my symbols. So if I have .svg file "test.svg",
corresponding value in the table row I should have value "test".

However, I'm not able to correctly load my custom symbols on canvas in this
way. If I say use this column for labeling, in Quantum GIS, I can only see
row values (e.g. "test") in the place where symbol should be shown. Does
anyone know how is possible to do this or know if there is some blog post
about this, I could not find anything on Google.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/qgis-user/attachments/20111229/8c54dc4e/att
achment-0001.html

------------------------------

Message: 6
Date: Thu, 29 Dec 2011 14:18:19 +0100
From: Giuseppe Sucameli <sucameli at faunalia.it>
Subject: Re: [Qgis-user] New Labeling: conditional labels
To: Andreas Neumann <a.neumann at carto.net>
Cc: qgis-user <qgis-user at lists.osgeo.org>
Message-ID:
	<CAA6k8-LjHFsm5KCWCb3GMBQ23WV0QNjhKatBMdC81d6mpbJ59w at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Andreas,

On Thu, Dec 29, 2011 at 11:25 AM, Andreas Neumann <a.neumann at carto.net>
wrote:
> I think I sort of understand the syntax - at least the > operator and the
> substr. What I do not understand is why I need the *-1 (multiplier).

when the condition is true I need the entire string,
so if id > 0 then substr(id, 0, length(id)) else substr(id, 0, 0).

I usually use -1 in python to get the entire string, so I gave it a
try, but even if it works well looking at function help I've noticed
it's wrong.

The function help says:
substr(string,startpos,length)
so we need to use the string length, but also the startpos values
starts from 1, not 0... (and the help doesn't help to understand it).

> But I think the syntax is far from being intuitive, without some help.
Maybe
> we can come up with a simple solution in the future?
1+, I agree

Regards.

> If we could combine the rule-based renderer approach with the current
> labeler (with its new query builder), it would be awesome.
>
> Thanks for your help!
>
> Andreas
>
>
> On Wed, 28 Dec 2011 20:01:43 +0100, Giuseppe Sucameli wrote:
>>
>> Hi Andreas,
>>
>> On Thu, Dec 22, 2011 at 2:31 PM, Andreas Neumann <a.neumann at carto.net>
>> wrote:
>>>
>>> What I want is that a label is only drawn if a column value is larger
>>> than
>>> 0. I don't want to label features with a value of zero.
>>>
>>> Do you have any hints how the syntax works for such a case? I see ">"
>>> operators but no "if" or "when".
>>
>>
>> there's no "if" operator, but ">" returns 1 if true and 0 if false,
>> e.g. (field > 5)*10 let's give you 10 or 0 as result.
>>
>> The problem is that you don't want to display anything when
>> the field value is 0, so we can use the substr function.
>>
>> Here's the solution to your problem:
>> substr(id, 0, (id > 0)*-1)
>> that means if id <= 0 then substr(id, 0, 0) else substr(id, 0, -1)
>>
>> In general:
>> substr(output, 0, (condition)*-1)
>>
>> Cheers.
>>
>>> If it is not possible, then I can still do it in Postgis, but it would
be
>>> nice being able to do this in QGIS.
>>>
>>> Thanks for any hints,
>>> Andreas
>>>
>>> --
>>> --
>>> Andreas Neumann
>>> Bvschacherstrasse 10A
>>> 8624 Gr|t (Gossau ZH)
>>> Switzerland
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> --
> --
> Andreas Neumann
> Bvschacherstrasse 10A
> 8624 Gr|t (Gossau ZH)
> Switzerland
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Giuseppe Sucameli


------------------------------

Message: 7
Date: Fri, 30 Dec 2011 00:01:37 +1000
From: Nathan Woodrow <madmanwoo at gmail.com>
Subject: [Qgis-user] Syntax highlighting in expression builder dialog
To: qgis-developer at lists.osgeo.org, qgis-user
	<qgis-user at lists.osgeo.org>
Message-ID:
	<CAAi8Yg8Qw3ua0t1DVOOB3ZTEBQ-D6u=sQb6UGx-=eVtoi_zOUg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I'm currently working on adding some basic syntax highlighting to the
expression builder that I added to QGIS a couple of months ago in order to
make it a bit more user friendly. The dialog is used for the new labeling
expression dialog and the WFS filtering, with it planned to be used in
other areas at some stage.

What I would like to know is what kind of stuff people would like to see
highlighted, and how?

So far I have:

   - Strings in dark green e.g anything in single quotes
   - Field names or anything in double quotes (which is how to handle
   fields with spaces) e.g "field Name"

I want to keep the highlighting to a minimum otherwise it has the reserve
effect to what it is trying to solve.

What are peoples thoughts?

P.S Changing the coloring of the highlighting will be on the TODO list but
for now I just want to get a basic usable highlighter in place.

P.P.S If you want to see what I have so far you can compile my working
branch at
https://github.com/NathanW2/Quantum-GIS/tree/expression-builder-highlighter
note:
It's still a work in progress.

- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.osgeo.org/pipermail/qgis-user/attachments/20111230/513e8f39/att
achment-0001.html

------------------------------

Message: 8
Date: Thu, 29 Dec 2011 15:35:20 +0100
From: Giuseppe Sucameli <sucameli at faunalia.it>
Subject: Re: [Qgis-user] New Labeling: conditional labels
To: Andreas Neumann <a.neumann at carto.net>
Cc: qgis-user <qgis-user at lists.osgeo.org>
Message-ID:
	<CAA6k8-JnRNiZ_qaLBqZu2qsvGbsk7bbC+__duzRP9BZSTGQvxw at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Dec 29, 2011 at 2:18 PM, Giuseppe Sucameli <sucameli at faunalia.it>
wrote:
> On Thu, Dec 29, 2011 at 11:25 AM, Andreas Neumann <a.neumann at carto.net>
wrote:
>>What I do not understand is why I need the *-1 (multiplier).
>
> I usually use -1 in python to get the entire string
...
> The function help says:
> substr(string,startpos,length)
> so we need to use the string length, but also the startpos values
> starts from 1, not 0... (and the help doesn't help to understand it).

looking at the code, here's what the susbstr function calls:
string.mid( startpos -1, length )

Now looking at QString.mid() [1] I can confirm that
using the susbstr function:
startpos starts from position 1 (not 0) and
if length is -1 then all chararcters available from startpos are
returned.

So you can use either substr(id, 1, (id > 0)*-1) or
substr(id, 1, (id > 0)*length(id)), both are valid and working syntax.

I think we should improve also the help to add those informations.

Regards.

[1]
http://developer.qt.nokia.com/doc/qt-4.7/qstring.html#id-71632fd3-c671-4ae0-
9791-bce0d200b511

-- 
Giuseppe Sucameli


------------------------------

_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


End of Qgis-user Digest, Vol 70, Issue 62
*****************************************




More information about the Qgis-user mailing list