This object packages a number of tools for chi analysis. More...
#include <LSDGeometry.hpp>
Public Member Functions | |
| LSDGeometry () | |
| Empty create function. Leads to some empty vectors. More... | |
| LSDGeometry (vector< double > x, vector< double > y) | |
| Create with two vectors: no UTM provided so assumed lat/long The X should be Longitude the Y vector should be latitude. More... | |
| LSDGeometry (vector< float > x, vector< float > y) | |
| Create with two vectors: no UTM provided so assumed lat/long The X should be Longitude the Y vector should be latitude. More... | |
| LSDGeometry (vector< double > x, vector< double > y, int UTMZone) | |
| Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing This version assumes northern hemisphere. More... | |
| LSDGeometry (vector< float > x, vector< float > y, int UTMZone) | |
| Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing This version assumes northern hemisphere. More... | |
| LSDGeometry (vector< double > x, vector< double > y, int UTMZone, bool isNorth) | |
| Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing. More... | |
| LSDGeometry (vector< float > x, vector< float > y, int UTMZone, bool isNorth) | |
| Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing. More... | |
| void | convert_points_to_UTM () |
| This function converts points from Lat/Long to UTM. The UTM zone is set as the zone of the first data point If there is no data in the Lat/Long data vectors no action is taken. More... | |
| void | convert_points_to_LatLong () |
| This function converts points from UTM to Lat/Long. The UTM zone is set as the zone of the first data point If there is no data in the Lat/Long data vectors no action is taken. More... | |
| void | print_points_to_csv (string path, string file_prefix) |
| This prints the points to a csv file. It will contain both UTM and lat-long coordinates. The UTM zone is the zone of the first point, The lat long coordinates are in WGS84. More... | |
| void | find_row_and_col_of_points (LSDRasterInfo &RI, vector< int > &RowOfNodes, vector< int > &ColOfNodes) |
| This gets vectors continaing the row and columns of the points from an LSDRasterInfo object. More... | |
| void | find_row_and_col_of_point_inc_out_of_bounds (LSDRasterInfo &RI, int point_index, int &RowOfNode, int &ColOfNode, bool &IsOutOfBounds) |
| This gets the row and column of a point based on an LSDRasterInfo It will return negative and out of bounds indices: used to work with functions for determining affected pixels. More... | |
| void | find_row_and_col_of_point_inc_out_of_bounds (LSDRasterInfo &RI, double UTM_Easting, double UTM_northing, int &RowOfNode, int &ColOfNode, bool &IsOutOfBounds) |
| This gets the row and column of a point based on an LSDRasterInfo It will return negative and out of bounds indices: used to work with finctions for determining affected pixels. More... | |
| void | check_and_update_UTM () |
| This function checks to see if the data has been converted to UTM and if not updates it. More... | |
| double | get_max_UTM_Northing () |
| This gets the maximum northing value. More... | |
| double | get_min_UTM_Northing () |
| This gets the minimum northing value. More... | |
| double | get_max_UTM_Easting () |
| This gets the maximum Easting value. More... | |
| double | get_min_UTM_Easting () |
| This gets the minimum Easting value. More... | |
| int | get_UTMZone () |
| bool | get_isNorth () |
| vector< double > | get_UTMPoints_Easting () |
| vector< double > | get_UTMPoints_Northing () |
| vector< double > | get_WGS84Points_latitude () |
| vector< double > | get_WGS84Points_longitude () |
Protected Attributes | |
| int | UTMZone |
| bool | isNorth |
| vector< double > | UTMPoints_Easting |
| vector< double > | UTMPoints_Northing |
| vector< double > | WGS84Points_latitude |
| vector< double > | WGS84Points_longitude |
This object packages a number of tools for chi analysis.
|
inline |
Empty create function. Leads to some empty vectors.
|
inline |
Create with two vectors: no UTM provided so assumed lat/long The X should be Longitude the Y vector should be latitude.
| x | The longitdue data in a vector |
| y | the latitude data in a vector |
|
inline |
Create with two vectors: no UTM provided so assumed lat/long The X should be Longitude the Y vector should be latitude.
| x | The longitdue data in a vector |
| y | the latitude data in a vector |
|
inline |
Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing This version assumes northern hemisphere.
| x | The Easting data in a vector |
| y | the Northing data in a vector |
|
inline |
Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing This version assumes northern hemisphere.
| x | The Easting data in a vector |
| y | the Northing data in a vector |
|
inline |
Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing.
| x | The Easting data in a vector |
| y | the Northing data in a vector |
|
inline |
Create with two vectors. UTM info provided The X should be Easting or Longitude the Y vector should be Northing.
| x | The Easting data in a vector |
| y | the Northing data in a vector |
| void LSDGeometry::check_and_update_UTM | ( | ) |
This function checks to see if the data has been converted to UTM and if not updates it.
| void LSDGeometry::convert_points_to_LatLong | ( | ) |
This function converts points from UTM to Lat/Long. The UTM zone is set as the zone of the first data point If there is no data in the Lat/Long data vectors no action is taken.
| void LSDGeometry::convert_points_to_UTM | ( | ) |
This function converts points from Lat/Long to UTM. The UTM zone is set as the zone of the first data point If there is no data in the Lat/Long data vectors no action is taken.
| void LSDGeometry::find_row_and_col_of_point_inc_out_of_bounds | ( | LSDRasterInfo & | RI, |
| int | point_index, | ||
| int & | RowOfNode, | ||
| int & | ColOfNode, | ||
| bool & | IsOutOfBounds | ||
| ) |
This gets the row and column of a point based on an LSDRasterInfo It will return negative and out of bounds indices: used to work with functions for determining affected pixels.
| RI | and LSDRasterInfo object |
| point_index | an index into the UTM data vectors |
| RowOfNode | the row of the point (this is replaced by the function) |
| ColOfNode | the col of the point (this is replaced by the function) |
| IsOutOfBounds | a boolean that is true if the point is out of the bounds of the raster |
| void LSDGeometry::find_row_and_col_of_point_inc_out_of_bounds | ( | LSDRasterInfo & | RI, |
| double | UTM_Easting, | ||
| double | UTM_northing, | ||
| int & | RowOfNode, | ||
| int & | ColOfNode, | ||
| bool & | IsOutOfBounds | ||
| ) |
This gets the row and column of a point based on an LSDRasterInfo It will return negative and out of bounds indices: used to work with finctions for determining affected pixels.
| RI | and LSDRasterInfo object |
| UTM_Easting | an easting location |
| UTM_Northing | a northing location |
| RowOfNode | the row of the point (this is replaced by the function) |
| ColOfNode | the col of the point (this is replaced by the function) |
| IsOutOfBounds | a boolean that is true if the point is out of the bounds of the raster |
| void LSDGeometry::find_row_and_col_of_points | ( | LSDRasterInfo & | RI, |
| vector< int > & | RowOfNodes, | ||
| vector< int > & | ColOfNodes | ||
| ) |
This gets vectors continaing the row and columns of the points from an LSDRasterInfo object.
| RI | and LSDRasterInfo object |
| row_vec | a vector containing the rows of the points (this is replaced by the function) |
| col_vec | a vector containing the cols of the points (this is replaced by the function) |
| double LSDGeometry::get_max_UTM_Easting | ( | ) |
This gets the maximum Easting value.
| double LSDGeometry::get_max_UTM_Northing | ( | ) |
This gets the maximum northing value.
| double LSDGeometry::get_min_UTM_Easting | ( | ) |
This gets the minimum Easting value.
| double LSDGeometry::get_min_UTM_Northing | ( | ) |
This gets the minimum northing value.
| void LSDGeometry::print_points_to_csv | ( | string | path, |
| string | file_prefix | ||
| ) |
This prints the points to a csv file. It will contain both UTM and lat-long coordinates. The UTM zone is the zone of the first point, The lat long coordinates are in WGS84.
| path | The path to the outfile. Needs the trailing slash |
| file_prefix | The prefix of the file before extension. That is, this function will add the .csv to the end of the filename |
1.8.6