-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
OCAD graphic objects are imported as unknown symbol #959
Comments
This will need test files. In order to not pollute the defined symbol set, an implicit symbol definition would need to embedded into the individual object. This should be aligned with other changes for dealing with graphic primitives, such as copy-and-paste between map and symbol editor. |
Shared a sample file via e-mail. |
We create synthetic symbols for graphical objects on import. All the symbols have the same name and number. Closes OpenOrienteeringGH-959.
OCD format recognizes symbol-less map objects that, however, render in map colors. They are called "graphic objects". We create synthetic symbols for graphic objects on import. All the Mapper symbols have the same name and number reflecting the anonymous nature of the source graphic objects. Closes OpenOrienteeringGH-959.
OCD format recognizes symbol-less map objects that, however, render in map colors. They are called "graphic objects". We create synthetic symbols for graphic objects on import. All the Mapper symbols have the same name and number reflecting the anonymous nature of the source graphic objects. Closes OpenOrienteeringGH-959.
Hi Libor, |
Thanks, Matthias, for testing the commit. Please mind that import of Layout objects poses substantially higher headache intensity. While graphic objects at least reuse the existing color table (see Ad graphic objects, I've just noticed that OCAD 8 can convert any objects into its graphic primitives. I thought it was possible only for text, but the program can convert any point object or combined line (like an earth bank) into simple lines and curves. As part of the process, OCAD 8 creates an auxiliary symbol for the lines. Later OCAD versions possibly optimized the object to graphics conversion by eliminating the need for the supplementary symbol definition. So, my conversion of graphic objects to the Mapper data model aligns with what OCAD 8 did. I'm not sure that we should go further down the rabbit hole. Conversion of (real) map objects to graphic objects prevents map conversion into alternate map keys. In my opinion, creating a map layout is not a Mapper function. |
And yes, I'm slow at getting the whole message. Ad creation of graphic objects for testing, I think you should draw a few complex lines (earth banks, streets), some point objects, and some text and convert them to graphic objects. That should create objects with symbol number -2. HTH |
You are right, besides the option to directly draw "layout vector objects" there are menu items to "Convert into [Graphic|Image|Layout] Object". |
Libor, thank you for your additions to import graphic objects. I created line and area objects, duplicated them and changed the duplicates to graphical objects. Your commits now allow to import these objects correctly. I noticed that in Parameter String 1024 there is a flag that controls the visibility of these graphical objects. Please find attached my test files (also including layout vector objects) with enabled and disabled graphic object visibility. I intend to have a look on importing layout objects as well. |
I added the functionality of importing layout objects by re-using your code, Libor: |
OCD format recognizes symbol-less map objects that, however, render in map colors. They are called "graphic objects". We create synthetic symbols for graphic objects on import. All the Mapper symbols have the same name and number reflecting the anonymous nature of the source graphic objects. Closes OpenOrienteeringGH-959.
@lpechacek: first, Happy New Year! Here is another test file: |
OCD format recognizes symbol-less map objects that, however, render in map colors. They are called "graphic objects". We create synthetic symbols for graphic objects on import. All the Mapper symbols have the same name and number reflecting the anonymous nature of the source graphic objects. Closes OpenOrienteeringGH-959.
OCD format recognizes symbol-less map objects that, however, render in map colors. They are called "graphic objects". We create synthetic symbols for graphic objects on import. All the Mapper symbols have the same name and number reflecting the anonymous nature of the source graphic objects. Closes OpenOrienteeringGH-959.
I've just received an OCAD 10 map where some of the fences are drawn as so called Graphic Objects. They get imported into OOM as lines with undefined symbol.
Looking into OCAD 10 format description, I seems to me that graphic objects are merely lines with defined color and width. It would be great is OOM either issued warning when encountering these objects or synthesized symbol definitions for them.
Configuration
Mapper Version: v0.7.0
Operating System: openSUSE Tumbleweed
The text was updated successfully, but these errors were encountered: