Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki Unit Conversion in Mapping Files
    • Sign In
    • -OpenGround Wiki
      • +Applications
      • -Guides and Learning
        • +Preparing for OpenGround
        • +Onboarding with OpenGround
        • -Learning Pathways to Embedding
          • +OpenGround Quick Setup Guide
          • Introduction for New Users in Established Systems
          • +OpenGround Quick Start Guide
          • +Configuration Pack Guides
          • Quick Reference Sheets
          • -Import Mapping
            • General Concepts
            • +File Structure
            • +Mapping Functions
            • +Expressions
            • +Examples and Use Cases
            • -Import Mapping Common Issues
              • Scale that is too large error
              • Unable to upload documents and options
              • Unit Conversion in Mapping Files
            • How to Create a Basic gINT Mapping File
            • Importing, Downloading, and Deleting Mapping Files
          • +Batch Import Tool
      • OpenGround Supported Platforms
      • +How To Contact Support
      • Component Center
      • Events
      • Training Guides
      • +Developer Resources

     
     Questions about this article, topic, or product? Click here. 

    Unit Conversion in Mapping Files

    Some OpenGround data import processes will handle unit conversion if the source value uses a different unit than the destination OpenGround header. These conversions are generally performed automatically without having to include any special expressions in the mapping file. Currently, AGS and CSV imports are the primary formats that handle unit conversion. Note that CSV import will only convert values if the CSV .zip file contains a UnitMappings.csv file (default CSV exports from OpenGround automatically contain this file). See this article for more information.

    Other imports may not perform unit conversion automatically, such as for gINT imports or custom CSV imports that do not contain the UnitMappings.csv file. In this case, expressions will need to be included in the mapping file to perform the unit conversion.

    In the example below, the SAMP_REC (Sample Recovery Length) value is stored in meters in the gINT Project File. But the target OpenGround header stores the value in millimeters. The mapping below will convert the value from millimeters to meters and round the value to 3 decimal places using the fixed() function.

    <field mode="Evaluate" condition="IsDefined('SAMP_REC')" destination="SampleRecoveryLength" expression="fixed(SAMP_REC*1000,3,false)" />

    • Share
    • History
    • More
    • Cancel
    • Jesse Greenwald Created by Bentley Colleague Jesse Greenwald
    • When: Wed, Jun 7 2023 5:14 PM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies