<p dir="ltr">Sicuramente.<br>
Con i DB occorre fare attenzione alla replicazione degli id. È un mantra da ripetere, </p>
<p dir="ltr">Mai provocare la duplicazipne degli id nelle viste.<br>
..<br>
Mai provocare la duplicazione degli id nelle viste .<br>
..<br>
Mai .....</p>
<p dir="ltr">A.<br>
</p>
<div class="gmail_quote">Il 05/feb/2014 11:40 "Paolo Cavallini" <<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Salve.<br>
Ho seguito la discussione un po' al volo, ma mi pare che questa nota aiuti a capire<br>
(se no, scusatemi).<br>
Saluti.<br>
<br>
<br>
-------- Messaggio originale --------<br>
Oggetto:        Re: [Qgis-user] Spatialite : problems with spatial views<br>
Data:   Wed, 05 Feb 2014 12:26:55 +0200<br>
Mittente:       Micha Silver <<a href="mailto:micha@arava.co.il">micha@arava.co.il</a>><br>
A:      giedrius <<a href="mailto:gvaivilavicius@gmail.com">gvaivilavicius@gmail.com</a>>, <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<br>
<br>
<br>
Notice that you have duplicate ROWID values in your view results. Spatialite (and DB<br>
manager) don't care about this since the ROWID is more a convenience. But for QGIS<br>
it's critical that this column be like a unique primary key.<br>
<br>
This is happening because you have GROUP BY with two columns in your query. I think<br>
that what will resolve this is creating a new integer column with unique values for<br>
each Fortas-rusis pair.<br>
<br>
If you could try this: add to both the siksnosparniai_rusis table and the<br>
siksnosparniai_patalpa tables  additional integer columns with unique values for each<br>
Fortas and unique values for each rusis. Then in your view, combine these two<br>
integers in some way to get a new *unique* value to be used as the ROWID. That should<br>
work out the duplicate error values in QGIS.<br>
<br>
Good luck,<br>
Micha<br>
<br>
<br>
<br>
<br>
On 05/02/2014 09:25, giedrius wrote:<br>
> Hello,<br>
><br>
> I have a problem with the display of tables add to QGIS from spatialite.<br>
> DB Manager displays the correct data, but uploading to QGIS table entries<br>
> changed to false:<br>
> <a href="http://i.imgur.com/Pahw13c.png" target="_blank">http://i.imgur.com/Pahw13c.png</a><br>
> <a href="http://i.imgur.com/9Y1zaq4.png" target="_blank">http://i.imgur.com/9Y1zaq4.png</a><br>
><br>
> When loaded data export to shapfile then show the correct data:<br>
> <a href="http://i.imgur.com/ZeXk6Xz.png" target="_blank">http://i.imgur.com/ZeXk6Xz.png</a><br>
><br>
> Is this a bug? Is it my fault as a user?<br>
><br>
> I work with Debian<br>
><br>
> VAM_test_s.sqlite<br>
> <<a href="http://osgeo-org.1560.x6.nabble.com/file/n5101983/VAM_test_s.sqlite" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5101983/VAM_test_s.sqlite</a>><br>
<br>
--<br>
Micha Silver<br>
GIS Consulting<br>
052-3665918<br>
<a href="http://www.surfaces.co.il" target="_blank">http://www.surfaces.co.il</a><br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Gfoss@lists.gfoss.it">Gfoss@lists.gfoss.it</a><br>
<a href="http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss" target="_blank">http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss</a><br>
Questa e' una lista di discussione pubblica aperta a tutti.<br>
I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.<br>
666 iscritti al 22.7.2013</blockquote></div>