[R-sig-Geo] downsampling a lines shapefile?

Nick Matzke matzke at berkeley.edu
Tue Oct 25 22:06:47 CEST 2011


Sure!  Thanks for looking at this...I've still got an Intel 
Mac OS X 10.4...yes, I'm in the stone age, but normally I 
can get things to work...


=========================
 > sessionInfo()
R version 2.10.1 (2009-12-14)
i386-apple-darwin8.11.1

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     grDevices utils     datasets  graphics 
methods   base

other attached packages:
[1] stringr_0.2 plyr_0.1.9

loaded via a namespace (and not attached):
[1] tools_2.10.1
=========================


On 10/25/11 12:34 PM, Colin Rundel wrote:
> That is odd, it isn't an error that I've seen before. What version of R are you running and can you check what version of plyr and stringr you have installed?
>
> -Colin
>
>
> On Oct 25, 2011, at 3:11 PM, Nick Matzke wrote:
>
>> Thanks so much!  I've almost gotten rgeos to install, however I'm getting a peculiar error about a (successfully installed) other package, stringr:
>>
>> "Error : package 'stringr' does not have a name space"
>>
>> ...any idea what that might be about?  Grateful as always!!
>> Nick
>>
>>
>> PS Full error message below...
>>
>> =========================================
>>> install.packages("/Users/nick/Desktop/downloads/rgeos", "/Library/Frameworks/R.framework/Resources/library/", NULL, type='source',
>> + configure.args="--with-geos-config=/usr/local/bin/geos-config")
>> WARNING: ignoring environment value of R_HOME
>> Loading ~/.Rprofile...
>> Currently viewed PATH:
>> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/Applications/dssp:/Library/Frameworks/PROJ.framework/:/Library/Frameworks/PROJ.framework/Programs:/Library/Frameworks/PROJ.framework/Versions/4.6/Headers:/Library/Frameworks/GDAL.framework/Versions/1.6/Programs:/usr/texbin:/Applications/dssp:/Library/Frameworks/PROJ.framework/:/Library/Frameworks/PROJ.framework/Programs:/Library/Frameworks/PROJ.framework/Versions/4.6/Headers:/Library/Frameworks/GDAL.framework/Versions/1.6/Programs
>> * installing *source* package ‘rgeos’ ...
>> geos-config: /usr/local/bin/geos-config
>> GEOS: 3.2.3
>> CPPFLAGS: -DHAVEUNARYUNION -I/usr/local/include
>> LIBS: -L/usr/local/lib -lgeos
>> configure: creating ./config.status
>> config.status: creating src/Makevars
>> ** libs
>> ** arch - i386
>> make: Nothing to be done for `all'.
>> ** R
>> ** inst
>> ** preparing package for lazy loading
>> Loading required package: plyr
>> Error : package 'stringr' does not have a name space
>> ERROR: lazy loading failed for package ‘rgeos’
>> * removing ‘/Library/Frameworks/R.framework/Versions/2.10/Resources/library/rgeos’
>> Warning message:
>> In install.packages("/Users/nick/Desktop/downloads/rgeos", "/Library/Frameworks/R.framework/Resources/library/",  :
>>   installation of package '/Users/nick/Desktop/downloads/rgeos' had non-zero exit status
>>
>> On 10/25/11 1:32 AM, Roger Bivand wrote:
>>> On Mon, 24 Oct 2011, Nick Matzke wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have a shapefile with a number of line features. I can
>>>> load it and plot it. Is there an easy way to downsample or
>>>> smooth the shapefile to a coarser resolution?
>>>
>>> ?gSimplify in rgeos?
>>>
>>> Roger
>>>
>>>>
>>>> Thanks so much for your help,
>>>> Nick
>>>>
>>>>
>>>>
>>>
>>
>> --
>> ====================================================
>> Nicholas J. Matzke
>> Ph.D. Candidate, Graduate Student Researcher
>>
>> Huelsenbeck Lab
>> Center for Theoretical Evolutionary Genomics
>> 4151 VLSB (Valley Life Sciences Building)
>> Department of Integrative Biology
>> University of California, Berkeley
>>
>> Graduate Student Instructor, IB200B
>> Principles of Phylogenetics: Ecology and Evolution
>> http://ib.berkeley.edu/courses/ib200b/
>> http://phylo.wikidot.com/
>>
>>
>> Lab websites:
>> http://ib.berkeley.edu/people/lab_detail.php?lab=54
>> http://fisher.berkeley.edu/cteg/hlab.html
>> Dept. personal page: http://ib.berkeley.edu/people/students/person_detail.php?person=370
>> Lab personal page: http://fisher.berkeley.edu/cteg/members/matzke.html
>> Lab phone: 510-643-6299
>> Dept. fax: 510-643-6264
>>
>> Cell phone: 510-301-0179
>> Email: matzke at berkeley.edu
>>
>> Mailing address:
>> Department of Integrative Biology
>> 3060 VLSB #3140
>> Berkeley, CA 94720-3140
>>
>> -----------------------------------------------------
>> "[W]hen people thought the earth was flat, they were wrong. When people thought the earth was spherical, they were wrong. But if you think that thinking the earth is spherical is just as wrong as thinking the earth is flat, then your view is wronger than both of them put together."
>>
>> Isaac Asimov (1989). "The Relativity of Wrong." The Skeptical Inquirer, 14(1), 35-44. Fall 1989.
>> http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

-- 
====================================================
Nicholas J. Matzke
Ph.D. Candidate, Graduate Student Researcher

Huelsenbeck Lab
Center for Theoretical Evolutionary Genomics
4151 VLSB (Valley Life Sciences Building)
Department of Integrative Biology
University of California, Berkeley

Graduate Student Instructor, IB200B
Principles of Phylogenetics: Ecology and Evolution
http://ib.berkeley.edu/courses/ib200b/
http://phylo.wikidot.com/


Lab websites:
http://ib.berkeley.edu/people/lab_detail.php?lab=54
http://fisher.berkeley.edu/cteg/hlab.html
Dept. personal page: 
http://ib.berkeley.edu/people/students/person_detail.php?person=370
Lab personal page: 
http://fisher.berkeley.edu/cteg/members/matzke.html
Lab phone: 510-643-6299
Dept. fax: 510-643-6264

Cell phone: 510-301-0179
Email: matzke at berkeley.edu

Mailing address:
Department of Integrative Biology
3060 VLSB #3140
Berkeley, CA 94720-3140

-----------------------------------------------------
"[W]hen people thought the earth was flat, they were wrong. 
When people thought the earth was spherical, they were 
wrong. But if you think that thinking the earth is spherical 
is just as wrong as thinking the earth is flat, then your 
view is wronger than both of them put together."

Isaac Asimov (1989). "The Relativity of Wrong." The 
Skeptical Inquirer, 14(1), 35-44. Fall 1989.
http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm



More information about the R-sig-Geo mailing list