Page 1 of 1

dwg2maptiles width coordinates

Posted: Tue May 17, 2016 7:20 pm
by mack
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

Re: dwg2maptiles width coordinates

Posted: Tue May 17, 2016 9:18 pm
by andrew
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).