Skip to content

Conversation

@JaimieDodd
Copy link
Contributor

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

…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.

Functions can be called either within a GUI or as stand alone functions.

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 GDA2020 to GDA94 or from GDA94 to GDA2020 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>
@BatchelorJ BatchelorJ added the enhancement New feature or request label Jan 20, 2019
@BatchelorJ
Copy link
Contributor

Hi Jaimie,

Thanks very much to you and Jeffrey for sharing your work on this functionality. I've had a quick look and it looks like a much more efficient implementation of some very scrappy code I put together at the start of this project. This looks like it will fit nicely into our planned goal of building these transformations for multiple points using csv into a rebuild of our online calculators.

Something we've also added in recently is a new way to work with multiple different angle notation formats (Dec Deg, Deg Min Sec, Deg Dec Min and HP Notation) which I think could be incorporated into these functions in the future.

Thanks again, we'll finish reviewing this code with an eye to refactoring our existing code.

Cheers,
Josh

@harry093 harry093 self-assigned this Jun 5, 2019
@harry093
Copy link
Collaborator

harry093 commented Apr 3, 2020

@JaimieDodd @BatchelorJ sorry this has sat around for so long. We've stored the code in the repo and there is an issue related to incorporating it better in the package. So, I'm going to close this

@harry093 harry093 merged commit e95db0f into GeoscienceAustralia:master Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants