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
Using dwg2maptiles how can I make the images generated have no whitespace around the outside
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Using dwg2maptiles how can I make the images generated have no whitespace around the outside
- Attachments
-
- TKY7-26.dwg
- (525.45 KiB) Downloaded 403 times
Re: Using dwg2maptiles how can I make the images generated have no whitespace around the outside
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
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
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
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
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
./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
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
Thank you for that clarification Andrew