Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread Sergio Gollino
Scusate forse non ho ben capito la cosa che a me pare molto semplice in un
DB relazionale...
Personalmente non la userei mai in un GIS (nemmeno se ci fosse la funzione)
perchè fare join del genere con uno shape file di grosse dimensioni
risulterebbe difficile (vedo già il pc impiccato)...

Io attuerei una soluzione ibrida.

Cioè farei una tabella (o vista se preferite ma a me le viste piacciono
poco sempre per ragioni prestazionali) con un bel JOIN in postgresql. A
questo punto caricherei la tabella in qgis e procederei facendo le select
sulla tabella... Se cerco il palo XY mi tirerà fuori tutte le armature ad
esso associate. In pratica avrò lo stesso palo (e relativa geometria) per 5
volte con 5 armature diverse.

Se volessi farlo tutto dentro db sarebbe una banale sub-query a cui cambio
ogni volta la clausola where della query di ordine superiore.

Volendo, se le armature univoche non sono tantissime, con una serie di CASE
e sub-query è possibile anche evitare la duplicazione del dato relativo al
palo ma questo diventa macchinoso e a meno di non usarlo molto spesso non
lo farei.

Saluti

SG





Il giorno 13 aprile 2017 16:16, Luca Lanteri  ha
scritto:

> In effetti il link è una funzionalità che sul vecchio AV risultava molto
> utile e di cui a volte ne sento anch'io la mancanza.
> Penso che la prima cosa sia aprire una feature request ben descritta. Se
> di interesse comune si potrebbe finanziare con una raccolta fondi ad hoc,
> magari tramite il gruppo QGIS Italia.
>
> a presto
> Luca
>
> Il giorno 13 aprile 2017 14:13, Totò Fiandaca 
> ha scritto:
>
>> il quesito è stato posto su 'thespatialcommunity.slack.com' e Nathan
>> Woodrow (uno dei massimi esperti e sviluppatori QGIS) ha detto che NON è
>> possibile farlo con QGIS.
>>
>> A mio avviso sarebbe una feature molto utile ma come accade spesso
>> occorre raccogliere dei fonti per farla sviluppare.
>> Io sono disposto a contribuire, ma da solo non posso farlo!!!
>>
>> saluti
>>
>> Il giorno 13 aprile 2017 13:51, AV  ha scritto:
>>
>>> /
>>> Totò wrote
>>> > NON è più possibile fare una selezione partendo dalla tabella lato n
>>>
>>> /
>>>
>>> Da come l'ho capita io, il problema di Toto' e' il seguente.
>>>
>>> Avendo 4 pali con attributi "armatura" da join:
>>>
>>> palo 1] armatura PIPPO
>>> palo 2] armatura PLUTO
>>> palo 3] armatura PIPPO e armatura PAPERINO
>>> palo 4] armatura TOPOLINO
>>>
>>> lui vuole selezionare i pali 1,3 cercando il solo nome PIPPO.
>>>
>>> Se cosi' stanno le cose, francamente non saprei quale Gis sia in grado di
>>> eseguire un simile filtro "a ritroso"...
>>>
>>>
>>>
>>> --
>>> View this message in context: http://osgeo-org.1560.x6.nabbl
>>> e.com/QGIS-select-in-join-tabella-in-relazione-tp5317093p5317190.html
>>> Sent from the QGIS Italian User mailing list archive at Nabble.com.
>>> ___
>>> QGIS-it-user mailing list
>>> QGIS-it-user@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>>
>>
>>
>>
>> --
>> *Salvatore Fiandaca*
>> *mobile*.:+39 327.493.8955 <+39%20327%20493%208955>
>> *m*: *pigrecoinfin...@gmail.com *
>> *blog:** https://pigrecoinfinito.wordpress.com/
>> *
>>
>> 43°51'0.54"N  10°34'27.62"E - EPSG:4326
>>
>> “Se la conoscenza deve essere aperta a tutti,
>> perchè mai limitarne l’accesso?”
>> R. Stallman
>>
>> ___
>> QGIS-it-user mailing list
>> QGIS-it-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>
>>
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>


-- 
Sergio Gollino

Questo messaggio, comprensivo di eventuali allegati, è ad uso esclusivo del
destinatario e potrebbe contenere  informazioni riservate; se è stato
recapitato per errore ci scusiamo per l'accaduto e Vi invitiamo
cortesemente a darcene notizia provvedendo alla sua distruzione.
Vi ricordiamo che la diffusione, l'utilizzo e/o la conservazione dei dati
ricevuti per errore costituiscono violazione alle disposizioni del D.Lgs.
n. 196/2003 "Codice in materia di protezione dei dati personali".
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[Qgis-user] $length null for wfs geoserver layer

2017-04-13 Thread emmexx
When I add a calculated field to a wfs geoserver layer (based on
postgis) to get the length of multiline geometries, all records have a
NULL value. Why is that?

thank you
maxx
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread Luca Lanteri
In effetti il link è una funzionalità che sul vecchio AV risultava molto
utile e di cui a volte ne sento anch'io la mancanza.
Penso che la prima cosa sia aprire una feature request ben descritta. Se di
interesse comune si potrebbe finanziare con una raccolta fondi ad hoc,
magari tramite il gruppo QGIS Italia.

a presto
Luca

Il giorno 13 aprile 2017 14:13, Totò Fiandaca 
ha scritto:

> il quesito è stato posto su 'thespatialcommunity.slack.com' e Nathan
> Woodrow (uno dei massimi esperti e sviluppatori QGIS) ha detto che NON è
> possibile farlo con QGIS.
>
> A mio avviso sarebbe una feature molto utile ma come accade spesso occorre
> raccogliere dei fonti per farla sviluppare.
> Io sono disposto a contribuire, ma da solo non posso farlo!!!
>
> saluti
>
> Il giorno 13 aprile 2017 13:51, AV  ha scritto:
>
>> /
>> Totò wrote
>> > NON è più possibile fare una selezione partendo dalla tabella lato n
>>
>> /
>>
>> Da come l'ho capita io, il problema di Toto' e' il seguente.
>>
>> Avendo 4 pali con attributi "armatura" da join:
>>
>> palo 1] armatura PIPPO
>> palo 2] armatura PLUTO
>> palo 3] armatura PIPPO e armatura PAPERINO
>> palo 4] armatura TOPOLINO
>>
>> lui vuole selezionare i pali 1,3 cercando il solo nome PIPPO.
>>
>> Se cosi' stanno le cose, francamente non saprei quale Gis sia in grado di
>> eseguire un simile filtro "a ritroso"...
>>
>>
>>
>> --
>> View this message in context: http://osgeo-org.1560.x6.nabbl
>> e.com/QGIS-select-in-join-tabella-in-relazione-tp5317093p5317190.html
>> Sent from the QGIS Italian User mailing list archive at Nabble.com.
>> ___
>> QGIS-it-user mailing list
>> QGIS-it-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>>
>
>
>
> --
> *Salvatore Fiandaca*
> *mobile*.:+39 327.493.8955 <+39%20327%20493%208955>
> *m*: *pigrecoinfin...@gmail.com *
> *blog:** https://pigrecoinfinito.wordpress.com/
> *
>
> 43°51'0.54"N  10°34'27.62"E - EPSG:4326
>
> “Se la conoscenza deve essere aperta a tutti,
> perchè mai limitarne l’accesso?”
> R. Stallman
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread GUIDUCCI Marco


- Messaggio originale -
> Da: "AV" 
> A: qgis-it-user@lists.osgeo.org
> Inviato: Giovedì, 13 aprile 2017 13:51:14
> Oggetto: Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

