Transforming DWG to MBTiles

المشرف العام

Administrator
طاقم الإدارة
I am trying to find out an good method to transform several DWG (CAD) files to MBTiles raster format for indoor mapping purposes.

I managed to transform a few, but currently the process is very time consuming. What I currently do goes as follows:


  • I use FME to select only the relevant parts from the DWG files (walls, elevators etc.) and save it as a (Geo)PDF
  • I need to manually do some modifications (add some images etc) to the PDF's to make them more readable and I do this in Adobe Illustrator)
  • I use ArcMap to transform the PDF's to GeoTIFF's, but it seems that the editing in Illustrator has lost the GeoPDF's projection, which means that I also have to define a projection for the files.
  • Then I use gdal_edit to move and scale the files (I move it close to coordinates 0 & 0 and so that the map is approximately in the right scale. Before gdal_edit, one building is about 20 000 km wide when projected to pseudo Mercator). The projection isn't really key here, as long as the maps are all in the same projection and alligned on top of each other, so not quite sure about this part...
  • Finally I add the files individually to Tilemill and export them as MBTiles. I only want to change the format, so is this really the way to do it? I am quite new still with Tilemill.
As you can see, I have a lot of tools at hand, but probably I am not using them in the most efficient way.Any ideas on how to streamline the process?



أكثر...
 
أعلى