Open MaBreaker opened 1 year ago
@MaBreaker: could you attach a small DXF test file to this issue?
@MaBreaker: your proposed solution does not work that way. For text objects the angle (and anchor) is 'transported' within the 'description' property of the text symbol (see getSymbolForLabel()). For point objects no angle is retrieved and no description is set.
I doubt that this way of transporting object specific data should be applied to other objects types.
@MaBreaker: your proposed solution does not work that way. For text objects the angle (and anchor) is 'transported' within the 'description' property of the text symbol (see getSymbolForLabel()). For point objects no angle is retrieved and no description is set.
I doubt that this way of transporting object specific data should be applied to other objects types.
Hi, that might be true, as mentioned I do not know exactly how GDAL OGR works and what information is provided through their tools and I do not have working QT compiler for OOM to see or test it in debug mode.
Texts are having angle for sure also when imported through OGR library.
However all point objects (beside texts) can have angle as well, if not then OGR library does not work correctly and are missing this important feature.
Attached one simple DXF having small depression in it with two slope lines, which both should be pointing to the centre of the depression, but as import angle feature is missing those booth are now falsely pointing north.
OOM does not import rotation angles corretcly
OCAD works fine with rotation angle
Example files attached slope.zip
Steps to reproduce
Actual behaviour
Point object rotation angle is defined in DXF file (like below POINT code 50 angle -167.00), but are lost in Import
Expected behaviour
Point object rotation angle should be set accordingly (when defined) during file import.
Proposal
I believe DXF file is imported through OGR and POINTs with importPointGeometry function. If so and if original DXF angle is stored into OGR symbol details (which I do not know) the same way as with Text objects, then it could work something like..
Configuration
Mapper Version: 0.9.5 Operating System: All