Re: [R] Extract the coordinates of a Polylines

2019-02-01 Thread Michael Sumner
Use ggplot2::fortify - there's several other ways but no "native" support. If fortify doesn't work try spbabel::sptable. All the best On Fri, Feb 1, 2019, 05:46 David Winsemius wrote: > > On 1/30/19 7:12 AM, javad bayat wrote: > > Dear all; > > Back to my previous question, I am trying to add X

Re: [R] Extract the coordinates of a Polylines

2019-01-31 Thread javad bayat
Dear all; Back to my previous question, I am trying to add X and Y coordinates to every row of the data. topo = readOGR("E:/New/Modelling_Water/MIKE/BathyMetry/GIS_Armator/Chitgar_Topo.shp")#Read shape file of the topo as polylines plot(topo) cords = topo@lines[[1]]@Lines[[1]]@coords###Extracting

Re: [R] Extract the coordinates of a Polylines

2019-01-31 Thread David Winsemius
On 1/30/19 7:12 AM, javad bayat wrote: > Dear all; > Back to my previous question, I am trying to add X and Y coordinates > to every row of the data. > > topo = > readOGR("E:/New/Modelling_Water/MIKE/BathyMetry/GIS_Armator/Chitgar_Topo.shp")#Read > > shape file of the topo as polylines > plot

[R] Extract the coordinates of a Polylines

2019-01-27 Thread javad bayat
Dear R users; I am trying to extract the X and Y coordinates of a polylines along with Elevation data. I have extracted the Elevations as Z, but I do not know how to extract the X and Y of these Elevations. Is it possible to extract X and Y of the Elevation and create a data frame with three variab