[R-br] Erro ao fazer a leitura de arquivos shapefiles.
Rudiney S Pereira
rudiney.s.pereira em gmail.com
Quinta Novembro 21 09:38:03 BRST 2013
Estou tentando instalar o pacote "rgdal" mas estou com as seguintes
mensagens, alguma ajuda?
Obrigado desde já.
> update.packages(ask=FALSE, checkBuilt=TRUE)
Aviso: package 'colorspace' in library '/usr/lib/R/site-library' will not
be updated
Aviso: package 'gam' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'ggplot2' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'maps' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'maptools' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'MNP' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'msm' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'multcomp' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'plotrix' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'RcppEigen' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'RSQLite' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'scatterplot3d' in library '/usr/lib/R/site-library' will
not be updated
Aviso: package 'sp' in library '/usr/lib/R/site-library' will not be updated
Aviso: package 'vcd' in library '/usr/lib/R/site-library' will not be
updated
Aviso: package 'nlme' in library '/usr/lib/R/library' will not be updated
tentando a URL 'http://cran-r.c3sl.ufpr.br/src/contrib/polyclip_1.2-0.tar.gz
'
Content type 'application/x-gzip' length 66542 bytes (64 Kb)
URL aberta
==================================================
downloaded 64 Kb
* installing *source* package ‘polyclip’ ...
** package ‘polyclip’ successfully unpacked and MD5 sums checked
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for int64_t... yes
In src/clipper.h, signed 64-bit integers (long64)
will be declared as 'int64_t'
checking for uint64_t... yes
In src/clipper.h, unsigned 64-bit integers (ulong64)
will be declared as 'uint64_t'
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/share/R/include -DNDEBUG -DPOLYCLIP_LONG64="int64_t"
-DPOLYCLIP_ULONG64="uint64_t" -fpic -O3 -pipe -g -c clipper.cpp -o
clipper.o
g++ -I/usr/share/R/include -DNDEBUG -DPOLYCLIP_LONG64="int64_t"
-DPOLYCLIP_ULONG64="uint64_t" -fpic -O3 -pipe -g -c interface.cpp -o
interface.o
g++ -shared -o polyclip.so clipper.o interface.o -L/usr/lib/R/lib -lR
installing to /home/rudiney/R/x86_64-pc-linux-gnu-library/3.0/polyclip/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (polyclip)
The downloaded source packages are in
‘/tmp/RtmpCLMqbZ/downloaded_packages’
> install.packages("rgdal",dependencies=TRUE)
Installing package into ‘/home/rudiney/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
tentando a URL 'http://cran-r.c3sl.ufpr.br/src/contrib/rgdal_0.8-12.tar.gz'
Content type 'application/x-gzip' length 1579918 bytes (1.5 Mb)
URL aberta
==================================================
downloaded 1.5 Mb
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 0.8-10
checking for /usr/bin/svnversion... no
configure: svn revision: 492
configure: gdal-config: gdal-config
checking gdal-config usability... yes
configure: GDAL: 1.9.0
checking GDAL version >= 1.6.3... yes
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gdal.h usability... yes
checking gdal.h presence... yes
checking for gdal.h... yes
checking gdal: linking with --libs only... yes
checking GDAL: /usr/share/gdal/1.9/pcs.csv readable... yes
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/rudiney/R/x86_64-pc-linux-gnu-library/3.0/rgdal’
The downloaded source packages are in
‘/tmp/RtmpCLMqbZ/downloaded_packages’
Mensagens de aviso perdidas:
In install.packages("rgdal", dependencies = TRUE) :
installation of package ‘rgdal’ had non-zero exit status
>
Atenciosamente,
Em 20 de novembro de 2013 17:30, Éder Comunello
<comunello.eder em gmail.com>escreveu:
> Prezado Rudiney, boa tarde!
>
> O erro se deve à incompatibilidade do pacote maptools() com shapefiles do
> tipo "M". O artigo do Wikipedia disponível em <
> http://en.wikipedia.org/wiki/Shapefile> fala mais sobre tipos de
> shapefile.
>
> O problema é relatado no link <
> http://r-sig-geo.2731867.n2.nabble.com/Shapefile-Compatibility-td6616948.html#none>
> e uma sugestão é usar rgdal::readOGR() pra ler o shape. No link tem exemplo
> de código.
>
> Usando o rgdal vão aparecer mensagens de erro, pois parte do conteúdo será
> perdido, preservando apenas as informações planimétricas (2D).
>
> Éder Comunello <c <comunello.eder em gmail.com>omunello.eder em gmail.com>
> Dourados, MS - [22 16.5'S, 54 49'W]
>
>
> Em 20 de novembro de 2013 13:28, Rudiney S Pereira <
> rudiney.s.pereira em gmail.com> escreveu:
>
>> Boa tarde a todos!
>>
>> Estou tentando realizar a leitura de arquivos shapefiles usando o
>> maptools.
>> O código que estou usando é:
>>
>> Loading required package: sp
>> > require(maptools)
>> Carregando pacotes exigidos: maptools
>> Checking rgeos availability: TRUE
>> > library("sp", lib="/home/est/paulojus/R-lib/")
>> > library("maptools", lib="/home/est/paulojus/R-lib/")
>> > rs <- readShapePoly("43MUE250GC_SIR")
>> Shapefile type: PolygonM (25), # of Shapes: 498
>>
>> ____________________
>> A mensagem de erro é:
>>
>> Erro em read.shape(filen = fn, verbose = verbose, repair = repair) :
>> Shapefile type not (yet) handled by this function
>>
>> Alguém pode ajudar!
>> Abraço e muito obrigado.
>> --
>> Prof. Dr. Rudiney Soares Pereira
>> UFSM - CCR - DER
>> RS 509 KM 9 - Campus Universitário
>> 97.105-900 Santa Maria RS
>> Brasil
>> site: http://www.ufsm.br/geosere
>> skype: rudiney.s.pereira
>> msn: rudiney.s.pereira em hotmail.com
>> gtalk: rudiney.s.pereira em gmail.com
>> fone: 55 3220-9468
>> 55 9118-4142
>>
>> _______________________________________________
>> R-br mailing list
>> R-br em listas.c3sl.ufpr.br
>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>> código mínimo reproduzível.
>>
>
>
> _______________________________________________
> R-br mailing list
> R-br em listas.c3sl.ufpr.br
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
> código mínimo reproduzível.
>
--
Prof. Dr. Rudiney Soares Pereira
UFSM - CCR - DER
RS 509 KM 9 - Campus Universitário
97.105-900 Santa Maria RS
Brasil
site: http://www.ufsm.br/geosere
skype: rudiney.s.pereira
msn: rudiney.s.pereira em hotmail.com
gtalk: rudiney.s.pereira em gmail.com
fone: 55 3220-9468
55 9118-4142
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20131121/98607fa9/attachment.html>
Mais detalhes sobre a lista de discussão R-br