dwg2maptiles - space around image

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 Operating system, QCAD version
Attach Drawing files, Screenshots
Post Reply
simtaylo
Junior Member
Posts: 10
Joined: Tue Dec 18, 2018 1:25 pm

dwg2maptiles - space around image

Post by simtaylo » Wed Jan 16, 2019 2:36 pm

Hi,

When I use the dwg2maptiles it generates a lot of white space around the drawing. If I save the same file to a image from QCAD the image is nicely set to the extents of the drawing. How can we do the same with dwg2maptiles so the 256 x 256 image is filled with the drawing ?

Attached a sample .bmp saved from QCAD and the 0 resolution image from dwg2maptiles
Attachments
0.png
0.png (6.17 KiB) Viewed 788 times
SNG15_24.png
SNG15_24.png (861.71 KiB) Viewed 788 times
0.png
0.png (11.55 KiB) Viewed 789 times
SJCI_1.bmp
SJCI_1.bmp (900.05 KiB) Viewed 789 times

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

Re: dwg2maptiles - space around image

Post by andrew » Wed Jan 16, 2019 3:29 pm

The 0 tile should indeed be centered and fill the whole tile. Can you attach, PM or mail your DXF or DWG please, thanks.

For all support requests, please:
- indicate the operating system you are using and the version thereof (e.g. Windows 10 32bit, Windows 8.1 64bit, Ubuntu 14.2 64bit, macOS 10.12, etc.)
- indicate the exact version of QCAD you are using (see Help > About or QCAD > About QCAD or indicate the name of the file you have downloaded and installed)

simtaylo
Junior Member
Posts: 10
Joined: Tue Dec 18, 2018 1:25 pm

Re: dwg2maptiles - space around image

Post by simtaylo » Wed Jan 16, 2019 4:02 pm

Attached the 2 DWG files.

I am on MAC 10.14.2

Version:
3.21.3.0 (3.21.3)
Internet:
QCAD.org
Build Date:
Sep 17 2018
Revision:
4b91c8c
Qt Version:
5.10.0
Architecture:
x86_64
Compiler:
Clang 8.0.0
Attachments
SNG15_24.dwg
(2.1 MiB) Downloaded 31 times
SJCI_1.dwg
(428.35 KiB) Downloaded 27 times

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

Re: dwg2maptiles - space around image

Post by andrew » Wed Jan 16, 2019 5:14 pm

Thanks. There are some (empty) block references in the seemingly empty space of the drawing:
Schermafbeelding 2019-01-16 om 16.11.59.png
Schermafbeelding 2019-01-16 om 16.11.59.png (140.36 KiB) Viewed 780 times
These will be ignored in a future version. For now, please delete those block references (rectangle select and delete).

simtaylo
Junior Member
Posts: 10
Joined: Tue Dec 18, 2018 1:25 pm

Re: dwg2maptiles - space around image

Post by simtaylo » Thu Jan 17, 2019 12:49 pm

I have turned on all the layers and I still cannot see these things to select them and delete ?

What about the other file, does that have the same problem ?

Many thanks for the help

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

Re: dwg2maptiles - space around image

Post by andrew » Thu Jan 17, 2019 3:33 pm

These blocks are empty (i.e. there is nothing to display). You can find them by zooming out and selecting all (Select > Select all). They will then show up as blue reference points.

I also checked the other drawing, however, that case is a bit different. There appear to be block references with reference points far away from the drawing contents. Unfortunately, there is no easy workaround for such a file (short of exploding all block references). You'd have to wait for the next release for a fix.

Post Reply

Return to “QCAD Troubleshooting and Problems”