Support GeneralPolyline geometry type and factor common code