| GNSS data to OSM format processor and track finder

- Main Page
- Packages
- Files

- File List

Namespaces | Functions
basemap_creator.py File Reference

## Namespaces
| basemap_creator
| Basemap dependencies creation.

## Functions
def | basemap_creator ()

xroad_functions.get_nodes_duplicates
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_creator
Basemap dependencies creation.
Definition: basemap_creator.py:1
basemap_creator.basemap_creator
def basemap_creator()
Definition: basemap_creator.py:30
xroad_functions.del_unique_nodes
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
refactor_functions.load_input_file
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
xroad_functions.del_special_elem
def del_special_elem(basedata)
Function removes all defined (special) elements in the nested list.
Definition: xroad_functions.py:29
patternfinding_functions.gestalt5
def gestalt5(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:274
input_data_preprocessor
Filter input file according to the specified time.
Definition: input_data_preprocessor.py:1
refactor_functions.save_files
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
refactor_functions.delete_files
def delete_files(files_dict, parent_path)
Opposite funtionality when compared to save_files function.
Definition: refactor_functions.py:292
xroad_functions.filter_base
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
patternfinding_functions.levenshtein1
def levenshtein1(tuple_nodes, range_from, range_to)
Check definition at the gestalt1 function.
Definition: patternfinding_functions.py:106
CVT.fg_add_succession
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
consequtive_repetitions.consequtive_repetitions
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
normalisation_tester.normalisation_tester
def normalisation_tester(input_file_path, vis_name)
Definition: normalisation_tester.py:28
CVT.add_fg_direction
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
CVT.get_separate_coords
def get_separate_coords(tlist)
Returns separate lists for latitudes and longitudes with zipped coordinates as an input.
Definition: CVT.py:37
patternfinding_functions.gestalt1
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
patternfinding_functions.gestalt2
def gestalt2(tuple_nodes, range_from, range_to)
Approach difference is in the moment when ratio is calculated.
Definition: patternfinding_functions.py:155
refactor_functions.get_input_crossroad_representation
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
patternfinding_functions.manual_trackfinder2
def manual_trackfinder2(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:209
refactor_functions.get_basemap_tracks
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
patternfinding_functions.gestalt7
def gestalt7(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:538
input_data_preprocessor.input_data_preprocessor
def input_data_preprocessor()
Definition: input_data_preprocessor.py:15
input_checker.input_checker
def input_checker()
Definition: input_checker.py:21
CVT.add_fg_OSM_clean
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
input_checker
Simple input file visualisation with timestamp.
Definition: input_checker.py:1
CVT.fg_add_continuous
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
CVT.close_mapbase
def close_mapbase(name, fmapbase, fglist)
All the feature groups are now added to the created fmapbase.
Definition: CVT.py:186
xroad_functions.del_special_elem2
def del_special_elem2(clist)
Function deletes those items from a list, which are equal to the defined element.
Definition: xroad_functions.py:63
xroad_functions.get_unique_nodes
def get_unique_nodes(nodes)
Function takes one list of nodes.
Definition: xroad_functions.py:168
refactor_functions.get_basemap_track
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
postx_functions.extractnodes
def extractnodes(basedata)
Function takes all the nodes from basedata and appends them into a list it returns.
Definition: postx_functions.py:23
patternfinding_functions.progressbar
def progressbar(it, prefix="", size=60, file=sys.stdout)
Function works as a progressbar in other functions running cycles.
Definition: patternfinding_functions.py:16
patternfinding_functions.manual_trackfinder1
def manual_trackfinder1(tuple_nodes, range_from, range_to)
Check definition at the gestalt1 function.
Definition: patternfinding_functions.py:132
refactor_functions.verification_nodes
def verification_nodes(script_output_nodes, nodes_map_crossroad, basemap_crossroads, basemap_without_points)
Function tests the trackfinding method.
Definition: refactor_functions.py:340
refactor_functions.json_file_dumper
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
patternfinding_functions.levenshtein3
def levenshtein3(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:430
patternfinding_functions.gestalt8
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
CVT.add_fg_OSM
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
xroad_functions.feats
def feats(basedata)
Features getting simplification.
Definition: xroad_functions.py:13
patternfinding_functions.levenshtein2
def levenshtein2(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:183
postx_functions.get_each_closest
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
CVT.visualisation
def visualisation(visdict)
Rather case specific function to perform visualisation.
Definition: CVT.py:220
main
Main file to perform GNSS data normalization into OSM format and subsequent pattern recognition to fi...
Definition: main.py:1
CVT.run
def run()
Testfile to test any of the functions above with prepared data in .p files.
Definition: CVT.py:245
refactor_functions.track_identification_dependencies
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
NaNremover.nan_remove
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
refactor_functions.json_file_loader
def json_file_loader(filepath)
Function looks for the file located on given filepath and returns the found data.
Definition: refactor_functions.py:44
xroad_functions.get_fine_indata
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
xroad_functions.del_duplicates
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
refactor_functions.load_dependencies
def load_dependencies()
Purpose of this function is to load basemap dependencies.
Definition: refactor_functions.py:73
postx_functions.get_list_complement
def get_list_complement(alist, blist)
What the functions does is: xlist = alist - blist.
Definition: postx_functions.py:62
xroad_functions.coords_to_latlon
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
patternfinding_functions.levenshtein5
def levenshtein5(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:591
normalisation_tester
Testbed for normalisation - detect flaws in the GNSS to OSM process.
Definition: normalisation_tester.py:1
patternfinding_functions.manual_trackfinder3
def manual_trackfinder3(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:489
patternfinding_functions.myratio_calc
def myratio_calc(list1, list2)
Alternative to ratio provided by gestalt or levenstein algorithms.
Definition: patternfinding_functions.py:35
refactor_functions.get_input_fine_representation
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
CVT.normalisation_test_vis
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
postx_functions.feature_deletion_matchwise
def feature_deletion_matchwise(adata, bdata, matchfactor)
Compare these two maps (adata, bdata).
Definition: postx_functions.py:84
patternfinding_functions.gestalt6
def gestalt6(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:314
main.main
def main()
Definition: main.py:55
consequtive_repetitions
Used to solve more complex forms of unwanted sequential repetitions.
Definition: consequtive_repetitions.py:1
CVT.fg_add_basic
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
patternfinding_functions.gestalt4
def gestalt4(tuple_nodes, range_from, range_to)
For basic principle, read gestalt8 description.
Definition: patternfinding_functions.py:234
xroad_functions.coords
def coords(basedata_features)
Coordinates getting simplification.
Definition: xroad_functions.py:17
CVT.create_mapbase
def create_mapbase(set='german1')
Creates folium map base for the output .html file.
Definition: CVT.py:18
xroad_functions.cut_unnecessary_xroads
def cut_unnecessary_xroads(nodes, chosen)
Function purpose is to mark with [-1, -1] specific elements in the nodes.
Definition: xroad_functions.py:113