Hi guys,
I have discovered an error that only seems to be a problem when working with a MsSql2008FeatureLayer that is connected to a Synonym. When connected to a MsSql2008FeatureLayer based on a Synonym the GetFeaturesIntersecting method works fine. But when attempting to use GetFeaturesDisjointed I get the following exception:
System.ArgumentException: String cannot be of zero length. Parameter name: oldValue
at ThinkGeo.MapSuite.Core.MsSql2008FeatureSource.cUA=(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.MsSql2008FeatureSource.SpatialQueryCore(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.<>c__DisplayClass16.<
SpatialQuery
>b__15(IEnumerable`1 cns)
at ThinkGeo.MapSuite.Core.FeatureSource.eBQ=(IEnumerable`1 returningColumnNames, Func`2 getFeatures, IEnumerable`1 filters)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames, IEnumerable`1 filters)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(Feature feature, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(Feature feature, QueryType queryType, ReturningColumnsType returningColumnNamesType)
at ThinkGeo.MapSuite.Core.QueryTools.GetFeaturesDisjointed(Feature targetFeature, ReturningColumnsType returningColumnNamesType)
at BufferTest.Form1.btnSelectDisjoint_Click(Object sender, EventArgs e)
in C:\Users\steller\Documents\Visual Studio 2010\Projects\ThinkGeo\Selection Test\Form1.vb:line 64
I have attached a sample project that demonstrates the problem.
Thanks!
Steve
002_001_Selection_Test.zip (26.7 KB)