Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning #8

Open
gemyasser opened this issue Jul 28, 2021 · 0 comments
Open

RuntimeWarning #8

gemyasser opened this issue Jul 28, 2021 · 0 comments

Comments

@gemyasser
Copy link

I need help here ... @FXCarl @JHMeusener @

I am trying to convert the OSM file, ok it's converted but with this warning. I need a solution for this or at least to understand why I get this warning !?

d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py:241: RuntimeWarning: invalid value encountered in double_scalars r2 = ( y1*np.cos(hdg1) + np.sin(hdg1) * (x2-x2)-y2*np.cos(hdg1)) /((np.sin(hdg2)*np.cos(hdg1) - np.sin(hdg1) *np.cos(hdg2) )) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py:241: RuntimeWarning: divide by zero encountered in double_scalars r2 = ( y1*np.cos(hdg1) + np.sin(hdg1) * (x2-x2)-y2*np.cos(hdg1)) /((np.sin(hdg2)*np.cos(hdg1) - np.sin(hdg1) *np.cos(hdg2) )) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py:247: RuntimeWarning: invalid value encountered in double_scalars r1 = (-y1*np.cos(hdg2)+ y2*np.cos(hdg2) + np.sin(hdg2) *x1-np.sin(hdg2) *x2 )/(np.sin(hdg1) * np.cos(hdg2) - np.sin(hdg2) *np.cos(hdg1)) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\arcCurves.py:95: RuntimeWarning: divide by zero encountered in double_scalars curvature = -deltaHdg / length d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\osmParsing.py:798: RuntimeWarning: invalid value encountered in double_scalars "steigung":(giveHeight(xendline,yendline,minRemoved=True)-giveHeight(xarc,yarc,minRemoved=True))/length,"length":length}) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\osmParsing.py:775: RuntimeWarning: invalid value encountered in double_scalars self.laneOffsetB = -(self.laneOffsetA-laneOffsetEnd)/length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant