<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>Thanks Andreas! your suggestion did the trick, thanks!<br><br>Cheers,<br><br>Gery <br><br><div>&gt; Subject: AW: [mapserver-users] query in postgis works but in mapfile failed,why??<br>&gt; Date: Thu, 20 Oct 2011 12:28:23 +0200<br>&gt; From: Andreas.Eichner@sid.sachsen.de<br>&gt; To: gamejihou@hotmail.com; mapserver-users@lists.osgeo.org<br>&gt; <br>&gt; &gt; and the same in my mapfile gives nothing:<br>&gt; &gt; <br>&gt; &gt; DATA                    'geom FROM (SELECT<br>&gt; &gt; seismic_line.fid,seismic_line.profile,seismic_line.geom FROM <br>&gt; &gt; seismic_line,<br>&gt; &gt; sar_contour_line WHERE seismic_line.geom &amp;&amp; sar_contour_line.geom AND<br>&gt; &gt; INTERSECTS(seismic_line.geom, sar_contour_line.geom) AND<br>&gt; &gt; sar_contour_line.contour = -600) AS FOO USING UNIQUE fid USING UNIQUE<br>&gt; &gt; SRID=4326'<br>&gt; &gt; <br>&gt; &gt; why??<br>&gt; <br>&gt; Should probably be "...) AS FOO USING UNIQUE fid USING SRID=4326'" -<br>&gt; without the "UNIQUE" in front of "SRID".<br></div>                                               </div></body>
</html>