dwg2maptiles

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
Ivan1
Newbie Member
Posts: 7
Joined: Wed Aug 31, 2022 9:52 am

dwg2maptiles

Post by Ivan1 » Sun Sep 04, 2022 7:04 am

-p, -origin Draw zero point (origin)
how to set -origin, like -origin=x,y?

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

Re: dwg2maptiles

Post by CVH » Sun Sep 04, 2022 1:31 pm

Hi,

Draw zero point (origin) would draw the origin of your dwg/dxf file.
That is a fixed position (0,0) within your drawing file.
Ivan1 wrote:
Sun Sep 04, 2022 7:04 am
how to set ...
Are you reffering to the option -center=X,Y to set the center of the first tile?

Regards,
CVH

Ivan1
Newbie Member
Posts: 7
Joined: Wed Aug 31, 2022 9:52 am

Re: dwg2maptiles

Post by Ivan1 » Mon Sep 05, 2022 5:48 am

./dwg2maptiles -platform offscreen -skip-empty -z 6 -color-correction -center=10000,300 -b white -a -o /home/nvisual_lite_frontend/dist/img/tiles/ cad-example2.dwg
i added option -center=10000,300, But the output shows no change in position yet.

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

Re: dwg2maptiles

Post by CVH » Mon Sep 05, 2022 6:50 am

Ivan1 wrote:
Mon Sep 05, 2022 5:48 am
But the output shows no change in position yet.
What position are you trying to change?
One can not change the origin of a drawing but one can change the entities position in regards with the origin.
For that we use QCAD in the GUI mode.

The Map Tiles tutorial can be found here:
https://qcad.org/en/tutorial-generating-map-tiles

Explained there is that it preforms an auto zoom except with the -web-mercator switch for Georeferenced Map Tiles.
With a white background I don't think that is the case ... :wink:
It is possible that you need to specify what layers to include so that it fits your requirements.

Else, I think it is best that you attach an example file and elaborate in full on what the goal is.
If the dxf/dwg has references to one or more pictures you need to attach that/those separately.

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”