> /
> Totò wrote
>> NON è più possibile fare una selezione partendo dalla tabella lato n
> 
> /
> 
> Da come l'ho capita io, il problema di Toto' e' il seguente.
> 
> Avendo 4 pali con attributi "armatura" da join:
> 
> palo 1] armatura PIPPO
> palo 2] armatura PLUTO
> palo 3] armatura PIPPO e armatura PAPERINO
> palo 4] armatura TOPOLINO
> 
> lui vuole selezionare i pali 1,3 cercando il solo nome PIPPO.
> 
> Se cosi' stanno le cose, francamente non saprei quale Gis sia in grado di
> eseguire un simile filtro "a ritroso"...
> 


Esri ArcView3 lo fa da un paio di decine di anninon con join ma con il link 
(relate)
Il bello è che puoi linkare le tabelle nei due versi (1:n ed n:1) allo stesso 
tempo, senza generare "loop".
marco
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread Totò Fiandaca
Nino,
NON credo sia possibile farlo neanche con DB relazionali e poi dovresti
fare ogni volta una view diversa.
Il mio obiettivo è usare il tasto funzione F3 nella tabella correlata e poi
tramite semplice selezione del record poter zoomare la relativa feature.

2017-04-13 15:44 GMT+02:00 nformica :

> Certo poterlo fare direttamente in QGIS sarebbe comodo.
> Ma  eventualmente, uno queste cose se le risolve usando le query (con LEFT
> JOIN) in un geoDB, ovviamente abbandonando gli shapefile.
>
> Forse è per questo motivo che, non è stato pensato di implementarlo fin ad
> ora !?
>
> Saluti
> Nino
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/QGIS-select-in-join-tabella-in-relazione-tp5317093p5317204.html
> Sent from the QGIS Italian User mailing list archive at Nabble.com.
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>



-- 
*Salvatore Fiandaca*
*mobile*.:+39 327.493.8955
*m*: *pigrecoinfin...@gmail.com *
*blog:** https://pigrecoinfinito.wordpress.com/
*

43°51'0.54"N  10°34'27.62"E - EPSG:4326

“Se la conoscenza deve essere aperta a tutti,
perchè mai limitarne l’accesso?”
R. Stallman
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread nformica
Certo poterlo fare direttamente in QGIS sarebbe comodo.
Ma  eventualmente, uno queste cose se le risolve usando le query (con LEFT
JOIN) in un geoDB, ovviamente abbandonando gli shapefile.

Forse è per questo motivo che, non è stato pensato di implementarlo fin ad
ora !?

Saluti
Nino



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-select-in-join-tabella-in-relazione-tp5317093p5317204.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread Totò Fiandaca
il quesito è stato posto su 'thespatialcommunity.slack.com' e Nathan
Woodrow (uno dei massimi esperti e sviluppatori QGIS) ha detto che NON è
possibile farlo con QGIS.

A mio avviso sarebbe una feature molto utile ma come accade spesso occorre
raccogliere dei fonti per farla sviluppare.
Io sono disposto a contribuire, ma da solo non posso farlo!!!

saluti

Il giorno 13 aprile 2017 13:51, AV  ha scritto:

> /
> Totò wrote
> > NON è più possibile fare una selezione partendo dalla tabella lato n
>
> /
>
> Da come l'ho capita io, il problema di Toto' e' il seguente.
>
> Avendo 4 pali con attributi "armatura" da join:
>
> palo 1] armatura PIPPO
> palo 2] armatura PLUTO
> palo 3] armatura PIPPO e armatura PAPERINO
> palo 4] armatura TOPOLINO
>
> lui vuole selezionare i pali 1,3 cercando il solo nome PIPPO.
>
> Se cosi' stanno le cose, francamente non saprei quale Gis sia in grado di
> eseguire un simile filtro "a ritroso"...
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/QGIS-select-in-join-tabella-in-relazione-tp5317093p5317190.html
> Sent from the QGIS Italian User mailing list archive at Nabble.com.
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>



-- 
*Salvatore Fiandaca*
*mobile*.:+39 327.493.8955
*m*: *pigrecoinfin...@gmail.com *
*blog:** https://pigrecoinfinito.wordpress.com/
*

43°51'0.54"N  10°34'27.62"E - EPSG:4326

“Se la conoscenza deve essere aperta a tutti,
perchè mai limitarne l’accesso?”
R. Stallman
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Can not install qgis-mapserver on CentOS 7

2017-04-13 Thread Burghardt.Scholle
Hi Julian,
in the past few weeks I have also experimented with CentOS 7 and QGIS /QGIS 
server. My experience has shown that manual compilation of the required 
software components / libraries under CentOS was necessary to get an efficient 
and productive work environment. I have proceeded as follows:

· Compile Proj4

· Compile GDAL

· Compile GEOS

· Compile PostGIS (if needed, you can take PostgreSQL from the 
repository http://yum.postgresql.org/repopackages.php)

· Compile GRASS (if needed)

· Compile QGIS Desktop / Server

After that you have a current running QGIS environment and can determine many 
settings by yourself.

By the way: the Docker proposal from Steve sounds very interesting.

Hope this helps
Burghardt

Von: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Julian 
Bogdani
Gesendet: Mittwoch, 12. April 2017 19:53
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] Can not install qgis-mapserver on CentOS 7

Hello everybody,
I’m trying to setup a QGis server on a CentOS (7.3.1611) server, following the 
official guide: 
http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial

I followed the instructions and added EPEL:
yum install epel-release

Then I added ELGIS:
rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm

And finally tried to install qgis-mapserver:
yum install qgis-mapserver

But this last command did not work, because some dependencies were not met:

Error: Package: qgis-1.8.0-9_0.el6.x86_64 (elgis)
   Requires: libqwt.so.5()(64bit)
Error: Package: qgis-1.8.0-9_0.el6.x86_64 (elgis)
   Requires: libqwtpolar.so.0()(64bit)
Error: Package: mod_fcgid-2.3.9-4.el7.x86_64 (base)
   Requires: httpd-mmn = 20120211x8664
Error: Package: qgis-1.8.0-9_0.el6.x86_64 (elgis)
   Requires: libspatialindex.so.1()(64bit)
Error: Package: qgis-mapserver-1.8.0-9_0.el6.x86_64 (elgis)
   Requires: libspatialindex.so.1()(64bit)

Am I missing anything? Should I install these dependencies manually? Or should 
I install some other package before?

Any help would be much appreciated,

Thank you

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





___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread nformica
Ciao Totò,

per quanto ne sappia io:


Totò wrote
> ma se al posto del join facessi una relazione 1:n NON è più possibile fare
> una selezione partendo dalla tabella lato n, questo è un grosso limite in
> quanto NON è possibile neanche usando spatialite o postgis.

... a meno che non stiamo parlando di cose diverse (e ho capito male), con
SpatiaLite o PostGIS, essndo DBMS relazionali, è possibile!



Totò wrote
> questo è un semplice caso per spiegare l'utilità della feature che manca
> in QGIS e credo in tutti i software GIS.

Mi pare che con il "concorrente" ArcXXX sia possibile.

Cari saluti
Nino



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-select-in-join-tabella-in-relazione-tp5317093p5317148.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Can not install qgis-mapserver on CentOS 7

2017-04-13 Thread Nicolas Boisteault
 

Hi Julian, 

This guide is old and I think not updated. The version 1.8 of QGIS is
too old. You should use
http://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_server_support.html
[5]. Unfortunately the installation is explained for Ubuntu. 

You can try this too
https://www.qgis.org/fr/site/forusers/alldownloads.html#id17 

Le 2017-04-12 19:53, Julian Bogdani a écrit : 

