Paul,<br><br>To avoid this problem you might want to set either the buffer parameter of queryByPoint or layerObj.tolerance to a positive value to avoid passing a rectangle with no extent to the SQL data source.<br><br><br>
Best regards,<br><br>Tamas <br><br><br><br><div class="gmail_quote">2009/9/15 Paul james <span dir="ltr"><<a href="mailto:pauljame@gmail.com">pauljame@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Tamas,</div><div><div></div><div class="h5">
<div> </div>
<div>The last problem with getShape is solved and working fine....<br>But now I got other possible bug using MsSql2008/C# ...<br> <br>Code :<br> MapObj.queryByPoint(_oGeo, mapscript.MS_MULTIPLE, -1) <br> <br>Thas is working fine with Postgis...<br>
<br>But wth MsSql2008, got the following error : <br> (using queryByRect all works fine)<br> <br>msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL statement: SELECT convert(varchar(max), oid),convert(varchar(max), anoreferencia),convert(varchar(max), uf),convert(varchar(max), rodovia),convert(varchar(max), codigopnv),convert(varchar(max), localiniciofim),convert(varchar(max), inicio),convert(varchar(max), fim),convert(varchar(max), extensao),convert(varchar(max), superficie),convert(varchar(max), listacoincidente),convert(varchar(max), estadualcoincidente),convert(varchar(max), superficieestadualcoincidente),convert(varchar(max), mp_082),convert(varchar(max), concessaoconvenio),the_geom.STAsBinary(),convert(varchar(20), oid) from viwgeo_test WHERE the_geom.STIntersects(Geometry::STGeomFromText('POLYGON((-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364,-74.6741893243784 2.46256865079364))',0)) = 1 <br>
-[Microsoft][ODBC SQL Server Driver][SQL Server]: <br>System.FormatException: 24305: The Polygon input is not valid because the ring does not have enough distinct points. Each ring of a polygon must contain at least three distinct points.<br>
System.FormatException: <br> at Microsoft.SqlServer.Types.Validator.Execute(Transition transition)<br> at Microsoft.SqlServer.Types.Validator.EndFigure()<br> at Microsoft.SqlServer.Types.ForwardingGeoDataSink.EndFigure()<br>
at Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText()<br> at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText()<br> at Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type)<br>
at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, Int32 srid)<br> at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid)<br> at Microsoft.SqlServer.Types.SqlGeometry.STGeom<br>
<br></div>
</div></div></blockquote></div><br>