<p style="margin:0;padding:0;" align="left"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta content="Word.Document" /><meta content="Microsoft Word 9" /><meta content="Microsoft Word 9" /><!--[if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:HyphenationZone>21</w:HyphenationZone>   <w:DoNotOptimizeForBrowser/>  </w:WordDocument> </xml><![endif]--><style> <!--  /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal         {mso-style-parent:"";         margin:0cm;         margin-bottom:.0001pt;         mso-pagination:widow-orphan;         font-size:10.0pt;         mso-bidi-font-size:12.0pt;         font-family:Arial;         mso-fareast-font-family:"Times New Roman";         mso-bidi-font-family:"Times New Roman";} @page Section1         {size:612.0pt 792.0pt;         margin:70.85pt 70.85pt 70.85pt 70.85pt;         mso-header-margin:36.0pt;         mso-footer-margin:36.0pt;         mso-paper-source:0;} div.Section1         {page:Section1;} --> </style><span style="font-size: 10pt; font-family: Arial">Hi,<br /> <br /> I have a little question on the edit plugin.<br /> My layer to edit is part of a database. I would like to edit some attributes wich are part of other tables (non geographic) while I'm editing my geographic layer.<br /> Is this possible?<br /> <br /> I tried with a query in the mapfile&nbsp; which join the tables, but I can't edit the attributes which aren't in the table corresponding to the layer I am editing.<br /> <br /> This is my mapfile:<br /> LAYER<br /> &nbsp;&nbsp;&nbsp; NAME &quot;evenements&quot;<br /> &nbsp;&nbsp;&nbsp; TYPE POINT<br /> &nbsp;&nbsp;&nbsp; STATUS ON<br /> &nbsp;&nbsp;&nbsp; TEMPLATE 'ttt'<br /> &nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS<br /> &nbsp;&nbsp;&nbsp; CONNECTION 'dbname=crises_route user=myuser password=mypassword host=localhost'<br /> &nbsp;&nbsp;&nbsp; DATA &quot;geo FROM (SELECT geo,evenements.id_ev,type_ev FROM evenements JOIN type_ev ON evenements.id_ev = type_ev.id_type_ev) as foo USING UNIQUE id_ev USING SRID = 27573&quot; &nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; CLASS<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME &quot;inondation&quot;<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 204 51 204<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; END<br /> &nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; METADATA<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'id_attribute_string' 'evenements.id_ev'&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'query_returned_attributes' 'evenements.id_ev type_ev description'<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'edit_table' 'evenements' # PostGIS table<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'edit_geometry_column' 'geo' # PostGIS geometry column<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'edit_geometry_type' 'point' # PostGIS geometry type<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'edit_srid' '27573'<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'edit_attributes' 'evenements.id_ev,type_ev|string,description|string' # list of the editable <br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp; END<br /><br />&nbsp;also tried the query:</span><span style="font-size: 10pt; font-family: Arial"> DATA &quot;geo FROM (SELECT geo,evenements.id_ev,type_ev FROM evenements, type_ev WHERE evenements.id_ev = type_ev.id_type_ev) as foo USING UNIQUE id_ev USING SRID = 27573&quot;<br />But this creates an error message which says:<br /></span><pre style="border: 0pt none ">Postgresql reports the error as 'ERREUR:  find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table?  Is there an uppercase/lowercase missmatch?<br /></pre>But my SRID is the same in my mapfile and my database!!!<br /><br />Thank you for the help.<br />Claire<br /></p>