[solved] dwg2maptiles does not generate all tiles

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
pechnik
Newbie Member
Posts: 7
Joined: Wed Feb 17, 2021 3:52 pm

[solved] dwg2maptiles does not generate all tiles

Post by pechnik » Tue Aug 23, 2022 4:24 pm

I have clients who work in Nanocad (https://nanocad.com/). When tiling drawings from this program, it doesn't matter dwg/dxf, some tiles are not generated (see gif file).
qcad.gif
qcad.gif (3.4 MiB) Viewed 2794 times
It also displays a warning in the console.
warning.png
warning.png (46.58 KiB) Viewed 2794 times
dwg2maptiles command:

Code: Select all

dwg2maptiles.bat -tile-markers -web-mercator -skip-empty -z 13-18 -b transparent -o E:\temp\tiles_nanocad E:\temp\test_file.dwg
Windows 10, qcad 3.25.2 pro

What could be wrong?
Attachments
test_file.dwg
(31.41 KiB) Downloaded 187 times

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: dwg2maptiles does not generate all tiles

Post by CVH » Wed Aug 24, 2022 3:44 am

Hi,

Not that I have experience with 'maptiles'.
I look at this from the dwg/dxf perspective.

I have difficulties in selecting some entities with some methods.
In special Alt-Select and Box-Select-Intersect with the cursor.
For example when I Box-Select from (17610700,7034100) to (17610200,7034600) it selects only 3 out of 11 polylines.
I then suspect that the -skip-empty option has the same trouble.

First thing that come to my mind are Z values but that doesn't show at first glance.
Still, I can export the details of polylines in full and then it is obvious.

The 8 problematic entities have vertices with Z=1.692347e-10 (6x), Z=1.69237e-10 or Z=1.692365e-10.

Please flatten your drawing with Misc menu .. Modify .. Flatten Drawing to 2D.

There is no image referenced in the test drawing and none was included.
I also spotted a zero length line entity (handle=0x1cd4) at about (17609940,7034104).

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: dwg2maptiles does not generate all tiles

Post by Husky » Wed Aug 24, 2022 6:46 am

@pechnik
pechnik wrote:
Tue Aug 23, 2022 4:24 pm
What could be wrong?
I'm under the same impression like CVH that the drawing contains tiny pieces of 3D elements.
CVH wrote:
Wed Aug 24, 2022 3:44 am
Please flatten your drawing with Misc menu .. Modify .. Flatten Drawing to 2D.
That would be the GUI tool solution but you can also include the "Flatten Drawing to 2D" function in your CMD command as an option:

Code: Select all

dwg2maptiles.bat -flat -tile-markers -web-mercator -skip-empty -z 13-18 -b transparent -o E:\temp\tiles_nanocad E:\temp\test_file.dwg
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

pechnik
Newbie Member
Posts: 7
Joined: Wed Feb 17, 2021 3:52 pm

Re: dwg2maptiles does not generate all tiles

Post by pechnik » Thu Aug 25, 2022 9:50 am

Thanks a lot. -flat option solved the problem!

Post Reply

Return to “QCAD Troubleshooting and Problems”