> Hello everybody, 
> I'm trying to setup a QGis server on a CentOS (7.3.1611) server, following 
> the official guide: 
> http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial [2] 
> 
> I followed the instructions and added EPEL: 
> 
>> yum install epel-release
> 
> Then I added ELGIS: 
> 
>> rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm [1]
> 
> And finally tried to install qgis-mapserver: 
> 
>> yum install qgis-mapserver
> 
> But this last command did not work, because some dependencies were not met: 
> 
>> Error: Package: qgis-1.8.0-9_0.el6.x86_64 (elgis)
>> Requires: libqwt.so.5()(64bit)
>> Error: Package: qgis-1.8.0-9_0.el6.x86_64 (elgis)
>> Requires: libqwtpolar.so.0()(64bit)
>> Error: Package: mod_fcgid-2.3.9-4.el7.x86_64 (base)
>> Requires: httpd-mmn = 20120211x8664
>> Error: Package: qgis-1.8.0-9_0.el6.x86_64 (elgis)
>> Requires: libspatialindex.so.1()(64bit)
>> Error: Package: qgis-mapserver-1.8.0-9_0.el6.x86_64 (elgis)
>> Requires: libspatialindex.so.1()(64bit)
> 
> Am I missing anything? Should I install these dependencies manually? Or 
> should I install some other package before? 
> 
> Any help would be much appreciated, 
> 
> Thank you 
> 
> - 
> Julian Bogdani 
> jbogd...@gmail.com 
> http://bradypus.net [3] 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user [4]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user [4]
 

Links:
--
[1] http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm
[2] http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial
[3] http://bradypus.net
[4] https://lists.osgeo.org/mailman/listinfo/qgis-user
[5]
http://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_server_support.html___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Detecting node valences

2017-04-13 Thread phi73
Hello Martin,

yes you are right.

The terminus „Node valence“ is from topology and is defined as the number of
outgoing and incoming lines by a node.
You are example is correct:
a) a T Intersection has val=3
b) a Cross val = 4
c) a „one-way-street“ the end/starting point has val = 1


So i need to run it of the level of database as i assume.

Thanks for your reply so far.

If somebody knows to do it more „user friendly“ i would be happy to learn it.
I have some rudimentary knowledge of running SQL but last time used 15y ago ;-)

Thanks to all of you. It is a great group to be honest.

Pat


On 13. Apr. 2017, 04:44 +0200, Martin Bain , 
wrote:
> Hi Pat,
> I saw your previous question went unanswered.  I’m not familiar with the term 
> valence, I’m guessing you want the number of lines that meet at a point.  If 
> you had like a roads layer then three streets would meet at a T intersection 
> – the node would have a valence of three, for a cross intersection the 
> valence would be four.
>
> I’ll start the ball rolling by offering a possible solution, then maybe some 
> bigger brained folks might give a better way of doing it.
>
> There’s probably a sequence of steps you could do to get your end result, 
> maybe something in the processing toolbox?  Being a bit of a database guy, I 
> reached for the DB Manager and came up with the SQL below which can be loaded 
> as a point layer.  THIS QUERY ASSUMES YOUR LINES ONLY MEET AT THE ENDS, IF 
> ONE LINE INTERSECTS ANOTHER IN THE MIDDLE IT WONT BE COUNTED.
>
> The inner select statement returns a set of points. It is a UNION query of 
> two parts, the first part selects each line’s start point and its X and Y 
> coordinates and the second part does the same for the end point of each line.
>
> The outer select statement groups the matching points together and gives a 
> count.  The last line in the query “HAVING VALENCE>2”  filters out any 
> results with a valence less than three, you can adjust the number for your 
> needs or leave it out altogether and filter the rows in QGIS.
>
> Cheers,
> Martin.
>
> SELECT GEOMX,GEOMY, GEOM, COUNT(*) AS VALENCE
> FROM
> (
> SELECT "LCC_WATER_PIPES"."Namecompon",
> "LCC_WATER_PIPES"."MI_PRINX",start_point(
> "LCC_WATER_PIPES"."geometry") AS GEOM ,
> X(start_point("LCC_WATER_PIPES"."geometry")) AS GEOMX,
> Y(start_point("LCC_WATER_PIPES"."geometry")) AS GEOMY
> FROM "LCC_WATER_PIPES"
> UNION
> SELECT "LCC_WATER_PIPES"."Namecompon",
> "LCC_WATER_PIPES"."MI_PRINX",end_point(
> "LCC_WATER_PIPES"."geometry") AS GEOM ,
> X(end_point("LCC_WATER_PIPES"."geometry")) AS GEOMX,
> Y(end_point("LCC_WATER_PIPES"."geometry")) AS GEOMY
> FROM "LCC_WATER_PIPES"
> )
> GROUP BY GEOMX, GEOMY, GEOM
> HAVING VALENCE>2
>
>
>
>
> select A.MI_PRINX,B.MI_PRINX ,intersectION(A.geometry,B.geometry) AS GEOM
> from LCC_WATER_PIPES as A, LCC_WATER_PIPES as B
> WHERE A.MI_PRINX<>B.MI_PRINX
> AND intersects(A.geometry,B.geometry)=1
>
> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of 
> ph...@gmx.de
> Sent: Wednesday, 12 April 2017 11:03 PM
> To: QGIS User List 
> Subject: [Qgis-user] Detecting node valences
>
> Hello to all,
>
> is there a way i QGIS to run a select over a map to get
> all the nodes with a specific node valence?
>
> If not i would be happy about a shortchanged reply too :)
>
> thanks
> pat
>
>
> This email is intended for the named recipient only. The information it 
> contains may be confidential. If you are not the intended recipient you must 
> not reproduce or distribute any part of this email, disclose its contents to 
> any other party or take any action in reliance on it. If you have received 
> this email in error, please contact the sender immediately and delete the 
> message.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [QGIS-it-user] QGIS - select in join (tabella in relazione)

