Interoperability - export dgn to shapefile - failure

Please can anyone cast a light on my problem.

I get the following error message when attempting to export linestring elements to shapefiles.

"Exception: Object reference not set to an instance of an object."

No elements are exported, No files are created.

I have tried this with several different files, in different workspaces, all with the same result.

I am using Bentley Map Standalone SS3 08.11.09.107 on a Dell XPS 8500, i7-3770, 64bit

I have been using Bentley Map SS1 & SS2 installed over MicroStation for some years and have not previously encountered this error, in fact the process has always been entirely straightforward. I have never used a geospatial project for this, just the Interoperability dialog box.

Bentley Map Standalone has only been installed on this machine for approx. two months, and this is the first time I have tried this operation while using it.

As I had done quite a bit of customisation on the config files, I thought that I might have upset something, so I have completely re-installed the program (inc. pre-requiste files) and tried again, but get the same message.

My final test file is a copy of the Bentley supplied work.dgn. There are two single lines on a new layer and the Geodetic parameters are set to UTM30N-WGS84.

Has anything changed? Is It now necessary to use a Geospatial Administrator Project?

The instructions in the help file seem to be the same. I have tried importing linework and that is OK.

Thanks for any guidance, Alice.

 

 

AT-export.zip
Parents
  • I can reproduct it. A further listing of the error is as follows:

    Exception:

    Object reference not set to an instance of an object.

    System.NullReferenceException: Object reference not set to an instance of an object.

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTConverter.AppendUTMZonedProjectionToWKT(basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* STLwkt, IOgcCartographicProjection projection, IOgcUnit projectionUnit)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTConverter.CreateWKTFromProjectedCoordinateReferenceSystem(IOgcProjectedCoordinateReferenceSystem projectedCoordinateReferenceSystem)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTConverter.CreateWKTFromCoordinateReferenceSystem(IOgcCoordinateReferenceSystem coordinateReferenceSystem)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTDictionaryBasedConverter.CreateWKTFromCoordinateReferenceSystem(IOgcCoordinateReferenceSystem coordinateReferenceSystem, ArrayList pio_pErrors)

      at Bentley.Geospatial.SpatialReferenceSystems.SRSWKTDictionaryBasedConverter.CreateWKTFromCoordinateReferenceSystem(IOgcCoordinateReferenceSystem coordinateReferenceSystem)

      at Bentley.Geospatial.Storage.OGRSpatialReferenceFromOgcCoordinateReferenceSystem(IOgcCoordinateReferenceSystem ogcCRS, SRSWKTConverter wktConverter)

      at Bentley.Geospatial.Storage.OGRStorage.CreateLayer(IECClass classDef, String layerName, IOgcGeometry ogcGeom, Boolean createMultiGeom, OGRDataSource* dataSource)

      at Bentley.Geospatial.Storage.OGRStorage.InsertObject(IECInstance newObject)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.InsertOrPopulateInstance(IECInsertableStorage insertStorage, IECLockInfo lockInfo, IECInstance instance, ECXfmSettings xfmSettings)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.ImportInstance(IECInstance instance, IECInsertableStorage insertStorage, ECXfmSettings xfmSettings, IECLockInfo lockInfo, Int32& count, Int32 max)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.ImportCursorInstances(IECInstanceCursor cursor, IStorageImportCriteria storageImp)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.ImportStorageImport(IImportCriteria criteria, IStorageImportCriteria storageImport, Boolean cancellable)

      at Bentley.Geospatial.DataInterchange.GDIImportProcessor.Import(IImportCriteria importCrit, IStorageImportCriteria singleStorage)

    I will check to see if this has been previously reported.

    I realize this is not much help for now, but let me check around..

     

  • Alice;

    What is the version of Bentley Map you are using ?

     

  • Ok guys,

    I reproduce either and I reported the issue to development (TR# 353171). It seems that is occurs only with UTM projection with WGS datum.

    Regards,


    This is a test

Reply Children
  • In this case the data lies outside the range of the Coordinate System.  If you move the data, it will export properly.  Also, if you change the coordinate system it will export properly.

    I believe that the error message that is produced should better-reflect the nature of the problem (instead of just error'ing-out producing a stack of code lines).  Perhaps that is what the TR could address.



  • Nice catch Dan!

    I would have to update TR accordingly.

    Thank you.


    This is a test

  • to All,

    Thank-you for your comments and efforts, I'm sorry the element in the sample file was in the wrong place, I think that happened when I changed the resolution.

    I have done a lot more testing with various settings in different parts of the world, and it seems the fault is more with the UTM grid than the WGS84 Spheroid, although datums using International are inconclusive. Both the independent TM Grids based on WGS84, that I tried were successful.

    Results below, which I hope may be of interest.

    At least I've discovered that I can export something, which is a relief. I think my temporary fix will be to export to a "near enough" geodetic setup and then transform the data in the QuantumGIS that I use for QC.

    I look forward to hearing any response to the TR.

    Thanks again for your help, Alice.

     

     

    Grid Spheroid/Datum export to
      shapefile
        successful
         
    U.K.    
    UTM30N WGS84 NO
    UTM30N ED50 (International) NO
    UTM30N International YES
    OSGB36 Airy YES
    Mercator
      EPSG54004 
    WGS84 YES
    Mercator
      EPSG3395
    WGS84 YES
         
    West Africa    
    UTM32N WGS84 NO
    UTM32N Minna(Clarke) NO
    Nigeria Mid
      Belt
    Minna(Clarke) YES
    TM6NE WGS84 YES
         
    U.A.E.    
    UTM36N WGS84 NO
    UTM36N AinAlAbd(Internat.) YES
    Dubai TM WGS84 YES