Skip to content

get X and Y form point shapefile

2 messages · gianni lavaredo, Michael Sumner

#
xy <- coordinates(sample.shp)

will give you a 2-column matrix "xy" of the X and Y coordinates.

For more complete reporting for this list, please provide the packages
you are using and the version. The easiest way is to use sessionInfo()

See here for more information, and the posting guide:
http://www.r-project.org/mail.html

Cheers, Mike.

On Thu, Feb 11, 2010 at 8:54 AM, gianni lavaredo
<gianni.lavaredo at gmail.com> wrote: