Skip to content
Prev 11698 / 29559 Next

How do I read/work with PolyLineZM with maptools/sp?

On Mon, 16 May 2011, Mikhail Titov wrote:

            
The Z is dropped for SpatialPolygons and SpatialLines everywhere. The M is 
not a standard part of the specification - it isn't obvious what it should 
be. You'd need to rewrite the C code in shapelib for maptools or rgdal to 
access these, and create a 4D object. Alternatively, try anything perhaps 
in Python with OGR to dump 3D points with M as an attribute, and a 
grouping factor to point to the feature ID in the DBF file.

Roger