[R-sig-Geo] How do I read/work with PolyLineZM with maptools/sp?
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Mon May 16 20:14:30 CEST 2011
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
More information about the R-sig-Geo
mailing list