[R-sig-Geo] Current location of the Srings object (or its replacement)?

Edzer J. Pebesma e.pebesma at geo.uu.nl
Wed Dec 21 08:25:01 CET 2005


Rick, this change has been done a while back already --
substitute:
Srings with Polygons
Sring with Polygon

see also the article about sp in the latest R-News issue.

Best regards,
--
Edzer

Rick Reeves wrote:

>Hello all:
>
>Following is a code sample that used the Srings class,
>and which used to work before I upgraded to the
>latest build of the 'sp' package and removed the
>spmaptools package from my build.
>
>Now, running this code generates the error:
> 
>Error: couldn't find function "Srings".
>Even loading the spmaptools package does
>not resolve this problem.
>
>Any suggestions on resolving this issue?
>
>Thanks, Rick Reeves
>
>
>
>Now, R reports that
># ----------start -------------------
>
>#
>   Srsl <- vector(mode="list", length=length(AllSps))
>#
># Srings object comes from sp package
>#
>   for (iCtr in 1:length(AllSps))
>   {
>      Srsl[[iCtr]] <- Srings(list(Sring(AllSps[[iCtr]])), 
>names(AllSps)[iCtr])
>      if ((iCtr %% 50) == 0)
>          print(sprintf("....Srings() call for AllSps: %d done...",iCtr))
>   }
>#
>print("....Srings object is made....")
>#browser()
>   SpShapes <- SpatialRings(Srsl, pO=1:SpListCount)
>print("....SpShapes Spatial Rings object is made...plot them....")
>#browser()
>plot(SpShapes,col = "orange")
>
># ----------end-------------------
>
>
>  
>




More information about the R-sig-Geo mailing list