Manage calls to GeodePy functions to transform large amounts of data in csv format #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Jeffrey Pickford (Senior Surveyor, QLD DNRME) has also written a script with functions to manage calls to GeodePy functions to transform large amounts of data in csv format (such as the QLD SCDB) through the use of pandas, which he thought might be useful to add to GeodePy.
Functions can be called either as stand alone functions, or within a GUI (he has written one in tkinter if you are also interested in that).
grid2geoio() reads the csv file provided as a pandas dataframe and calls the grid2geo function in the GeodePy transform module on the columns containing easting, northing and utmzone, and writes the results to new columns for latitude, longitude, point scale factor and grid convergence. Latitude and longitude can be in either DD or DMS depending on user input.
geo2gridio() reads the csv file provided as a pandas dataframe and calls the geo2grid function in the GeodePy transform module on the columns containing latitude and longitude, and writes the results to new columns for easting, northing, utmzone, point scale factor and grid convergence. Latitude and longitude can be in either DD or DMS depending on user input.
gdatrans7() reads the csv file provided as a pandas dataframe and uses the Transformation class from the GeodePy constants module, as well as calls to llh2xyz, conform7 and xyz2llh in order to transform coordinates from GDA94 to GDA2020 or from GDA2020 to GDA94 depending on the direction specified by the user.
Output from all functions is a new csv file containing all original data, as well as the columns created by the function.
Signed-off-by: Jaimie Dodd jaimie.dodd@dnrme.qld.gov.au