How do I read/work with PolyLineZM with maptools/sp?
On 05/16/2011 08:06 PM, Mikhail Titov wrote:
Hi all! I feel like I?m missing something simple. I can access X & Y coordinates like: s <- readShapeLines(elev) head(coordinates(s at lines[[1]]@Lines[[1]])) I can?t seems to find any information on how to access Z and M values. I can easily access those with `shapefiles` package, but it has a limited support for Point Z when writing a shapefile and it is generally not as structured as `maptools`/`sp`. While having Z value as an attribute for an output point is not an issue for me, I do have PolylineZM as an input and I do need an access to both Z & M.
I would try s$M and s$Z to access M and Z when they are attributes.
Thank you for any suggestions, Mikhail
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Edzer Pebesma Institute for Geoinformatics (ifgi), University of M?nster Weseler Stra?e 253, 48151 M?nster, Germany. Phone: +49 251 8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de http://www.52north.org/geostatistics e.pebesma at wwu.de