2017-04-13 Thread Giulio Fattori

Il 12/04/2017 22:16, Totò ha scritto:

Salve a tutti,
scrivo questa email sperando di trovare una soluzione al quesito in oggetto.

In QGIS è possibile fare un join tra una layer (vettore o non) e una
qualsiasi altro layer (anche semplice tabella) basta che ci sia un campo
comune; su questo join è possibile fare selezioni e quindi zoom a selezione;
ma se al posto del join facessi una relazione 1:n NON è più possibile fare
una selezione partendo dalla tabella lato n, questo è un grosso limite in
quanto NON è possibile neanche usando spatialite o postgis.

Domanda, come mai NON è stata implementata questa feature in QGIS? credo sia
una caratteristica molto utile.

Esempio:
supponiamo di fare un censimento della pubblica illuminazione e creo un
layer puntuale che rappresenti il palo e una tabella che rappresenti le
armature (un palo può avere da 1 a 'n' armature) del palo stesso; in questo
caso specifico utilizzerei una relazione tra palo e armature; se facessi una
ricerca nella tabella armature, come selezionare il relativo palo?

questo è un semplice caso per spiegare l'utilità della feature che manca in
QGIS e credo in tutti i software GIS.

saluti



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-select-in-join-tabella-in-relazione-tp5317093.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Buongiorno, incuriosito dalla tua problematica ho fatto qualche prova, 
creato un layer puntuale "Pali" e una tabella "Armature" di cui 
condividono l'Id del palo.


Effettivamente il join produce solo layer tabella virtuali che non 
visualizzano nulla.


Tuttavia, senza join alcuno, con il DB manager riesco a produrre un 
layer virtuale puntuale per ogni selezione di armatura, il problema è 
che si produce un layer per ogni interrogazione (armatura) diversa.


La query è del tipo

"SELECT "Pali"."ID", "Pali"."geometry","Armature"."armatura"
FROM "Pali", "Armature"
WHERE "Armature"."palo"="Pali"."ID" and "Armature"."armatura"='b'

E' necessario portarsi dietro la geometria dai pali altrimenti otteniamo 
una tabella virtuale come nel join.


E' un risultato ma dubito che possa risolvere dinamicamente la questione.

Saluti

___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user