mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
read/write CAD (DWG/DXF/DXFB) files. It was designed to have a uniformal API to work with any CAD files. It has a base class - CADFile. Inheriting this class it's possible to create a driver for any CAD format, all you need to do - is to overwrite interface functions like GetGeometry(index), and others. Now it has an implementation for DWG2000 (R15), but only for read. Library comes with cadinfo utility, which prints out everything library can get from file - header variables, CAD custom classes, presented layers and geometries with their attributes. WWW: https://trac.osgeo.org/gdal/wiki/DWG_driver PR: 212129 Submitted by: lbartoletti@tuxfamily.org
29 lines
721 B
C++
29 lines
721 B
C++
--- lib/cadheader.cpp.orig 2016-08-24 13:25:41 UTC
|
|
+++ lib/cadheader.cpp
|
|
@@ -243,6 +243,17 @@ CADVariant::CADVariant( const char * val
|
|
dateTimeVal = 0;
|
|
}
|
|
|
|
+CADVariant::CADVariant( long val )
|
|
+{
|
|
+ type = DataType ::DECIMAL;
|
|
+ decimalVal = val;
|
|
+ stringVal = to_string( decimalVal );
|
|
+ xVal = 0;
|
|
+ yVal = 0;
|
|
+ zVal = 0;
|
|
+ dateTimeVal = 0;
|
|
+}
|
|
+
|
|
CADVariant::CADVariant( int val )
|
|
{
|
|
type = DataType::DECIMAL;
|
|
@@ -303,7 +314,7 @@ CADVariant::CADVariant( const string& va
|
|
dateTimeVal = 0;
|
|
}
|
|
|
|
-CADVariant::CADVariant( time_t val )
|
|
+CADVariant::CADVariant( time_t val, bool bIsTime )
|
|
{
|
|
type = DataType::DATETIME;
|
|
dateTimeVal = val;
|