TerraSolid, Bentley Map and CityGML Exports

I am using the TerraSolid package for detecting and digitizing buildings. This digitization happens in Bentley Microstation v8i. Now I wish to export these buildings to CityGML using Bentley Map v8i.

How will this be possible?

Parents
  • Hi Shudh

    I haven´t done this my self yet, but I have done some investigations how this would be possible to do.

    But first the best way to get an better answer to this is to pop up the question to the Terrasolid user group site, there is maybe a way you can do the CityGML export without going throug BentleyMap.

    Here some ideas to consider anyway:

    Look if the generated buildings are saved as cells (if I remember right they are), if so you need to drop cell to geometry then you have plain Ms shapes. (doesn´t matter if you do this step in BM or plain MS)

    For the citygml export I think you need the FME extension (someone from BM crew has to confirm this) what I also think is you have to create an schema in BM to be able to add (Promote) the XFM info to your building shapes also to make an "collection" of shapes for one building  (if this is neccesery for your project).

    Use the export functionality in BentleyMap to export to CityGML(FME or not ??)

    Interesting thread anyway, please update the thread with your progress in this issue.

    Best regards

    Tom

  • Hello Tom,

    I do not know what "cell" is. Could you please give me some links or clarify?

    Yes you are right about the FME extension (this appears in Kolbe (2008) paper) and so I ventured into learning abt Bentley Map. But things are a bit incomprehensible owing to a lack of proper documentation.

    Regards

    Shudh

  • @Jeff

    I am sorry to say this but this is a pretty hopeless design of a user interface. Further, my question remains unanswered. It isn't still clear how buildings would be exported if they were being created in Bentley MS .

  • Hi shudh

    First of all you need basic knowledge in Microstation to do these kind of things, but anyway, I try to guide you as god as I can without having Microstation aviable.

    If I have understood you right you are using TerraScan and some Lidar data with point classified as Building points and then using Terrascan function to  automaticly generate the buildings, right?

    or

    Are you only reading lidar point as they are and want to manually vectorize buildings?

    //Tom

     

    BTW

    Jeff, thanx for that information god to know :)

  • I have manually digitized 2 - 3 buildings in Microstation using the TerraScan. NOw I wish to take them to the CityGML. Let us start from here.

  • Excellent, then you can forget my comment about cel, :)

    What you have now is basic shape or line  elements for walls roof etc. right.

    Now is the tricky part that I haven't either done just for CityGml export purpose within BentleyMap, but if you can , learn Geospatial Administrator, create new or modify an existing XFM schema then it is absolutely the best way to go. See Jeff´s answer. It´s not so difficult when you get the idea of XFM and you have a lot of benefits later on in your projects, when needed to convert/export/import to/from different GIS/CAD/XML formats

    But....If you consider open source software instead to do the Citygml conversion, you have an option to do this with ogr2ogr, see links:

    www.opengeospatial.org/.../citygml

    www.ogr2gui.ca/.../index.php

    Then you can use the Bentley Map only export your dgn file with your vectorized buildings to GIS format or save as different Cad format (this can be done with plain microstation) depending what format you chose to work with ogr2ogr

    Good luck

    //Tom

    BTW

    You know that if you have the full version of TerraScan and some Lidar data with point classified as Building points, you can automaticly generate the buildings, see example of the workflow on TerraSolid.com

    ...or you have lidar or pointcload data but no classification you can classify the points manually within Microstation and Point Cloud tools or do the classification through TerraScan with macros or manually either way I recommend you to learn that also.

Reply Children
  • Dear Tom,

    That is exactly the same point you mentioned in this thread. Unfortunately, this is not very helpful.

    TerraScan not only enables the detection of buildings, but trees and grounds as well, and yes we have the full version of TerraScan here, and TerraModel and TerraPhoto !!!

    However, my GIS exposure tells me that features have to be "labelled" as buildings for doing some query etc. Where is that Labelling process? There are many schemas available with CityGML file (the entire zip archive is available for download there). Which schema do I have to use for the export?

    The DGN support with GDAL does not exist for DGN v8 and above version. Your OGR2OGR utility is useless here. (see www.gdal.org/.../drv_dgn.html). Safe recommends the purchase of FME ultility which I doubt we would be able to purchase at our end in a short time.

    In summary, I would like you to agree that the Bentley Documentation is really crude in the current stage.

    Also, I am sorry to say this but Jeff's answer is as Greek and Latin as your last one (for me)!

    Shudh

  • Hi,

    In order to export to CityGML file, you need first to create GIS "Features".

    Next you need to export to CityGML file using our FME plug-in.

    In order to create GIS Features that are compliant with the CityGML schema specification the simplest way is to use the CityGML application template we developed for Bentley Map... You can use either a simple "promote" as mentionned somewhere below or use custom macro we provide to streamline the process when your initial Buildings are expressed as Solids.

    So the process is:

    1_ get your Building geometries (ideally as solid to warranty that each faces are well snapped together) (This can be done in Vanilla MicroStation)

    2_ Load a CityGML schema in Bentley Map

    3_ Promote CAD elements into GIS Feature (if you have solids, then the use of the Dedcated macro accelerate the process)

    4_ Export to CityGML.

    hth

    Ben

    CityGMLv2SS3.zip
  • I attached the CityGML application template mentioned and the last version of the mentioned Macro. Please note that this Macro requires this Schema.

    I hope this will help you getting starting.

    Regards

    Ben

    Promote_from_3D_Solid_macroV5.mvba
  • No, I could not understand how to promote and all that. Please show with examples and screenshots.

  • Hi,

    please find here a video with a voice over going through each steps.

    Please note that in this demonstration video, each building part is "manually" promoted to Features but that using the dedicated macro (attached in my previous answer), this is done in a single click.

    This video has the benefit of showing the details of the data structure.

    hth

    Ben