shapeline write function

shapeline write function