DLR-TS / gdal

GDAL is an open source X/MIT licensed translator library for raster and vector geospatial data formats. This is a mirror of the GDAL Subversion repository.
http://www.gdal.org/
Other
18 stars 6 forks source link

Segmentation fault when processing paramPoly3 geometries #2

Closed michikommader closed 6 years ago

michikommader commented 6 years ago

"the GDAL error message Segmentation fault (core dumped) appears only when the input xodr file has paramPoly3 geometries.", see DLR-TS/xodr#1

cristhianmurcia182 commented 6 years ago

Hi, the error appears when the paramPoly3 object does not contain the pRange attribute. The pRange attribute is optional, and the current version of the code located in this repository assumes that all the paramPoly3 instances have this attribute. The code has been corrected by checking whether the pRange value is available if that is not the case, we define this parameter by hand in the range [0;1], as stated in the OpenDrive 1.4. documentation. After making this changes, I executed the code, with the /KA-Suedtangente-atlatec-Roadshape.xodr, obtaining appropriate results. I will update the code soon so that this error does not occur again. Kind Regards, sorry for the inconveniences.

michikommader commented 6 years ago

After Cristhian's improvemnets this issue should be fixed.