<div dir="ltr">Hello Pierre,<div><br></div><div>I don't know how is your database designed to get redundant geometries as you said...</div><div><br></div><div>We here also use relations and views on PostgreSQL and it works pretty fine. Look at this simple example to get the geometry from table1, and a label from table2:</div><div><br></div><div><div>CREATE OR REPLACE VIEW my_view AS </div><div> SELECT table1.gid, table1.the_geom, table2.label1</div><div>   FROM table1</div><div>   LEFT JOIN table2 ON <a href="http://table2.id">table2.id</a> = table1.table2_id;</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-14 12:02 GMT+00:00 pe_lord <span dir="ltr"><<a href="mailto:pe_lord@yahoo.ca" target="_blank">pe_lord@yahoo.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1- Concerning view, at this time, I don't want to plan to make view because,<br>
if I create view, I will get redundant geometries, resulting varying numbers<br>
of geometries between 1 an M possiblities... And My example is based on only<br>
1 table. I plan to make 1:M relationships with 5-6 others tables. If I'm<br>
wrong, tell my!<br>
<br>
2- About OIDs, every table has OIDs. I've loaded my datasets with ogr2ogr<br>
from esri filegdb.<br>
<br>
3- Concerning others manipulation. I didn't try at this time,  I will try it<br>
soon. Before, I will test 2 things:<br>
3A- Log SQL query from PG to see if there is not a baq query sent by<br>
Mpaserver to PG.<br>
3B- Update Mapserver to 7.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-JOIN-to-html-template-tp5255688p5256205.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Mapserver-JOIN-to-html-template-tp5255688p5256205.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Regards, <div>Marco Afonso</div><div><a href="http://goo.gl/ZDtQjm" target="_blank">http://goo.gl/ZDtQjm</a><br></div><div><span></span><img src="https://dl.dropboxusercontent.com/u/17607469/qr.png"><br></div></div></div>
</div>