Hi again,
We’re using ThinkGeo 8.0.0.0 to do some tests with MsSql2008FeatureLayer and LayerOverlay. We’ve set the property WhereClause to a filter data from SQL SERVER table. The filter is something like this:
WHERE [filter] <filter></filter>
[filter] <filter> </filter>is a simple equal condition.
When we set this property with a value, it throws exceptions when rendering images on tile_GeoResource.axd handler on SQL Queries with the following message:
Incorrect Syntax near keyword WHERE.
The executed query is something like this:
DECLARE @POLYGON01 GEOMETRY
SELECT TOP 1 @POLYGON01 = GEOMETRY::STGEOMFROMWKB(GEOM.STASBINARY(),4326) FROM [table]
WHERE 1=1 AND (WHERE
[filter]
<filter>) AND GEOM IS NOT NULL </filter>
SELECT @POLYGON01 = @POLYGON01.STUNION(GEOMETRY::STGEOMFROMWKB(GEOM.STASBINARY(),4326).STENVELOPE()).STENVELOPE() FROM [table]
WHERE 1=1 AND (WHERE
[filter]
<filter>) AND GEOM IS NOT NULL </filter>
SELECT @POLYGON01.STASBINARY() ;
This error does not happens on version 5.5.0.0 and 7.0.0.0. The code that is being called here seems to be related with the some previous issues reported by us:
thinkgeo.com/forums/MapSuite…fault.aspx
thinkgeo.com/forums/MapSuite…fault.aspx
This is the third time that we found some kind of issue regarding the calculation of minimum bounding box (MBB). We’re evaluating the transition to Thinkgeo 8.0.0.0 and with those kinds of errors we cannot make that transition!!
Best Regards,
BdaF
Error while drawing images
Hi Bruno,
It’s proved to be a bug which has been fixed in the latest version 8.0.300.0/8.0.0.301 or later from “Product Center” or helpdesk.thinkgeo.com.
Thanks,
Johnny
Hi Bruno,
It’s proved to be a bug which has been fixed in the latest version 8.0.300.0/8.0.0.301 or later from “Product Center” or helpdesk.thinkgeo.com.
Thanks,
Johnny