This project has moved and is read-only. For the latest updates, please go here.

PolygonZ features are not currently supported

Jun 8, 2009 at 5:54 PM
Edited Jun 8, 2009 at 5:58 PM

Hi, I'm getting a "PolygonZ features are not currently supported" error when I try to read features from a shapefile. I've been successfully opening and converting a number of shape files lately, and this is the 1st time I've seen this error. Any suggestions? Here's a highly simplified snippet of code:

IFeatureDataRecord ifdr;

for (a = 0;a<=sf.FeatureCount;a++) {

sf.GetFeatureByID(a) }    <--this line is throwing an exception

Jun 11, 2009 at 6:51 PM

Hi Brad, if you get latest you can now force the shapefile to be read as 2D

shapefile.ForceCoordinateOptions = ForceCoordinateOptions.Force2D; (ignore the other options for the time being)

you can also make the reader more lenient wrt bad polygons:

shapefile.ReadStrictness = ShapefileReadStrictness.Lenient;

hth jd