Coordinate Converter July
Coordinate Converter July
com
Tool Overview
1. Collect coordinates in projected autocad drawing 2. Convert coordinates from drawing coordinate system (NAD83 UTM) to NAD 27 geographic, NAD 27 UTM and NAD 83 geographic 3. Conversion between NAD27 and NAD83 completed using Canadian converion NTV2.gsb (File on box site) parameters 4. Output coordinates to TB-TEXT layer in layout view
Resources
Available from: https://www.box.com/s/44d3jtaltrof4st65v83 Binary grid shift file for use in AutoCAD. This .gsb file contains the parameters necessary to transform NAD83 to NAD27 using Canadian parameters. Readme.txt The autocad read me file describing the use of the .gsb file ACAD-wellsitezone11_A.dwg : An autocad drawing of a blank wellsite the output coordainte table is visible on page 2/3
Contact
Feel free to ask any question. David Birkigt Email: [email protected] Skype: david1-b
I have made a mistake here and there needs to be an option to select the coordinate units the drawing is in. This is because the drafters often draft without a coordinate system defined. See this document. https://app.box.com/s/kwtn61ogvp11t470uhuk
Interface Operation
The interface or user interaction can be changed as required during development as long as it meets the following criteria. 1. 2. 3. 4. 5. Reads and displays drawing coordinate system Has the 4 options with pre-set descriptions (Vertical, Horizontal, Surface and Other) Description column is user editable with the ability to add rows Option to output description field (not shown in interface below) Option to output file (either CSV or excel (whatever is easier))
The interface in the images below was made by me to help explain what I want and you can make any interface changes that you feel work better or make the tool better. If you decide an approach without an interface (command line) is best then an interface is not required. 1. Start Tool: Coordinate system is read from drawing
3. Selecting and changing well type auto-populates description field, changing well type should reset the description column.
4. The description column should be editable by the user with the ability to add more records. In the image below User pt 1 and User pt 2 were added by the user.
5. When the description column is complete: a. All rows in the description column should be read to a list b. Each list element should be iterated with the user prompted either at the command line or on the mouse cursor to collect the coordinates for the current list element. c. Coordinates from model space are collected interactively. d. The snapping parameters of the active document should be used.
6. Execute tool by clicking Calculate. Selecting Output CSV will launch a dialogue to specify an output location for a csv or excel file when calculate is clicked. The output file will contain the converted coordinates. Excel or csv output can be selected by the user. The output file should contain the description column in addition to the input and output coordinates.
Tool Calculation
1. Form elements read and written to array
Table 1. Table of example coordinates read from form
Description Surface ICP End X Coordinate 556078.2 556200.7 556215.7 Y Coordinate 5934540.2 5934311.7 5932940.9
2. Pass coordinate pairs to AutoCAD coordinate converter object a. Convert from drawing coordinate system (usually NAD83 UTM zone 10, 11, 12 or 13) to NAD27 UTM (Corresponding zone), NAD 27 Geographic, NAD 83 Geographic. OBJECT ARX Reference: http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001ObjectAR0/0029-Converti29/0030-Converti30
Table 2. Table showing the different European petroleum survey group (EPSG) coordinate code and output format.
Code
EPSG: 4267 EPSG: 26711* EPSG: 4269 EPSG: 4269 EPSG: 26911*
Name
NAD27 Geographic NAD 27 UTM NAD83(Original) GEOGRAPHIC NAD83(Original) GEOGRAPHIC NAD83(Original) UTM
Format
Meter Degree Minute Sec Degree Minute Sec Decimal Degree Meter
Description
http://spatialreference.org/ref/epsg/4267/ http://spatialreference.org/ref/epsg/26711/ http://spatialreference.org/ref/epsg/4269/ http://spatialreference.org/ref/epsg/4269/ http://spatialreference.org/ref/epsg/26911/
3. The transformation between NAD27 and NAD83 must be completed using the Canadian transformation parameters. In the box folder I have included the NTV2.gsb file required by AutoCAD for the transformation. https://www.box.com/s/44d3jtaltrof4st65v83 4. Below are the coordinates transformed and formatted
5333'24.032" N 11609'11.067" W 5333'16.592" N 11609'01.843" W 5332'32.235" N 11609'01.917" W 5934316.3 N 556155.1 E 5934087.8 N 556277.6 E 5932717.0 N 556292.6 E 5333'24.288" N 11609'12.419" W 5333'16.848" N 11609'05.910" W 5332'32.489" N 11609'05.982" W 53.556747 116.153450 53.554680 116.151642 53.542358 116.151662 5934540.2 N 556078.2 E 5934311.7 N 556200.7 E 5932940.9 N 556215.7 E
Tool Output
1. After coordinates are converted the user should be prompted by AutoCAD to specify the insertion point for the coordinates to be placed in the coordinate section of the correct layout page (Drawing in folder https://www.box.com/s/44d3jtaltrof4st65v83 page2/4 is an example wellsite template). I think you should decide if just the text of the coordinates or the coordinates formatted in a table with a table style should be pasted, whatever is easier. In the end we just want the coordinates to be in the drawing in a style like that seen below. Empty Table
Table with coordinates. from surface location and referred to section boundary are not calculated by this tool.
Perhaps just the coordinates should be added and the drafter will align them in the table.