tags parsing works for lines and points