Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Painting Command not supported on webcgm files #13

Open
andrlange opened this issue Sep 17, 2024 · 6 comments
Open

Painting Command not supported on webcgm files #13

andrlange opened this issue Sep 17, 2024 · 6 comments

Comments

@andrlange
Copy link

I have tried to read CGM Files from our vendors but they are not decoding correctly.

"ProfileId:WebCGM","ProfileEd:2.0","Source:Created by IsoDraw 7.3"

Painting command: Unsupported - BeginApplicationStructure [applicationStructureIdentifier='IsoL1', applicationStructureType='layer', inheritanceFlag=false] id:21
2024-09-17T08:44:11.507+02:00 INFO 75936 --- [frontend] [nio-8080-exec-9] de.tddsgmbh.frontend.utils.CGM4SVG : Painting command: Unsupported - ApplicationStructureAttribute [applicationStructureAttributeType='layername', sdr=StructuredDataRecord [members=[[type=SF, count=1, data=[Standardebene]]]]] id:1

@daviddiana11
Copy link
Contributor

You will find the list of supported commands here: jcgm features.
Note 1: an unsupported command will not prevent the interpretation of the other supported commands. The image will still be rendered by the library.
Note 2: this command is typically used for the "interaction layer" mentioned in my reply here.

@andrlange
Copy link
Author

Using the result and render this as svg jcgmtosvg shows just an empty image. I can send you the cmg on demand.

@daviddiana11
Copy link
Contributor

Sure @andrlange, would appreciate to have the CGM sample for troubleshooting.

@andrlange
Copy link
Author

@daviddiana11 you can download the example cgm files via: https://downloads.cfapps.cool/downloads/cgm.zip

@daviddiana11
Copy link
Contributor

Thanks @andrlange. I had a quick look:

  1. CGM processing
    The "isoview.cgm" could be rendered as CGM. It contains a JPEG image plus some overlay.
    The "allprims.cgm" could not be rendered. Either the CGM is corrupted - to be checked if it can rendered by another CGM viewer - or a fix is indeed required.

  2. SVG conversion
    The "isoview.cgm" remains blank once converted to SVG because the converter does not support embedded raster images yet ("Tile" commands),

@andrlange
Copy link
Author

Are there any plans to extend the features so that rastered and embedded images will work? I could even provide more examples... allprims.cgm is readable with webviewers, it is almost text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants