Uploading a CAD file

 
The following section will explain how to prepare and upload a CAD file into the MapAble spatial database.
 
There are currently a whole range of CAD software available and lots of companies use different versions.  In order to share data between these software packages, some standard formats are used.  For 2D design spaces, people generally use .DXF, DGN and .DWG file formats.  MapAble also standardised on these three formats.
 
CAD data organization
Computer-aided design (CAD) data is a file-based data source. You can connect directly to CAD files on the fly and manage them as read-only datasets without using conversion tools.
CAD data is organized into a schema comprising five generic feature classes: annotation, multipatch, point, polygon, and polyline.
 
CAD properties and attribution
The attribute table for each CAD feature class is a virtual table that exposes property values for geometry, layers, text, and user-defined attributes contained in the CAD file. Once the file is imported in MapAble, the field values can be queried, used as filtering criteria for visualization tasks, and computed as feature data.
 
Coordinate systems
X,y coordinates are geo-referenced with a geographic or projected coordinate system. A geographic coordinate system (GCS) is defined by a datum, an angular unit of measure (usually degrees), and a prime meridian. A projected coordinate system (PCS) consists of a linear unit of measure (usually meters or feet), a map projection, the specific parameters used by the map projection, and a geographic coordinate system.
A projected or geographic coordinate system can have a vertical coordinate system as an optional property. A vertical coordinate system (VCS) geo-references z-values, most commonly used to denote elevation. MapAble does however not render 3D data and z-values are only used to denote elevation for analytical purposes.
 

Widely used South African Map Projections

 
Gauss Conform Coordinate System
The Gauss Conform Coordinate System (as used in South Africa) uses the Transverse Mercator map projection formulae modified to produce westings (y) and southings (x) instead of northings (N) and eastings (E). Note that the Gauss Conform projection is used in the southern hemisphere only.  This projection is used for the computation of the plane westings (yLo) and southings (xLo) coordinates, commonly (but incorrectly) known as the “Lo coordinate system". 
 
Albers equal-area conic
The Albers equal-area conic projection, or Albers projection (named after Heinrich C. Albers), is a conic, equal area map projection that uses two standard parallels. Although scale and shape are not preserved, distortion is minimal between the standard parallels.
 
Transverse Mercator
The Transverse Mercator projection, in its various forms, is the most widely used projected coordinate system for world topographical and offshore mapping. All versions (e.g. Gauss Conform, Gauss Kruger, and Universal Transverse Mercator) have the same basic characteristics and formulas.  The differences which distinguish the different forms of the projection, and which are applied in different countries arise from variations in the choice of the coordinate transformation parameters, namely the latitude of the origin, the longitude of the origin (central meridian), the scale factor at the origin (on the central meridian), and the values of false easting and false northing, which embody the units of measurement, given to the origin.
 
 
 
The suggested workflow for preparing a CAD file for upload is explained in the following diagram:
 
Uploading a CAD file
 
<TODO>: Insert description text here... And don't forget to add keyword for this topic
1

Native CAD file

 
The native CAD file needs to exported in either a .DXF, .DWG or .DGN file.
2

Unprojected CAD file

 
If the user of the CAD file is unsure of the projection or in the case of an unprojected CAD file (located on the equator), the geo-referencing can be done in a GIS. In order to do this, the CAD operator needs to add a minimum of 4 "ticks" or reference points of known coordinates in the design space.
3

Georeferencing in GIS

 
After the CAD file with the 4 "ticks" has been imported into the GIS package (such as ArcGIS), geo-referencing can be done.  It is however important to supply the 4 reference points on the CAD drawing to effectively geo-reference the drawing.  The drawing or map can then be exported as a shapefile (.shp) with its accompanying projection file (.prj)
4

Projected CAD file

 
If the Cad drawing's projection is defined (normally Gauss Conform) the user need to supply an accompanying projection file with the CAD file.
5

Standard GIS Projection files

 
Standard Projection files can be downloaded from the MapAble website to be used as the accompanying projection file.
6

Custom projection specification

 
If the specifications is not standard (e.g. central meridian and standard parallels) but is known by the user, it can be created manually in a "Well known text" format.  The easiest way to create the file is to download one of the MapAble projection file from the website and edit it in Wordpad.   
 
The specifications for the file is as follows:
PROJCS["GautengTransverseMercator ",GEOGCS["GCS_Hartebeesthoek_1994",DATUM["D_Hartebeesthoek_1994",SPHEROID["WGS_1984",6378137.0,298.257223563]],
PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",29.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
7

Naming convention

 
In order for the MapAble Loader to auto-project the CAD file into the MapAble spatial databse, the exact name of the CAD file, before the extension, needs to be added in the folder in which the CAD file resides on the users local drive.  For example:  if the CAD file is named "school.dxf" the accompanying projection file needs to be named "school.prj".  It is also important to add the extension of the text file as ".prj"
8

MapAble Loader

 
With the accompanying projection file in place,  the user can now upload the file with the MapAble Loader into the MapAble spatial database.
 
Open the MapAble Loader and navigate to the desired directory in which the file needs to be uploaded.
 
 
Click on the upload arrow button:
 
 
The file manager dialog box will open and the user should select the type of file to be uploaded:
 
 
Select the CAD files (dxf, dwg, dgn)
 
 
Now all CAD files will be displayed in the list of layers.
 
 
Please note that the .prj file will not be displayed but it MUST ACCOMPANY the cad file.
 
Once the user select the file, the Open button van be clicked and the uploading process will begin.
 
9

MapAble Layers

 
To access the data, please refer to Content>Add a layer section by clicking here