Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

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

Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by simtaylo » Mon Jul 08, 2019 1:51 pm

Hi,

Using dwg2maptiles how can I make the images generated have no whitespace around the outside of the content from the DWG file. At the moment there is a lot of white space generated around the content.

Examples DWG attached. Command used is :

./dwg2maptiles -f -p -z 6 -b '#ffffff' -k TKY7-26.dwg

Thanks
Simon
Attachments
TKY7-26.dwg
(525.45 KiB) Downloaded 400 times

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by andrew » Mon Jul 08, 2019 3:11 pm

The margin is 10%. A switch -m / -margin will be added to the next release to configure the margin.

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by simtaylo » Tue Jul 09, 2019 12:03 am

Thank you Andrew, any ETA on when that release will be available ? I would be happy to take an interim build to test for you also.

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by andrew » Fri Jul 12, 2019 9:48 pm

We're planning to release 3.22.2 before July 20.

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by andrew » Mon Jul 15, 2019 10:29 am

A snapshot release with this new command line switch is now available (3.22.1.6).

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by simtaylo » Sun Jul 21, 2019 11:15 am

Hi Andrew, I installed the latest release. I used the following command

./dwg2maptiles -z 6 -b '#ffffff' -k -m 0 TKY7-26.dwg

I am now getting no margin at either left & right sides but still am at the top and bottom. am I using the switch correctly ?

Thanks
Simon

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by andrew » Mon Jul 22, 2019 11:10 am

Map tiles are by definition squares. If your drawing is not square shaped (i.e. same height as width), there will always be margins either at the sides or at the top / bottom.

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

Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside

Post by simtaylo » Mon Jul 22, 2019 1:32 pm

Thank you for that clarification Andrew :)

Post Reply

Return to “QCAD 'How Do I' Questions”