Page 1 of 1

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

Posted: Mon Jul 08, 2019 1:51 pm
by simtaylo
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

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

Posted: Mon Jul 08, 2019 3:11 pm
by andrew
The margin is 10%. A switch -m / -margin will be added to the next release to configure the margin.

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

Posted: Tue Jul 09, 2019 12:03 am
by simtaylo
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.

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

Posted: Fri Jul 12, 2019 9:48 pm
by andrew
We're planning to release 3.22.2 before July 20.

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

Posted: Mon Jul 15, 2019 10:29 am
by andrew
A snapshot release with this new command line switch is now available (3.22.1.6).

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

Posted: Sun Jul 21, 2019 11:15 am
by simtaylo
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

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

Posted: Mon Jul 22, 2019 11:10 am
by andrew
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.

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

Posted: Mon Jul 22, 2019 1:32 pm
by simtaylo
Thank you for that clarification Andrew :)