MultipleShapeFileFeatureLayer query stopped working for us ever since we upgraded to version 6.
QueryTools.GetFeaturesByColumnValue or QueryTools.GetAllFeatures doesn't return anything.
Our code was working before so can you guys check into this?
MultipleShapeFileFeatureLayer query stopped working for us ever since we upgraded to version 6.
QueryTools.GetFeaturesByColumnValue or QueryTools.GetAllFeatures doesn't return anything.
Our code was working before so can you guys check into this?
Hello Kenny,
This two methods are working fine in 6.0, you can try it in HowDoISamples, so could you please give me more information to recreate your problem, if you can provide a sample, it will be helpful.
Regards,
Gary
Here is the sample code.
string dir = ConfigurationManager.AppSettings["MapsRoot"];
string[] shapeFiles = new string[] { dir + "ak\ak_zipcodes.shp", dir + "al\al_zipcodes.shp" };
string[] indexFiles = new string[] { dir + "ak\ak_zipcodes.midx", dir + "ak\al_zipcodes.midx" };
MultipleShapeFileFeatureLayer.BuildIndex(new string[] { shapeFiles[0] }, new string[] { indexFiles[0] }, BuildIndexMode.DoNotRebuild);
MultipleShapeFileFeatureLayer.BuildIndex(new string[] { shapeFiles[1] }, new string[] { indexFiles[1] }, BuildIndexMode.DoNotRebuild);
MultipleShapeFileFeatureLayer multiZip = new MultipleShapeFileFeatureLayer(shapeFiles, indexFiles);
multiZip.Open();
Collection<Feature> features = multiZip.QueryTools.GetAllFeatures(ReturningColumnsType.AllColumns);
multiZip.Close();
Test with your shapefiles first , if you need me to send mine give me the email
Hi Kenny,
Please send your files to forumsupport@thinkgeo.com, we tested our files, it works fine. please see the attached image.
Thanks,
Edgar
Done, just sent the files to that email.
FYI, it is a problem with our other zipcode shapefiles too, not just these two states
Hi Kenny,
Thank you for your files, we confirmed that’s a bug and fixed it, and the return features count is 256, please get the 6.0.128.0 or 6.0.0.128 and have a try.
Regards,
Edgar