ThinkGeo.com    |     Documentation    |     Premium Support

FDO-Extension - Error on loading dgn file

Hello,


I tried to load a Microstation dgn-file with OgrFeatureLayer. But I get an error when Map tries to paint the layer.


If I change file to shapefile type everything works allright.


Maybe there is a problem with my file. I have attached it to this post.


Thomas



1498-ALB_000_A_V.zip (23.4 KB)

Thomas, 
  
 I can recreate the error by using your data, it will throw TargetInvocationException: “Exception has been thrown by the target of an invocation.” when layer open. 
  
 The problem is caused by Fdo which is the abbreviation of FDO Data Access Technology API which is a third party project to process. 
  
 I can’t solve your problem, but I will keep an eye on Fdo, if it fixes this bug in next release I will let you know. 
  
 Thanks 
 James 


Thomas, 
  
 OGR can only read Microstation V7 or earlier DGN files.  
  
 Is this the case?  
  
 James

Hello James, 
  
 thanks for information. But I tried it again with an Microstation V7 file and got the same error. But the file seems allright because I can open it with an 3.rd party dgn-viewer 
  
 Thomas

Hi Thomas, 
  
 Can you tell me more information about the 3.rd party dgn-viewer? And is it using FDO(Feature Data Object) as data access provider? 
  
 Thanks 
 James

Hi James, 
  
 I use free Tatuk-Viewer to display the dgn-files. I don’t think they use FDO. 
  
 Thomas

Thomas, 
  
 I look at Tatuk-Viewer, it can display dgn-file as you said. I will research how it does without FDO, if I fing a workaround way I will let you know.  
  
 Thanks 
 James

Hello James, 
  
 just want to know if there are any new infos on my problem. 
  
 If we are not able to use the dgn files with FDO we can try to convert it. 
  
 Do you know any converters from FDO to shape. 
  
 Thomas

Hi Thomas, 
  
 Sorry for the delay of this issue. I will send an email to James to see what the progress of this issue and let you know the result. 
  
 Thanks for your patience and sorry for the inconvenience. 
  
 Sun