thx Jukka for response.<br>I'll try it just now.<br><br>>I am remembering that QGis cannot make layers from Spatialite with SQL queries.<br><br>(sorry for OT)<br><br>there is a plugin for this it is named RT_Sql_Layer<br>
(RT is for "Regiony Tuscany".)<br><br>It allow to define a layer as sqlquery directly on the DB for Postgres and for Spatialite.<br><br>You must define a spatialite connection using the spatialite provider and after you can launch the plugin choose that connection and define a sql layer to add to the canvas.<br>
<br>Best regards,<br><br>Andrea.<br><br><br><div class="gmail_quote">2012/8/4 Rahkonen Jukka <span dir="ltr"><<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I can't test myself right now because I cannot access <a href="http://gisinternals.com" target="_blank">gisinternals.com</a> for getting a fresh Windows build. However, I for using geom2 of a multigeom table would try with<br>

<br>
DATA 'SELECT geom2,attr1,attr2.... FROM table'<br>
<br>
You can also create a spatial view which selects geom2 on the Spatialite side and use then simply<br>
DATA 'view'<br>
<br>
Another advantage in creating spatial view is that they can be used directly in QGis once it will have fresh enough GDAL version. I am remembering that QGis cannot make layers from Spatialite with SQL queries.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
________________________________<br>
<div><div class="h5">Andrea Peri wrote:<br>
<br>
> Hi Roualt,<br>
<br>
> thx for patch,<br>
<br>
> I'm go to test it.<br>
> Just a question to understand how use it.<br>
<br>
> the sintax 'TABLE(GEOMETRY)' should return also the attributes from table or only the geometry without attribute ?<br>
<br>
> regards,<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty אטלעש<br>
-----------------<br>
<br>
</div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty אטלעש<br>-----------------<br><br>