AutoCAD DWG files are commonly in a local coordinate system whose origin is close to their data. SISfm can use these for most purposes, but for some purposes (such as way finding) all floor plans and site plans must be in the same coordinate system, and for display with aerial imagery such as Google Maps they must be georeferenced.
Plans can either be georeferenced in their original format (e.g. by using AutoCAD), or they can be georeferenced by transforming their coordinates in a Cadcorp SWD file, leaving the dataset files unchanged. If DWG files are currently being compiled directly, to do the latter compile them with DwgSaveSwd set TRUE, then add the georeferencing transforms to the SWD files, and subsequently compile those instead.
A separate FAQ topic describes how to georeference a floor plan using Cadcorp SIS. Here we show how to georeference a floor plan using the the Autodesk AutoCAD application, using the AutoLISP file GEOREFSIS.lsp (available from IFM on request).
To load GEOREFSIS.lsp in AutoCAD, enter APPLOAD into the Command Line box, press Enter, browse to GEOREFSIS.lsp and load it. (N.B. This step can be automated, see Autocad help for "load on startup").
This method requires a site plan DWG file which is georeferenced and has a layer containing building outlines.
This site plan DWG is then modified to XREF all building floors (moved and rotated) to be above each building outline (care and precision in this step will yield best results). A coordinates file is then exported using the EXPT function of GEOREFSIS.lsp.
After that, to georeference a floor plan, its DWG file is opened and the GEOREFSIS.lsp function CVSIS is used to read the coordinates file and create a georeferenced copy of that DWG file.
Part 1 - Creating the coordinate reference TXT file (one-time)
Part 1 only needs to be repeated if changes are made to the site, e.g. new construction.
Part 2 - Creating georeferenced DWG floor plans (initially or when revised)
The georeferenced copies are placed in the sisdata\site_code\Buildings folder ready for use in SISfm swd's
Folder structure used by GEOREFSIS.lsp:
LISP Setting | Folder | File |
(master) | ...\Mstrdata\site_code | site.dwg |
(master) | ...\Mstrdata\site_code | site.txt |
(source) | ...\dwgdata\site_code | building\original-floorplan.dwg |
(target) | ...\sisdata\site_code | Buildings\georeferenced-copy.dwg |
If you need further assistance, please contact IFM Support <support@integratedfm.com.au>.