[R-sig-Geo] Question about function COORDINATES in SP PACKAGE

Roger Bivand Roger@B|v@nd @end|ng |rom nhh@no
Wed Nov 4 14:38:16 CET 2020


On Wed, 4 Nov 2020, Pietro Andre Telatin Paschoalino wrote:

> Hello everyone.
>
> Could anyone help with a small question about the coordinates in sp 
> package function?
>
> I want to retrieve the geographic coordinates of polygons (shape file), 
> and reading the documentation, I did not find out if these coordinates 
> refer to the centroid of polygon.
>
> So, in fact, do such coordinates refer to the centroid of each polygon?

Yes, they report the centroid of the largest polygon, but may not handle 
holes correctly. Why do you need to retreive the complete set of 
coordinates? That would be much easier using the sf package, but is seldom 
needed.

Roger

>
> Thanks.
>
> Pietro Andre Telatin Paschoalino
> Doutorando em Ci�ncias Econ�micas da Universidade Estadual de Maring� - PCE.
>
> 	[[alternative HTML version deleted]]
>
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; e-mail: Roger.Bivand using nhh.no
https://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en


More information about the R-sig-Geo mailing list