![]() |
GNSS data to OSM format processor and track finder
author: Jaroslav Pizur
|
Serves to solve problems after solutions connected to the crossroad representation. More...
Functions | |
| def | extractnodes (basedata) |
| Function takes all the nodes from basedata and appends them into a list it returns. More... | |
| def | get_each_closest (coordinates, fine_nodes) |
| For each coordinate go through all fine_nodes and find the closest one. More... | |
| def | get_list_complement (alist, blist) |
| What the functions does is: xlist = alist - blist. More... | |
| def | feature_deletion_matchwise (adata, bdata, matchfactor) |
| Compare these two maps (adata, bdata). More... | |
Serves to solve problems after solutions connected to the crossroad representation.
These funtions are aimed to help get more refined (fine) representation of the input data in normalised state.
| def postx_functions.extractnodes | ( | basedata | ) |
Function takes all the nodes from basedata and appends them into a list it returns.
| basedata | type dictionary and has to satisfy used case-specific geojson format (OSM) |
| def postx_functions.feature_deletion_matchwise | ( | adata, | |
| bdata, | |||
| matchfactor | |||
| ) |
Compare these two maps (adata, bdata).
Each feature with the correspondent one. And if the adata does not contain more than "matchfactor" percent of nodes it should (bdata reference), then delete the whole feature (all coordinates).
adata, bdata -- geojson based format OSM
| matchfactor | (0-100) in percent - for number of nodes in basemaps comparison. Bigger number deletes less features. |
| def postx_functions.get_each_closest | ( | coordinates, | |
| fine_nodes | |||
| ) |
For each coordinate go through all fine_nodes and find the closest one.
The closest one will be stored in winnode - list which will be returned.
| coordinates | list of input data nodes [[lon1,lat1],[lon2,lat2],...]
@param fine_nodes nodes obtained from json formerData - fine
@param representation
|
| def postx_functions.get_list_complement | ( | alist, | |
| blist | |||
| ) |
What the functions does is: xlist = alist - blist.
The return value is equal to the alist while not containing any item equal to any item in the blist list.
alist, blist -- both list of nodes [[lon1,lat1],[lon2,lat2],...]