Recently I update the thinkgeo lib to v7.0.0.
But when I try to query some spatial data like
_inMemLayer = MapHelper.GetFeatureLayerFromFile(_fileName);
_inMemLayer.Open();
Collection<
Feature
> _selectedFeatures = _inMemLayer.QueryTools.GetFeaturesWithin(Shape, ReturningColumnsType.AllColumns);
Parameter Shape is a PolygonShape
eventually it throws error
"
System.NullReferenceException was caught
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=MapSuiteCore
StackTrace:
at ThinkGeo.MapSuite.Core.PolygonShape.ValidateCore(ShapeValidationMode validationMode)
at ThinkGeo.MapSuite.Core.BaseShape.Validate(ShapeValidationMode validationMode)
at oxQ=.Vj0=.nD0=(BaseShape nT0=, String nj0=)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(BaseShape targetShape, QueryType queryType, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureSource.SpatialQuery(BaseShape targetShape, QueryType queryType, ReturningColumnsType returningColumnNamesType)
at ThinkGeo.MapSuite.Core.QueryTools.GetFeaturesWithin(BaseShape targetShape, ReturningColumnsType returningColumnNamesType)
at iProTax.Website.Services.SmartMapWcfService.GetFeaturesForZntMigration(String IdPeta, PolygonShape Shape)
InnerException:
"
I attach my Tab File as a reference.
Thanks.
Tab_File.zip (180 KB)