gpx_converter package¶
Submodules¶
gpx_converter.base module¶
Top-level package for gpx_converter.
-
class
gpx_converter.base.
Converter
(input_file=None)[source]¶ Bases:
object
main class converter that holds all conversion methods
-
static
convert_multi_csv_to_gpx
(dirpath, lats_colname='latitude', longs_colname='longitude', times_colname=None, alts_colname=None)[source]¶ convert multiple csv file from directory to gpx dirpath: directory path where the csv files are lats_colname: name of the latitudes columns longs_colname: name of the longitudes columns times_colname: name of the time columns alts_colname: name of the altitudes columns
-
csv_to_gpx
(lats_colname='latitude', longs_colname='longitude', times_colname=None, alts_colname=None, output_file=None)[source]¶ convert csv file to gpx lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the time column alts_colname: name of the altitudes column output_file: path of the output file
-
static
dataframe_to_gpx
(input_df, lats_colname='latitude', longs_colname='longitude', times_colname=None, alts_colname=None, output_file=None)[source]¶ convert pandas dataframe to gpx input_df: pandas dataframe lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the time column alts_colname: name of the altitudes column output_file: path of the output file
-
excel_to_gpx
(lats_colname='latitude', longs_colname='longitude', times_colname=None, alts_colname=None, output_file=None)[source]¶ convert csv file to gpx lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the time column alts_colname: name of the altitudes column output_file: path of the output file
-
gpx_to_csv
(lats_colname='latitude', longs_colname='longitude', times_colname='time', alts_colname='altitude', output_file=None)[source]¶ convert a gpx file to a csv lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the times column alts_colname: name of the altitude column output_file: output file where the csv file will be saved
-
gpx_to_dataframe
(lats_colname='latitude', longs_colname='longitude', times_colname='time', alts_colname='altitude')[source]¶ convert gpx file to a pandas dataframe lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the times column alts_colname: name of the altitude column
-
gpx_to_dictionary
(latitude_key='latitude', longitude_key='longitude', time_key='time', altitude_key='altitude')[source]¶
-
gpx_to_excel
(lats_colname='latitude', longs_colname='longitude', times_colname='time', alts_colname='altitude', output_file=None)[source]¶ convert a gpx file to a excel lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the times column alts_colname: name of the altitude column output_file: output file where the csv file will be saved
-
gpx_to_json
(lats_keyname='latitude', longs_keyname='longitude', times_keyname='time', alts_keyname='altitude', output_file=None)[source]¶ convert a gpx file to json lats_keyname: name of the key which will hold all latitude values longs_keyname: name of the key which will hold all longitude values times_keyname: name of the key which will hold all time values alts_keyname: name of the key which will hold all the altitude values output_file: output file where the csv file will be saved
-
json_to_gpx
(lats_colname='latitude', longs_colname='longitude', times_colname=None, alts_colname=None, output_file=None)[source]¶ convert csv file to gpx lats_colname: name of the latitudes column longs_colname: name of the longitudes column times_colname: name of the time column alts_colname: name of the altitudes column output_file: path of the output file
-
static