[R-sig-Geo] Rép. : R-sig-Geo Digest, Vol 28, Issue 9 (Congés)

Sébastien TERRA Sebastien.TERRA at ecologie.gouv.fr
Wed Dec 21 12:25:48 CET 2005


Bonjour,

Je suis actuellement en congés. Je reviendrai le mardi 3 janvier 2006.

Joyeux Noël et bonne année.

Merci.

Sébastien TERRA

>>> r-sig-geo 12/21/05 12:00 >>>

Send R-sig-Geo mailing list submissions to
	r-sig-geo at stat.math.ethz.ch

To subscribe or unsubscribe via the World Wide Web, visit
	https://stat.ethz.ch/mailman/listinfo/r-sig-geo
or, via email, send a message with subject or body 'help' to
	r-sig-geo-request at stat.math.ethz.ch

You can reach the person managing the list at
	r-sig-geo-owner at stat.math.ethz.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of R-sig-Geo digest..."


Today's Topics:

   1. Tomlin's Map Algebra for sp (Hisaji ONO)
   2. Re: Moving-window sum in a matrix (Edzer J. Pebesma)
   3. Current location of the Srings object (or its	replacement)?
      (Rick Reeves)
   4. Re: Current location of the Srings object (or	its
      replacement)? (Edzer J. Pebesma)
   5. Re: Current location of the Srings object (or its
      replacement)? (Roger Bivand)


----------------------------------------------------------------------

Message: 1
Date: Wed, 21 Dec 2005 02:50:01 +0900 (JST)
From: Hisaji ONO <hi_ono2001 at yahoo.co.jp>
Subject: [R-sig-Geo] Tomlin's Map Algebra for sp
To: r-sig-geo at stat.math.ethz.ch
Message-ID: <20051220175001.25334.qmail at web10713.mail.bbt.yahoo.co.jp>
Content-Type: text/plain; charset=iso-2022-jp

Hello.

 Sp package has grid & grid topology classes.

 It seems to use them to be able to implement famous map
algebra(or cartographic modelling).

 Any plan to implement this analysis method to sp package?


 Regards.



------------------------------

Message: 2
Date: Tue, 20 Dec 2005 22:05:17 +0100
From: "Edzer J. Pebesma" <e.pebesma at geo.uu.nl>
Subject: Re: [R-sig-Geo] Moving-window sum in a matrix

Cc: r-sig-geo at stat.math.ethz.ch, cees at pcraster.nl
Message-ID: <43A8720D.5030104 at geo.uu.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hisaji ONO wrote:

>Hello.
>
> Sp package has grid & grid topology classes.
>
> It seems to use them to be able to implement famous map
>algebra(or cartographic modelling).
>
> Any plan to implement this analysis method to sp package?
>  
>
Yes, but not in sp.

We're even a bit further than plans, but
not exactly that much. I just read that in
https://stat.ethz.ch/pipermail/r-sig-geo/2004-December/000285.html
I wrote 12 months ago about these plans.  Indeed, we now
have sp on the rails, and should move on. Thanks for
reminding me.

Many of the point, global and areal operations can be
done using standard R syntax; it is however the true spatial
functions like spreads and the window functions that would
be nice to  have.
--
Edzer

>
> Regards.
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>  
>



------------------------------

Message: 3
Date: Tue, 20 Dec 2005 13:24:24 -0800
From: Rick Reeves <reeves at nceas.ucsb.edu>
Subject: [R-sig-Geo] Current location of the Srings object (or its
	replacement)?
To: r-sig-geo at stat.math.ethz.ch
Message-ID: <43A87688.7040909 at nceas.ucsb.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


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-------------------


-- 
Rick Reeves	
Scientific ProgrammerAnalyst
National Center for Ecological Analysis and Synthesis (NCEAS)
University of California, Santa Barbara
reeves at nceas.ucsb.edu
805 892 2533



------------------------------

Message: 4
Date: Wed, 21 Dec 2005 08:25:01 +0100
From: "Edzer J. Pebesma" <e.pebesma at geo.uu.nl>
Subject: Re: [R-sig-Geo] Current location of the Srings object (or	its
	replacement)?
To: Rick Reeves <reeves at nceas.ucsb.edu>
Cc: r-sig-geo at stat.math.ethz.ch
Message-ID: <43A9034D.8070102 at geo.uu.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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-------------------
>
>
>  
>



------------------------------

Message: 5
Date: Wed, 21 Dec 2005 09:34:06 +0100 (CET)
From: Roger Bivand <Roger.Bivand at nhh.no>
Subject: Re: [R-sig-Geo] Current location of the Srings object (or its
	replacement)?
To: "Edzer J. Pebesma" <e.pebesma at geo.uu.nl>
Cc: r-sig-geo at stat.math.ethz.ch
Message-ID: <Pine.LNX.4.44.0512210923390.31583-100000 at reclus.nhh.no>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 21 Dec 2005, Edzer J. Pebesma wrote:

> 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.

The reason for the incompatibility, as we wrote at the time, was to reduce 
the number of copies of metadata carried around by lines and polygons.

If you happen to have stored objects in SRings format, remove the current 
sp, install the older version - the source can be downloaded from:

http://cran.r-project.org/src/contrib/Archive/S/

and Windows binary for example from:

http://cran.univ-lyon1.fr/bin/windows/contrib/2.1/

and your old spmaptools, write as a shapefile, and read in again after 
replacing old sp with the current one. I've had to do this, so I guess I'm 
not the only person who finds out that data from a terminated project 
needs to be revisited.

Hope this helps,

Roger

> 
> 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-------------------
> >
> >
> >  
> >
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



------------------------------

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


End of R-sig-Geo Digest, Vol 28, Issue 9




More information about the R-sig-Geo mailing list