Hello, Lists,

 I have been searching a method to convert psp format line segment back
into polyline, as the psp data (p1) is like below, is there anyone can help
me?  Thanks a lot!

Erin



> str(p1)
List of 5
 $ ends      :'data.frame':     22511 obs. of  4 variables:
  ..$ x0: num [1:22511] 233994 233966 233949 233929 233885 ...
  ..$ y0: num [1:22511] 3355530 3355519 3355515 3355508 3355533 ...
  ..$ x1: num [1:22511] 233946 233918 233911 233873 233889 ...
  ..$ y1: num [1:22511] 3355510 3355511 3355512 3355513 3355514 ...
 $ window    :List of 4
  ..$ type  : chr "rectangle"
  ..$ xrange: Named num [1:2] 228691 236822
  .. ..- attr(*, "names")= chr [1:2] "min" "max"
  ..$ yrange: Named num [1:2] 3347926 3356435
  .. ..- attr(*, "names")= chr [1:2] "min" "max"
  ..$ units :List of 3
  .. ..$ singular  : chr "unit"
  .. ..$ plural    : chr "units"
  .. ..$ multiplier: num 1
  .. ..- attr(*, "class")= chr "units"
  ..- attr(*, "class")= chr "owin"
 $ n         : int 22511
 $ marks     : int [1:22511] 37 37 37 37 37 37 37 37 100 100 ...
 $ markformat: chr "vector"
 - attr(*, "class")= chr [1:2] "psp" "list"

	[[alternative HTML version deleted]]

