Skip to content
Prev 410 / 29559 Next

Subject: RE: [R-sig-Geo] maptools package rejects some polygon shapefiles?

Hi,
Wouldn't it make more sense to handle 3d file as 3d?
In outher words store 3d poionts as 3d points. For dealing 
with this in R, we could write methods that would display the 
3rd dimension as an attribute. I don't think it would be hard to change
the
underlying C code to reade shape 3d files. I think the challange would
be in the
R data structure and methods.

Nicholas

Date: Thu, 12 May 2005 10:58:31 +0200 (CEST)
From: Roger Bivand <Roger.Bivand at nhh.no>
Subject: RE: [R-sig-Geo] maptools package rejects some polygon
        shapefiles?
To: Rick Reeves <reeves at nceas.ucsb.edu>
Cc: r-sig-geo at stat.math.ethz.ch
Message-ID: <Pine.LNX.4.44.0505121055521.11044-100000 at reclus.nhh.no>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 11 May 2005, Rick Reeves wrote:

            
Rick:

(I'm replying to the list too to ask for comments)

The file is recognised by ogrinfo as:

$ ogrinfo NorthAmericaBest.shp
INFO: Open of `NorthAmericaBest.shp'
using driver `ESRI Shapefile' successful.
1: NorthAmericaBest (3D Polygon)

It should not be too difficult to change read.shape to read 3D points as
3D, and 3D lines and polygons as 2D. I guess that stripping the Z values
is not a problem for anybody (excepting points I think)?

Thanks for your help - with a sample file to study, making this work
will
be much easier. Does anyone have 3D lines and 3D points files?

Best wishes,

Roger