An add-in is available that provides expanded functionality for the spatial placement of CAD data sets that are in modified projections. (See below "What is a modified projection?")
The add-in is called Transform CAD Layer, and is available here.
It is used to transform a CAD layer by entering a scale factor, rotation, local coordinates and corresponding grid coordinates.
Using the Transform CAD tool
After you’ve installed the add-in, follow the steps below to use the tool to transform the CAD dataset.
1. In the Catalog pane, select and drag-and-drop the Polyline class onto the map.
2. The projection for the CAD layer needs to be defined if it is not already. This must be the projection that the transformation parameters are based on, otherwise the CAD Layer will not be correctly placed. To do this select one of the CAD layers in the CAD group layer in the table of contents.
3. The contextual ribbon for the CAD Layer becomes available, and presents the CAD Data tab.
4. Click the Define Projection button and use the GP tool that appears to set the projection for the CAD file.
5. If the add-in was successfully installed, then a button called “Transform” will be present in the Alignment group on the CAD Data tab.
6. Click the Transform button.
7. The Transform CAD Layer dialog appears.
8. Enter the parameters for local coordinates, grid coordinates, scale and rotation values.
9. Check the box Update ground to grid corrections if you want to use the scale and rotation values as the map's ground to grid correction settings.
10. Click the OK button to transform the CAD layer based on your entered transformation parameters.
Note: The values that you type are remembered the next time you use the dialog.
Click the Reset button to set all the transformation parameters back to starting values.
What is a modified projection?
You may not recognize the term “modified projection” and may be more familiar with one of its other names: local datum plane, engineering coordinate system, ground coordinate system or simply “surface” or “ground”.
When receiving a CAD file from a surveyor or engineer, it is common to find that it does not spatially align with the rest of your GIS data. It may be offset a few thousand feet to the north east, or it may be miles away to the south west and may seem to be in an arbitrary local coordinate system. However, if the surveyor is using a modified projection then this information is usually provided as transformation parameters that indicate how the projection is modified, making it possible to use these parameters to place the CAD drawing in its projected grid location without the need for manually picking out geo-referencing links.
Here’s an example of a simple modification in the notes of a subdivision plat from Houston, Texas:
In this note all the criteria are present for converting between ground coordinates and grid coordinates. There is the reference to the projection that is being modified and information that the coordinates are “Surface” coordinates. The combined scale factor is provided, and there is no rotation mentioned, and no origin specified.
Since the note does not explicitly provide the origin, the 0,0 origin of the State Plane coordinate system is implied. For this particular description above, the corresponding CAD file location in its original ground coordinates is located to the north east of the projected grid coordinate location. Since the add-in uses the convention of multiplying by the scale factor, for this example the scale to use would be the inverse, since the wording calls for "dividing"; hence 1/1.00013 = 0.99987, and it's entered as follows:
Here is another example, showing the drawing settings used for some AutoCAD data.
For this drawing, the equivalent entries to convert to the grid location using the Transform CAD Layer add-in are as follows:
Why are modified projections used?
Modified projections like these are used for large scale low distortion projections. Distances measured on the ground match the distances in the digital coordinate space of the mapping software environment without having to apply a scale factor and rotation.
The reason they are successful is that they cover an area of a comparatively much smaller surface of the earth compared to the projection that they are derived from, and so using a flat plane for modeling a ground-based coordinate system is useful and practical for small site locations such as an engineering site, or a parcel subdivision.
The combined scale factor is based on two components, the distortion caused by the projection and the scale caused by the elevation, as more fully described in the help topic Ground to grid correction.
The CAD transformation functionality uses a similarity transformation. The code for this add-in is available on GitHub from the community samples repository, Transform CAD Layer code.
Here’s a code snippet of the similarity transformation used to generate the vectors written to the world file:
var pFrom1 = new Coordinate2D(dOriginX, dOriginY);
var pTo1 = new Coordinate2D(dGridX, dGridY);
var dDeltaX = dGridX - dOriginX;
var dDeltaY = dGridY - dOriginY;
var pFrom2 = new Coordinate2D(pFrom1.X + (10000 / dMetersPerUnit),
pFrom1.Y + (10000 / dMetersPerUnit));
var Rotated = GeometryEngine.Instance.Rotate(pFrom2.ToMapPoint(),
pFrom1.ToMapPoint(), dRotation * Math.PI / 180);
MapPoint RotatedAndScaled = (MapPoint)GeometryEngine.Instance.Scale(Rotated,
pFrom1.ToMapPoint(), dScaleFactor, dScaleFactor);
var RotatedScaledTranslated = new Coordinate2D(RotatedAndScaled.X + dDeltaX,
RotatedAndScaled.Y + dDeltaY);
if (WriteWorldFile(sTargetWldFile, pFrom1, pTo1, pFrom2,
Video demonstration: Using the Transform CAD Add-in
Format of world files used for CAD datasets: World files for CAD datasets.
CAD coordinates systems: CAD geospatial coordinates
Ground to grid correction: Ground to grid correction
Transform features: Transform features
https://arcg.is/0qru58 (3.2 and higher)
https://arcg.is/1bb9Lq (3.0 and higher)
https://arcg.is/1vnymX (2.6, 2.7, 2.8, and 2.9)
Thank you to the Esri Community
Thanks to those who sent their CAD datasets and transformation parameters:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.