ThinkGeo.com    |     Documentation    |     Premium Support

Opening TabFileFeatureSource fails

Hello,


I am having trouble opening tab files in with the mapsuite. I know it is not directly supported by ThinkGeo, but I'm curious if anyone else has run into this. Perhaps it is a DLL version issue?


   
FeatureLayer fLayer = fLayer = new TabFileFeatureLayer( fileName, idField );
flayer.FeatureSource.Open();


This throws the rather cryptic exception: "Connect failed: ". The stacktrace is:


   at OSGeo.FDO.Connections.IConnectionImp.Open()

   at MapSuiteFdoExtension.GeoFdoFeatureSource.Open(String providerName, String connectionString, String idColumnName, String featureSchemaName, String featureClassName, String geometryColumnName)


 


I have MapSuite version 3.1.299 and my OSGeo.FDO.dll sitting in the System32 directory is 3.4.0.0. While I believe all of these are latest, I must admit I've been rearranging DLLs a lot because of the Spatial Data Extension stuff.



Kevin, 
 Thanks for your post. 
  
 We have a HowDoI sample showing how to use the Tab file with Tab file attached in the product, could you try this to see it works?  It is expected to work, if not, I doubt there is some problem in your installed DLLs. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale