OSGeo – GDAL/OGR in vdPClassify and vdPCADdesign

GDAL is a C++ translator library for more than 200 raster and vector geospatial data formats. It offers an API for a variety of languages such as C, C++, Python, Perl, C# and Java.

vdPConsulting has investigated whether and how this GDAL/OGR functionality can be implemented in a C# plugin in AutoCAD.

In vdPCADdesign, it is now possible to export CADdesign-objects to GML, GeoJSON, GeoPackage and ESRI Shape files. For reading from the same files, CADdesign-objects are expected to write them as objects in the drawing.

Also in vdPClassify it is now possible to export Classify-objects to GML, GeoJSON, GeoPackage and ESRI Shape files. For reading in from the same files, generic functions have been implemented in the vdPClassify-toolkit that read in the points, lines and polygons and create them as generic AutoCAD Points, Polylines and Closed Polylines in the drawing.

More information?
Ask the cadgis-consultant.

OSGeo – GDAL/OGR

GDAL is a C++ translator library for more than 200 raster and vector geospatial data formats. It offers an API for a variety of languages such as C, C++, Python, Perl, C# and Java.

In the Visual Studio development environment it is possible to download NuGet packages. These are open source development libraries you can simply add to your .NET project.

A number of NuGet packages are available for GDAL. In addition to the complete GDAL environment, so-called .NET wrappers are installed with which C# functions in the underlying GDAL C++ DLLs can be called.

vdPConsulting is currently investigating the possibilities to implement GDAL/OGR functionality in a C# plugin in AutoCAD to export data to and import from GML, GeoJSON, GeoPackage and ESRI Shape files.

vdPClassify, MicroStation DGN and ESRI Shape

vdPClassify has been developed to provide information on DWG-elements to be stored in a migration scheme and also to capture the ‘mapping’ to the appropriate database tables and attributes.

vdPClassify was until recently only able to process AutoCAD or AutoCAD Map DWGs.
From now on it is also possible to process (a folder with) MicroStation DGN’s. vdPClassify still has to run as a plugin in AutoCAD, but during the processing of a folder CAD-files, the software checks whether it is a DWG or DGN and processes it properly.

By means of smart data filters, objects from the drawings are filtered. Next, information from the objects is read using powerful property filters.

vdPClassify writes the classified objects to GML.
From now on it is also possible to use vdPClassify on vanilla AutoCAD (without using the FME-engine) to write these objects to ESRI Shape files.

More information?
Ask the cadgis-consultant

vdPClassify, ribbon toolbar functions

vdPClassify has been developed to provide information on DWG-elements to be stored in a migration scheme and also to capture the ‘mapping’ to the appropriate database tables and attributes. vdPClassify is a .NET utility available for various AutoCAD versions and can process a folder with AutoCAD & AutoCAD Map DWG’s and MicroStation DGN’s.

Toolkit functions

  • vdPClassifyAnalyse, writes contents of the drawing (entities, attributes, xdata, xrecord and objectdata) to XML and Excel.
  • vdPClassifyInfo, displays data (attribute, xdata, xrecord and / or objectdata) of an entity in an info screen.
  • vdPClassifyGMLexport, writes the current DWG to GML.
  • vdPClassifySHPexport, writes the current DWG to SHP.
  • vdPClassifyCADexport, writes the current DWG to a copy with a different structure.
  • vdPClassifyXLSexport, writes the current DWG to Excel.

Runtime functions

  • vdPClassifyGMLconversie, selects a folder with DWG/DGN’s and writes them one by one to GML files.
  • vdPClassifySHPconversie, selects a folder with DWG/DGN’s and writes them one by one to SHP files.
  • vdPClassifyCADconversie, selects a folder with DWG/DGN’s and writes them one by one to a copy with a different structure.
  • vdPClassifyXLSconversie, selects a folder with DWG/DGN’s and writes the content one by one to lists in Excel files.
  • vdPClassifyAbout, displays the About screen with user and license information.

More information?
Ask the cadgis-consultant

vdPClassify for NLCS

vdPClassify can also be used to convert existing DWG-files with their own layer coding to DWG-files compatible with NLCS (= Dutch CAD-standard for the GWW-sector). For this purpose, specific data-filters are created and property-filters for the conversion are set up.

During the analysis phase insight is gained into the current layer codings, used line types and block names. After that, a mapping is defined to the relevant NLCS-codes. When the control table is set up, the vdPClassify conversion function converts the existing structure quickly and reliably into an NLCS-structure in the DWG.

More information?
Ask the cadgis-consultant