TBC Macros and Extensions

 View Only
Expand all | Collapse all

Outputing CSV file containing multiple coordinate systems

  • 1.  Outputing CSV file containing multiple coordinate systems

    Posted 11-01-2024 10:39

    Hi All,

    In poking around the Object browser, I came across the CoordinateTransformation Class.  Would a method like TransformFromDicCoordinate be the correct one to utilize in order to reproject coordinates into a given coordinate system?  The constructor of the CoordinateTransformation class takes the following parameters:

    Public Sub New(project As Trimble.Vce.Interfaces.Client.IProject, doCoordinateTransformation As Boolean, dicCoordinateSystem As String)
        Member of Trimble.Vce.Data.GIS.CoordinateTransformation

    The Project I understand, but the Boolean and the string confuse me.  Can someone explain the purpose of the Boolean?  And is the string a WKT or something like that?  

    Having said all that, am I completely wrong in assuming what this function does?   What I'm looking to do is write out to a CSV file that would contain positions for all of the 3D points, with values in project's coordinate system, another 3 columns for LAT/LON for example, and another 3 for another CS, like one utilizing a different datum than the project using (NAD27 vs NAD83, for example)?



    ------------------------------
    Lance
    ------------------------------


  • 2.  RE: Outputing CSV file containing multiple coordinate systems

    Posted 11-20-2024 02:19

    Hi Lance,

    thanks for your question.

    The class you are talking about (Trimble.Vce.Data.GIS.CoordinateTransformation) is not indented to use for a common coordinate transformation.
    It is used to transform from and to GIS data sources internally.

    There is no guaranty that it behaves the same in the next version as we currently doing refactoring in this area.
    I will check with the team on how a solution could look like for your workflow.

    We are currently working on a transformation on the fly when doing an export or import of CSV. The workflow allows to select a different coordinate system when doing the import or export.
    Maybe this is what you are looking for. If you like, please share more about your workflow and we can check if our implementation supports your workflow or can be adjusted in this direction.

    Thanks
    Thomas



    ------------------------------
    Thomas Schucker
    ------------------------------