Hi again,
Following the issue thinkgeo.com/forums/MapSuite…fault.aspx we’ve have detected another issue on the method MsSql2008FeatureSource.GetBoundingBoxCore()…
This one on ThinkGeo 8.0.301.0 and the fourth one that we’ve discovered on a small period of time on that method. The other ones were:
- thinkgeo.com/forums/MapSuite…fault.aspx
- thinkgeo.com/forums/MapSuite…fault.aspx
- thinkgeo.com/forums/MapSuite…fault.aspx
The error message is:
Could not find method ‘STASBINARY’ for type ‘Microsoft.SqlServer.Types.SqlGeography’ in assembly 'Microsoft.SqlServer.Types’
The query sent to the SQL SERVER is:
DECLARE @POLYGON01 GEOMETRY
SELECT TOP 1 @POLYGON01 = GEOMETRY::STGEOMFROMWKB(GEOM.STASBINARY(),4326) FROM [table_name] WHERE 1=1 AND ( [filter] ) AND GEOM IS NOT NULL
SELECT @POLYGON01 = @POLYGON01.STUNION(GEOMETRY::STGEOMFROMWKB(GEOM.STASBINARY(),4326).STENVELOPE()).STENVELOPE() FROM [table_name] WHERE 1=1 AND ( [filter] ) AND GEOM IS NOT NULL
SELECT @POLYGON01.STASBINARY() ;
Where [table_name] is table and [filter] a filter applied on the Layer.
This time looks like the ThinkGeo code is turning the SQL Query to upper, making the call to the geometry and geography type methods on SQL SERVER unrecognized because they are case sensitive…
Regards,
BdaF