in3Utils.geoTrans.snapPtsToLine
- snapPtsToLine(dbData, projstr, lineName, pointsList)[source]
snap points to line in dataframe only considering x, y plane!
- Parameters
dbData (pandas dataframe) – dataframe with geometry info of events
lineName (str) – name of line column except projstr
pointsList (list) – list with point column names except projstr
projstr (str) – projection string to append to all names
- Returns
dbData – updated dataframe with …_snapped point column
- Return type
pandas dataframe