 |
GNSS data to OSM format processor and track finder
|
def get_nodes_duplicates(coords, nodes, smxd, nmxd, slcd)
By the speed of the input data source, script selects Normal Movement Crossroad Distance (nmxd) or Sl...
Definition: xroad_functions.py:237
Basemap dependencies creation.
Definition: basemap_creator.py:1
def basemap_creator()
Definition: basemap_creator.py:30
def del_unique_nodes(basedata, uniq_nodes)
Function takes a list of nodes (uniq_nodes) and removes them from the dictionary basedata.
Definition: xroad_functions.py:50
def load_input_file(input_file_path)
Function reads the input_file_path as csv, searching for latitudes and longitudes,...
Definition: refactor_functions.py:53
def del_special_elem(basedata)
Function removes all defined (special) elements in the nested list.
Definition: xroad_functions.py:29
def gestalt5(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:274
Filter input file according to the specified time.
Definition: input_data_preprocessor.py:1
def save_files(files_dict, parent_path)
Saves all files in the dictionary to a folder given by the input argument parent_path.
Definition: refactor_functions.py:282
def delete_files(files_dict, parent_path)
Opposite funtionality when compared to save_files function.
Definition: refactor_functions.py:292
def filter_base(basedata, chosen_nodes)
Function purpose is to leave only those nodes in the basemap, which are equal to chosen_nodes.
Definition: xroad_functions.py:145
def levenshtein1(tuple_nodes, range_from, range_to)
Check definition at the gestalt1 function.
Definition: patternfinding_functions.py:106
def fg_add_succession(tlist, fg_name)
This func returns feature group (fg) for the visualisation that enhances the progression of a track b...
Definition: CVT.py:164
def consequtive_repetitions(in_list, expected_range=15)
Function solves a problem of repeating the same items in a list.
Definition: consequtive_repetitions.py:23
def normalisation_tester(input_file_path, vis_name)
Definition: normalisation_tester.py:28
def add_fg_direction(tlist, fg_name)
This func returns a feature group (fg) that provides visualisation of tlist while highlighting the di...
Definition: CVT.py:51
def get_separate_coords(tlist)
Returns separate lists for latitudes and longitudes with zipped coordinates as an input.
Definition: CVT.py:37
def gestalt1(tuple_nodes, range_from, range_to)
Function finds repeating patterns of lengths defined by the range_from number ONLY,...
Definition: patternfinding_functions.py:79
def gestalt2(tuple_nodes, range_from, range_to)
Approach difference is in the moment when ratio is calculated.
Definition: patternfinding_functions.py:155
def get_input_crossroad_representation(coords_input, nodes_map_crossroad, basemap_crossroads)
This functions' purpose is to provide crossroad representation in nodes format as well as OSM format.
Definition: refactor_functions.py:99
def manual_trackfinder2(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:209
def get_basemap_tracks(basemap_in, nodes_1, nodes_2)
Returns get_basemap_track output for 2 input node tracks.
Definition: refactor_functions.py:315
def gestalt7(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:538
def input_data_preprocessor()
Definition: input_data_preprocessor.py:15
def input_checker()
Definition: input_checker.py:21
def add_fg_OSM_clean(geojson_file, fg_name)
This func returns feature group (fg) that contains the OSM format of the data ready to be visualized ...
Definition: CVT.py:111
Simple input file visualisation with timestamp.
Definition: input_checker.py:1
def fg_add_continuous(tlist, fg_name)
This func returns feature group (fg) that contains the continuous representation of the tlist data us...
Definition: CVT.py:126
def close_mapbase(name, fmapbase, fglist)
All the feature groups are now added to the created fmapbase.
Definition: CVT.py:186
def del_special_elem2(clist)
Function deletes those items from a list, which are equal to the defined element.
Definition: xroad_functions.py:63
def get_unique_nodes(nodes)
Function takes one list of nodes.
Definition: xroad_functions.py:168
def get_basemap_track(basemap_input_fine, nodes_track)
Returns an OSM format file which contains only nodes that are part of nodes_track.
Definition: refactor_functions.py:304
def extractnodes(basedata)
Function takes all the nodes from basedata and appends them into a list it returns.
Definition: postx_functions.py:23
def progressbar(it, prefix="", size=60, file=sys.stdout)
Function works as a progressbar in other functions running cycles.
Definition: patternfinding_functions.py:16
def manual_trackfinder1(tuple_nodes, range_from, range_to)
Check definition at the gestalt1 function.
Definition: patternfinding_functions.py:132
def verification_nodes(script_output_nodes, nodes_map_crossroad, basemap_crossroads, basemap_without_points)
Function tests the trackfinding method.
Definition: refactor_functions.py:340
def json_file_dumper(variable_name, filepath)
Function takes the name of a variable that is needed to be saved and saves it to the filepath locatio...
Definition: refactor_functions.py:34
def levenshtein3(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:430
def gestalt8(tuple_nodes, range_from, range_to)
Function finds repeating patterns of lengths range_from to range_to by crawling through tuple_nodes.
Definition: patternfinding_functions.py:373
def add_fg_OSM(tlist, geojson_file, fg_name)
This func returns feature group (fg) that contains the OSM format of the data ready to be visualized ...
Definition: CVT.py:89
def feats(basedata)
Features getting simplification.
Definition: xroad_functions.py:13
def levenshtein2(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:183
def get_each_closest(coordinates, fine_nodes)
For each coordinate go through all fine_nodes and find the closest one.
Definition: postx_functions.py:40
def visualisation(visdict)
Rather case specific function to perform visualisation.
Definition: CVT.py:220
Main file to perform GNSS data normalization into OSM format and subsequent pattern recognition to fi...
Definition: main.py:1
def run()
Testfile to test any of the functions above with prepared data in .p files.
Definition: CVT.py:245
def track_identification_dependencies(coords_input, nodes_input_fine)
Here all the data previously acquisited are restructured to provide what will be needed for the track...
Definition: refactor_functions.py:232
def nan_remove(urblat, urblon)
Function removes latitude or longitude from input list while it also deletes the item on respective p...
Definition: NaNremover.py:22
def json_file_loader(filepath)
Function looks for the file located on given filepath and returns the found data.
Definition: refactor_functions.py:44
def get_fine_indata(basedata, chosen_nodes)
counterlist keeps the information about how many chosen_nodes there is in the particular feature.
Definition: xroad_functions.py:194
def del_duplicates(alist)
Function gets rid of duplicates in the input list not regarding its position (whether it is sequentia...
Definition: xroad_functions.py:75
def load_dependencies()
Purpose of this function is to load basemap dependencies.
Definition: refactor_functions.py:73
def get_list_complement(alist, blist)
What the functions does is: xlist = alist - blist.
Definition: postx_functions.py:62
def coords_to_latlon(coords, empty_lat, empty_lon)
Function takes coords and assigns individual coordinate parts to empty_lat and empty_lon correspondin...
Definition: xroad_functions.py:96
def levenshtein5(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:591
Testbed for normalisation - detect flaws in the GNSS to OSM process.
Definition: normalisation_tester.py:1
def manual_trackfinder3(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:489
def myratio_calc(list1, list2)
Alternative to ratio provided by gestalt or levenstein algorithms.
Definition: patternfinding_functions.py:35
def get_input_fine_representation(basemap_without_points, nodes_input_crossroad, coords_input)
This functions' purpose is to provide fine representation in nodes format as well as OSM format.
Definition: refactor_functions.py:149
def normalisation_test_vis(real_input, normalised_crossroads, normalised_fine, vis_name, nodes_map_all)
Rather case specific function to perform visualisation.
Definition: CVT.py:202
def feature_deletion_matchwise(adata, bdata, matchfactor)
Compare these two maps (adata, bdata).
Definition: postx_functions.py:84
def gestalt6(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:314
def main()
Definition: main.py:55
Used to solve more complex forms of unwanted sequential repetitions.
Definition: consequtive_repetitions.py:1
def fg_add_basic(tlist, fg_name, wanted_color, wanted_radius=1)
This func returns basic customizable feature group (fg) for the visualisation.
Definition: CVT.py:150
def gestalt4(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:234
def coords(basedata_features)
Coordinates getting simplification.
Definition: xroad_functions.py:17
def create_mapbase(set='german1')
Creates folium map base for the output .html file.
Definition: CVT.py:18
def cut_unnecessary_xroads(nodes, chosen)
Function purpose is to mark with [-1, -1] specific elements in the nodes.
Definition: xroad_functions.py:113