<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Found the answer.... Thanks list :-)<br><br><a href="http://postgis.17.n6.nabble.com/LWGEOM-gist-joinsel-called-with-incorrect-join-type-td3535176.html">http://postgis.17.n6.nabble.com/LWGEOM-gist-joinsel-called-with-incorrect-join-type-td3535176.html</a><br><br>--- On <b>Tue, 4/24/12, pcreso@pcreso.com <i><pcreso@pcreso.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: pcreso@pcreso.com <pcreso@pcreso.com><br>Subject: [postgis-users] LWGEOM notice message - what does it mean?<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Tuesday, April 24, 2012, 7:30 AM<br><br><div id="yiv1274672700"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top"><span style="font-family:courier, monaco,
monospace, sans-serif;"><span style="font-family:arial, helvetica, sans-serif;">Hi,</span><br style="font-family:arial, helvetica, sans-serif;"><br style="font-family:arial, helvetica, sans-serif;"><span style="font-family:arial, helvetica, sans-serif;">Can anyone explain this message to me & whether it indicates anything I should be concerned about?</span><br style="font-family:arial, helvetica, sans-serif;"><br style="font-family:arial, helvetica, sans-serif;"><span style="font-family:arial, helvetica, sans-serif;">The stations table contains some 47,000 undersea sample sites. </span><span style="font-family:arial, helvetica, sans-serif;">The other tables represent points of observations of various properties such as depth or temperature.</span><br style="font-family:arial, helvetica, sans-serif;"><br style="
font-family:arial, helvetica, sans-serif;"><span style="font-family:arial, helvetica, sans-serif;">The query is to return an indicative value for each property for each station. The left outer join is required to ensure all station records are returned, whether or not there is a nearby value for any property.</span><br style="font-family:arial, helvetica, sans-serif;"><br style="font-family:arial, helvetica, sans-serif;"><span style="font-family:arial, helvetica, sans-serif;">The notice message only occurs when an outer join is specified, if it is not an outer join, then no message appears. The query appears to work fine, but I don't know the significance of the message, or what I have done to cause it. I figure that being a notice, rather than error or warning, it is not critical, but....<br><br><br>Any advice appreciated...<br><br> Brent Wood<br style="font-family:arial, helvetica, sans-serif;"></span><br style="
font-family:arial, helvetica, sans-serif;"><br><br><br>select s.ogc_fid,</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> s.trip::integer as trip,</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> s.station::varchar(20) as station,</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> avg(d.depth)::decimal(6,2) as avg_depth,</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> avg(t.botemp)::decimal(8,6) as avg_botemp,</span><br style="font-family:courier, monaco, monospace,
sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> avg(a.aou)::decimal(8,6) as avg_aou</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">from allstations s</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">left outer join depths d on d.geom && buffer(s.wkb_geometry,125)</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">left outer join botemp t on t.geom && buffer(s.wkb_geometry,125)</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">left outer join aou a on a.geom && buffer(s.wkb_geometry,125)</span><br
style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">where s.ogc_fid < 100</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">group by s.ogc_fid,</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> s.trip,</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;"> s.station</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">order by s.ogc_fid;</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco,
monospace, sans-serif;">NOTICE: LWGEOM_gist_joinsel called with incorrect join
type</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">NOTICE: LWGEOM_gist_joinsel called with incorrect join type</span><br style="font-family:courier, monaco, monospace, sans-serif;"><span style="font-family:courier, monaco, monospace, sans-serif;">NOTICE: LWGEOM_gist_joinsel called with incorrect join type</span><br style="font-family:courier, monaco, monospace, sans-serif;"><br></td></tr></tbody></table></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users"
target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>