first cut of an ogr line/poly to point text file script