Re: [Qgis-user] Label line between points and labels.

2015-03-28 Thread Alexandre Neto
Have a look at this post:

https://sigsemgrilhetas.wordpress.com/2015/01/12/etiquetas-com-guias-em-qgis-e-postgis-labels-leading-lines-with-qgis-and-postgis/

Hope it helps.

Alexandre Neto

On Sat, Mar 28, 2015 at 5:00 AM, Nicolas Cadieux <
nicolas.cadi...@archeotec.ca> wrote:

> Hi Régis
> Thanks for the info. I will look into it. Appreciate the help.
>
> Nicolas Cadieux M.Sc.
> Les Entreprises Archéotec inc.
> 8548, rue Saint-Denis Montréal H2P 2H2
> Téléphone: 514.381.5112  Fax: 514.381.4995
> www.archeotec.ca
> Le 2015-03-27 16:25, "Régis Haubourg [via OSGeo.org] " <[hidden email]
> > a écrit :
>
> Hi Nicolas,
> new version of EasyCustomLabeling generates the callout line on the fly
> when you move manually a label..
> you'll find a video tutorial in the github wiki
> https://github.com/haubourg/EasyCustomLabeling/wiki
>
> Cheers
> Régis
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.x6.nabble.com/Label-line-between-points-and-labels-tp5195817p5195818.html
>  To start a new topic under Quantum GIS - User, email
> ml-node+s1560n4125267...@n6.nabble.com
> To unsubscribe from Quantum GIS - User, http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4125267&code=bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg==";>click
> here.
> http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> "
> style="font:9px serif">NAML
>
>
> --
> View this message in context: Re: Label line between points and labels.
> 
> 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 mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Heatmap plugin output in wrong coordinate space

2015-03-28 Thread Nyall Dawson
On 29 Mar 2015 7:34 am, "Kurt Menke"  wrote:
>
> Hello everyone,
>
> I’ve tried using the Heatmap plugin on several datasets today and it
keeps producing output that does not align with the input.
>

This has already been fixed and is waiting on the release of 2.8.2...

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

[Qgis-user] Heatmap plugin output in wrong coordinate space

2015-03-28 Thread Kurt Menke
Hello everyone,

I've tried using the Heatmap plugin on several datasets today and it keeps
producing output that does not align with the input. 

 

The coordinates of the output are very odd. The X/Y coordinate values of the
output are in the hundreds. To make sure I am not just experiencing issues
with a corrupt data layer, I've tried several different point datasets in
several different CRS's. As input I've tried datasets in both GCS and
projected CRS's and get similar results each time. 

 

I've ensured that the project CRS matches the layer in each case. 

 

I've also tried different output file formats and Heatmap settings It
doesn't change the position of the output.

 

The output always looks correct, but is in the wrong coordinate space.

 

Is anyone else experiencing this issue?

Kurt 

 

**

Kurt Menke, GISP

Bird's Eye View 

  www.BirdsEyeViewGIS.com 

Work: 505-265-0243

Cell: 505-362-1776

 

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

[Qgis-user] QCompleter in QGIS form

2015-03-28 Thread Blumentrath, Stefan
Dear all,

Thanks to Nathan`s excellent example here:
http://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/
I managed to implement a simple QCompleter for a LineEdit in my form where the 
completer items are being fetched from DB (see init function code at the end of 
my mail).

This is very, very promising stuff which comes in quite handy for entering 
species names (from an official list of (thousands of) species names in my 
case)!

Yet there are two things I am struggling with:
1) Would it be possible to use this QCompleter solution to an autogenerated 
form? The auto generated forms are more than good enough for most of my 
use-cases. When I tried the Init function on an autogenerated form I got 
"NameError: global name 'TextEdit' is not defined"... Any ideas how to fix that?

2) It seems to me that the query - which is used to fill the QCompleter - is 
executed each time the form is opened. Would it be possible to avoid this, I 
mean that the query is only run once (e.g. when I open the project)? I hoped 
this could speed up the start of the form (even if the query gets cached in 
PostgreSQL)...
Many thanks in advance for helping.

Kind regards,
Stefan

P.S.: Next thing I will have to do is understand SIGNALS and SLOTS so I can 
adjust the completer content depending on other data entered in the form (e.g. 
filter species by kingdom or known occurrence in a country (here Norway)) ...

P.P.S.: My form_init.py looks like this:

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtSql import *
import psycopg2
nameField = None
myDialog = None

def formOpen(dialog,layerid,featureid):
global myDialog
myDialog = dialog
global nameField
nameField = dialog.findChild(QLineEdit,"latinsk_navn")

#Initiate completer
completer = QCompleter()
nameField.setCompleter(completer)

#Fetch data from DB to fill completer
conn = psycopg2.connect("dbname='MYDB' user='MYUSERNAME' host='MYHOST' 
password='MYPASSWD'")
cur = conn.cursor()
cur.execute("""SELECT scientificname FROM kls.l_artsliste WHERE 
finnesinorge = 'Ja'""")
completition_items = []
for row in cur.fetchall():
completition_items.append(row[0])

   #Add data to Qt Model / QCompleter
   model = QStringListModel()
model.setStringList(completition_items)
completer.setModel(model)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user