It looks very much like the geometry created in postGIS is point, not line. How are you checking the geometry object in PostGIS? What does your wkt look like? Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.