Transform try/catch

Wrap call to transform a gdal LineString in a try/catch.