dwg2maptiles width coordinates

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
mack
Registered Member
Posts: 1
Joined: Tue May 17, 2016 7:15 pm

dwg2maptiles width coordinates

Post by mack » Tue May 17, 2016 7:20 pm

Hi everybody
I was able to create map tiles with dwg2maptiles from my dxf file. thats pretty goog so far.
my dxf file is a map witch has swiss coordinates. the dwg2maptiles makes his own coordinate system an not the coordinates from the original file.
is there any solution for that? i hope my explanation is good enough, i'm new with cad and gis and m,y english is not that good.
thanks for any help
mack

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

Re: dwg2maptiles width coordinates

Post by andrew » Tue May 17, 2016 9:18 pm

This might or might not be possible with the current version of dwg2maptiles.

dwg2maptiles does not define a coordinate system.
It simply creates the first level tile (0/0/0) as a 256x256 pixel tile with the whole drawing centred in it.
For the next level, four tiles are then created, corresponding to the top left, top right, bottom left and bottom right parts of the drawing, etc.

Knowing that, you might be able to do something on the leaflet.js side with coordinate mapping (project, unproject).

Post Reply

Return to “QCAD 'How Do I' Questions”