Coordinate Converter July

download Coordinate Converter July

of 9

Transcript of Coordinate Converter July

  • 7/30/2019 Coordinate Converter July

    1/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eom ati cs. com Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fa x 1-866-215-6827

    Summary: Coordinate ConverterSpecifications

    AutoCAD Civil3D 2012/2013 tool Language can be selected by developer (Not VBA) Deliverables

    o Compiled programo Source code

    Tool Overview1. Collect coordinates in projected autocad drawing2. 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 onbox site) parameters

    4. Output coordinates to TB-TEXT layer in layout viewResourcesAvailable from:https://www.box.com/s/44d3jtaltrof4st65v83

    Binary grid shift file for use in AutoCAD. This .gsb file contains the parameters necessary totransform 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

    ContactFeel free to ask any question.

    David Birkigt

    Email:[email protected]

    Skype: david1-b

    https://www.box.com/s/44d3jtaltrof4st65v83https://www.box.com/s/44d3jtaltrof4st65v83https://www.box.com/s/44d3jtaltrof4st65v83mailto:[email protected]:[email protected]:[email protected]:[email protected]://www.box.com/s/44d3jtaltrof4st65v83
  • 7/30/2019 Coordinate Converter July

    2/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    Interface OperationThe interface or user interaction can be changed as required during development as long as it meets the

    following criteria.

    1. Reads and displays drawing coordinate system2. Has the 4 options with pre-set descriptions (Vertical, Horizontal, Surface and Other)3. Description column is user editable with the ability to add rows4. Option to output description field (not shown in interface below)5. 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

    I ave ma e a mista e ere an t ere nee s to e an option to seect t e coor inate units t e rawing isin. This is because the drafters often draft without a coordinate system defined. See this document.https://app.box.com/s/kwtn61ogvp11t470uhuk

  • 7/30/2019 Coordinate Converter July

    3/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    2. Select well type: Horizontal, Directional, Vertical, Other

  • 7/30/2019 Coordinate Converter July

    4/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    3. Selecting and changing well type auto-populates description field, changing well type shouldreset the description column.

  • 7/30/2019 Coordinate Converter July

    5/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    4. The description column should be editable by the user with the ability to add more records. Inthe image below User pt 1 and User pt 2 were added by the user.

  • 7/30/2019 Coordinate Converter July

    6/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    5. When the description column is complete:a. All rows in the description column should be read to a listb. 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.

  • 7/30/2019 Coordinate Converter July

    7/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    6. Execute tool by clicking Calculate. Selecting Output CSV will launch a dialogue to specify anoutput 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.

  • 7/30/2019 Coordinate Converter July

    8/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    Tool Calculation1. Form elements read and written to array

    Table 1. Table of example coordinates read from form

    Description X Coordinate Y Coordinate

    Surface 556078.2 5934540.2

    ICP 556200.7 5934311.7

    End 556215.7 5932940.9

    2. Pass coordinate pairs to AutoCAD coordinate converter objecta. 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/0001-

    ObjectAR0/0029-Converti29/0030-Converti30

    Table 2. Table showing the different European petroleum survey group (EPSG) coordinate code and output

    format.

    Code Name Format Description

    EPSG: 4267 NAD27 Geographic Meter http://spatialreference.org/ref/epsg/4267/

    EPSG: 26711* NAD 27 UTM Degree Minute Sec http://spatialreference.org/ref/epsg/26711/

    EPSG: 4269 NAD83(Original) GEOGRAPHIC Degree Minute Sec http://spatialreference.org/ref/epsg/4269/

    EPSG: 4269 NAD83(Original) GEOGRAPHIC Decimal Degree http://spatialreference.org/ref/epsg/4269/

    EPSG: 26911* NAD83(Original) UTM Meter http://spatialreference.org/ref/epsg/26911/

    * Code zone dependent

    3. The transformation between NAD27 and NAD83 must be completed using the Canadiantransformation 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 formatted5333'24.032" N 5934316.3 N 5333'24.288" N 53.556747 5934540.2 N

    11609'11.067" W 556155.1 E 11609'12.419" W 116.153450 556078.2 E

    5333'16.592" N 5934087.8 N 5333'16.848" N 53.554680 5934311.7 N

    11609'01.843" W 556277.6 E 11609'05.910" W 116.151642 556200.7 E

    5332'32.235" N 5932717.0 N 5332'32.489" N 53.542358 5932940.9 N

    11609'01.917" W 556292.6 E 11609'05.982" W 116.151662 556215.7 E

    http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001-ObjectAR0/0029-Converti29/0030-Converti30http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001-ObjectAR0/0029-Converti29/0030-Converti30http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001-ObjectAR0/0029-Converti29/0030-Converti30http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001-ObjectAR0/0029-Converti29/0030-Converti30http://spatialreference.org/ref/epsg/4267/http://spatialreference.org/ref/epsg/4267/http://spatialreference.org/ref/epsg/26711/http://spatialreference.org/ref/epsg/26711/http://spatialreference.org/ref/epsg/4269/http://spatialreference.org/ref/epsg/4269/http://spatialreference.org/ref/epsg/4269/http://spatialreference.org/ref/epsg/4269/http://spatialreference.org/ref/epsg/26911/http://spatialreference.org/ref/epsg/26911/https://www.box.com/s/44d3jtaltrof4st65v83https://www.box.com/s/44d3jtaltrof4st65v83https://www.box.com/s/44d3jtaltrof4st65v83https://www.box.com/s/44d3jtaltrof4st65v83http://spatialreference.org/ref/epsg/26911/http://spatialreference.org/ref/epsg/4269/http://spatialreference.org/ref/epsg/4269/http://spatialreference.org/ref/epsg/26711/http://spatialreference.org/ref/epsg/4267/http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001-ObjectAR0/0029-Converti29/0030-Converti30http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001-ObjectAR0/0029-Converti29/0030-Converti30
  • 7/30/2019 Coordinate Converter July

    9/9

    Longhorn Geomatics Limited Suite 172, 104-1240 phone 403-289-8800www .lo ngh orng eoma tic s.c om Kensington Rd NW toll free 1-877-289-8847

    Calgary, AB T2N 3P7 fax 1-866-215-6827

    Tool Output1. 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 folderhttps://www.box.com/s/44d3jtaltrof4st65v83 page2/4is 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.

    https://www.box.com/s/44d3jtaltrof4st65v83%20page2/4https://www.box.com/s/44d3jtaltrof4st65v83%20page2/4https://www.box.com/s/44d3jtaltrof4st65v83%20page2/4https://www.box.com/s/44d3jtaltrof4st65v83%20page2/4