воскресенье, 10 июля 2016 г.

Week 7 Report.

1. This week I've done:
Libopencad changes:
- Fixed reading of files with only 1 object inside (before, it used to enter endless loop).
- Filemap creation speeded up.
- Added a bunch of various tests.
- Minor fixes and code formatting.

OGR CAD Driver changes:
- Basic spline geometry support added.
- Code refactoring, memory leaks fixes.
- I've started removing any dependencies on C++11 in driver code (but libopencad still will require -std=c++11).

2. Plan on doing next week:
Complete spline geometry, polylines interpolation, remove any dependencies on c++11 from driver code, fix ERRORs that appears when using test_ogrsf util. Get info about OGR Feature Style and make geometry parameters mapping into it.

3. Blocking:
None.

Links:

Extra:
This week my mentor (Dmitry Baryshnikov) have succesfully built QGIS with CAD Driver. There are some screenshots and little comparisons to ArcGIS and ACAD.
ACAD vs QGIS (with CAD driver)
ArcGIS vs QGis


воскресенье, 3 июля 2016 г.

Week 6 Report.

Last week I had to move back home, and I had to set up a new working environment, and it took a lot of time. Also, I changed priority a little, so 'probably to be done' tasks are done (EED), and 'to be done' task becomes next week task.

1. This week I've done:
Libopencad changes:
- ExtendedEntityData is now available by method vector< string > CADGeometry::getEED();
- ESRI SpatialRef is now available by method string CADFile::getESRISpatialRef();

OGR CAD Driver changes:
- EED support added (all EED are presented as a feature string attribute).
- *.prj file reading, or extracting it from CAD file, if not presented.

2. Plan on doing next week:
Polylines tesselation, spline geometry. Test library on a files with a lot of different objects (raster/vector). Fix CAD driver issue (described below).

3. Blocking:
As far as I can see Latest commits to libopencad crashed CAD Driver on my Mac. GDAL still builts fine, but calling ogrinfo with DWG file causes an endless loop somewhere in libopencad, however, tests are passed and cadinfo app works just fine. Currently I have no idea what can cause such behavior, and I am working on it.

Links:


Best regards,

Alexandr Borzykh

воскресенье, 26 июня 2016 г.

Week 5 Report.

I have declined the idea of starting implementing R13-14 support because R15 still misses some necessary capabilities, and they should be done earlier than adding support for a new version. Also, the differences between R15 and R13/R14 are pretty small, and implementing them will not be a difficult task.

1. This week I've done:
Libopencad changes:
- Fixed failing on geometry reading tests (if library was compiled with GCC).
- Fixed Travis-CI build (now it works properly).

OGR CAD Driver changes:
- Added LWPolyline, Polyline3D (polylines does not support 'tesselation' yet), Text, MText (texts are presented as single point with filled "Text" attribute field), Ellipse support.
- Changed VSIF...() functions calls to VSIF...L().

2. Plan on doing next week:
Implement methods to extract info about coordinate system from file, or from associated .prj file.
Add tesselation to polylines. Add spline geometry support in driver. Start on implementing reading of ExtendedEntityData and adding its support to CAD Driver.

3. Blocking:
None, but Hatch geometry is pretty complex to implement, I am still working on it (will be done in next 2-3 days). Also, WIPEOUT geometry (which sometimes can be seen in DWG files) has no description in ODA DWG Specs.

Links:


воскресенье, 19 июня 2016 г.

Week 4 Report.

1. This week I've done:

Libopencad is extended with:
- 2 new geometry types: ATTDEF and ATTRIB.
- Color is now a geometry attribute, so, it can be got by calling CADGeometry->getColor() (returns RGBColor struct).
- Libopencad docs prototype can be seen there (a lot of things are missed).

OGR CAD Driver extended with:
- All libopencad's file I/O was rewritten using VSIF.
- Arc, Face3D geometries.
- Now geometry color is attribute (given as IntegerList in RGB format).

2. Plan on doing next week:
Previous week tasks: add Polyline3D, LWPolyline, Ellipse support to CAD Driver.
Add hatch geometry to libopencad. Implement dimensions library output representation. Start working on R13-R14 DWG support.

3. Blocking:
None.

Links:

суббота, 11 июня 2016 г.

Week 3 Report.


1. This week I've done:
Implemented CAD OGR Driver, now it can read points/lines/circles received from libopencad.
Since libopencad is written in C++11, I’ve added a check in configure tool which tests whether C++ compiler supports C++11. If it does, CAD driver will be a built-in, or disabled if no support is provided.

Now, ogrinfo can open .DWG files (only supported versions by libopencad).
Example:
File opening errors are also handled:

2. Plan on doing next week:
Rewrite libopencad’s file I/O with VSIF functions (now it uses fstream).
Increase driver geometries pool with ellipses, lwpolylines, 3dpolylines. Start implementing doxygen to libopencad.

3. Blocking:
None.

Links:

суббота, 4 июня 2016 г.

Week 2 Report.

This week we've changed the development direction with my mentor (Dmitry Baryshnikov). Now, library (libopencad) development is 'freezed' in some kind, and I am starting developing OGR driver.
  1. This week I've done:
1. Implemented Linetypes reading (but they are not associated with drawing objects still). Implemented google tests for reading large files (with big amount of objects) - for lwpolylines and 3dpolylines.
2. A little code refactoring.

2. Plan on doing next week: Implement linetypes for objects, extend supported geometries list with new ones. Code refactoring.
Write driver 'skeleton', and try to integrate libopencad.

3. Blocking:
None, but since I am not very familiar with OGR driver implementation - I am slowed down by this fact.