Skip to main content

The Support of DGN V8 Format

TODO this document needs to be reviewed and updated for SAMO 9/10

LIDS AS can process vector backdrops with DGN V8 files using the ODA Teigha library. If you withh to enable this functionality, please follow the steps below to set up the Teigha library and configure LIDS AS accordingly.

Windows Platform

  1. Download Teigha binaries from file:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\vc10_amd64\bin to the server machine, e.g. C:\Software\Teigha_4.2.2
  2. Add the directory with Teigha binaries to the system variable PATH
  3. Copy LIDS-Teigha libraries TeighaJavaCore.jar, TeighaJavaDgn.jar and teigha-library-loader-1.1.jar from file:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\vc10_amd64\lib to Java EE server directory $TOMCAT_DIR/lib
  4. Be sure that appropriate version of Visual C++ Redistributable Package is installed
  5. Restart the server computer – this point is very important!

Linux Platform

  1. Download Teigha binaries from file:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\lnxX64_4.4\bin to the server machine, e.g. /opt/Teigha_4.2.2
  2. Set environment variable LD_LIBRARY_PATH to the directory with Teigha binaries
  3. Copy LIDS-Teigha libraries TeighaJavaCore.jar, TeighaJavaDgn.jar and teigha-library-loader-1.1.jar from file:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\lnxX64_4.4\lib to Java EE server directory $TOMCAT_DIR/lib

LIDS AS Configuration

Use ECA property support_dgnV8="true" to ensure the following lines are inserted to the web.xml file:

<listener>
<listener-class>com.berit.lids.service.backdrop.dgn.TeighaImageProvider</listener-class>
</listener>

In config.xml file, at the end of the section advanced/additionalProperties, register which backdrop types will be processed by Teigha image provider:

<advanced>
<additionalProperties>
<property name="spatialAnalysis.columnDbName.fid1" value="FID1"/>
...
<!-- Plug ODA Teigha library to process backdrops with DGN V8 or V7 formats. -->
<ODATeighaLibrary enabled="true">
<backdropType id="bd_detailed_plan_v8"/>
</ODATeighaLibrary>
</additionalProperties>
</advanced>
note

As the Teigha supports DGN V8 and V7 formats, you can also refer to backdrop types containing DGN V7 files.

Limitations

In comparison with the current DGN7 provider, the Teigha image provider doesn't support these features for now:

  • Black & White print
  • Line styles
  • Thickness of lines for displaying
  • Thickness of lines for printing defined in presentation.xml file
  • Raster image instead of vector graphics is used for the print