Unexpected colors on the Map Tile Result

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
as-yogi
Newbie Member
Posts: 3
Joined: Thu Oct 08, 2020 9:38 am

Unexpected colors on the Map Tile Result

Post by as-yogi » Tue Feb 16, 2021 12:05 pm

Hi,

First of all, thank you for this amazing tool, it's really useful for processing DXF/DWG files. However I have a question regarding `dwg2maptiles` command line tool.

So I've processed a lot of DXF files with this tool and so far their results have been fine. However for this specific file that I attached in my message, for some reason there is these colors that don't exist in the DXF file.
image (72).png
image (72).png (934.34 KiB) Viewed 3014 times
I've tried to open the file on QCAD GUI and other CAD applications, however I cannot find any layers or entities that look anything like that. This might be file issue or might be tool issue, but I have no more idea in regards of the file so therefore I am asking you if it is QCAD-related issue or if there's something that I missed from this file.

I've attached the input file here and here's my specification:
OS: Linux 64 bit
QCAD Version: 3.25.2

Looking forward for your help and thank you in advance!
Attachments
397_46439.dxf
(11.01 MiB) Downloaded 303 times

User avatar
andrew
Site Admin
Posts: 9061
Joined: Fri Mar 30, 2007 6:07 am

Re: Unexpected colors on the Map Tile Result

Post by andrew » Tue Feb 16, 2021 9:48 pm

Please indicate what exact command line arguments you are using to process this file, thanks.

as-yogi
Newbie Member
Posts: 3
Joined: Thu Oct 08, 2020 9:38 am

Re: Unexpected colors on the Map Tile Result

Post by as-yogi » Wed Feb 17, 2021 3:14 am

Hi, Andrew, thank you for your response!

The following is the script that I used to generate this output.

Code: Select all

dwg2maptiles -platform offscreen -a -tms -web-mercator -q 100 -t png -z 2-22 -hq-postfix=@2x -skip-empty -b transparent -o /tiles filename.dxf &

User avatar
andrew
Site Admin
Posts: 9061
Joined: Fri Mar 30, 2007 6:07 am

Re: Unexpected colors on the Map Tile Result

Post by andrew » Mon Feb 22, 2021 11:14 am

I suspect a problem with the transparent background. Can you try

Code: Select all

-b white
just to confirm / rule out my suspicion.

Unfortunately I was unable to reproduce the problem here.

You can also try:

Code: Select all

-b "#ffffffff"
which is essentially a transparent white (#AARRGGBB).

Please let us know what effect these different options have.

Post Reply

Return to “QCAD Troubleshooting and Problems”