The Mssql2008 driver is incomplete... <br>GetFeatureInfo, Nquery, Query doesnt work at all...<br><br><a href="http://trac.osgeo.org/mapserver/ticket/3058">http://trac.osgeo.org/mapserver/ticket/3058</a><br><br>Paul<br><br>
<div class="gmail_quote">On Thu, Feb 25, 2010 at 7:57 AM, Afroz Kannancheri <span dir="ltr"><<a href="mailto:afrozk@gmail.com">afrozk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"><br>
Hi All,<br>
<br>
I have a layer drawn from the shape information stored in MSSQL 2008 server.<br>
The layer has around 300 polygons which are drawn perfectly on a world base<br>
map.<br>
When i try to get the details for each polygon using the Getfeatureinfo<br>
during the click event, i get the following error from MSSQL 2008 server.<br>
<br>
msMSSQL2008LayerGetShape(): Query error. Error executing MSSQL2008 SQL<br>
statement: SELECT convert(varchar(max), numb1),convert(varchar(max),<br>
poprate),geom.STAsBinary(),convert(varchar(20), ID) from table1 WHERE<br>
geom.STIntersects(Geometry::STGeomFromText('POLYGON((-16.4101563310658<br>
17.724609875,-16.4101563310658 17.724609875,-16.4101563310658<br>
17.724609875,-16.4101563310658 17.724609875,-16.4101563310658<br>
17.724609875))',0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]A<br>
.NET Framework error occurred during execution of user defined routine or<br>
aggregate 'geometry': System.FormatException: 24118: The Polygon input is<br>
not valid because the exterior ring does not have enough points. Each ring<br>
of a polygon must contain at least three distinct points.<br>
System.FormatException: at<br>
Microsoft.SqlServer.Types.GeometryDataBuilder.EndFigure() at<br>
Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText(FigureAttributes<br>
attributes) at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText()<br>
at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonTaggedText() at<br>
Microsoft.SqlServer.Types.OpenGisWktReader.ParseGeometryTaggedText() at<br>
Microsoft.SqlServer.Types.OpenGisWktReader.ReadGeometry() at<br>
Microsoft.SqlServer.Types.SqlGeometry.STGeomFromText(SqlChars<br>
geometryTaggedText, Int32 srid)<br>
<br>
<br>
Has anyone faced such an issue before.<br>
<br>
<br>
Thanks and regards<br>
</div></div>AFroz Kannancheri<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4631781.html" target="_blank">http://n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tp4631781p4631781.html</a><br>
</font><div><div></div><div class="h5">Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<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" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br>