[Shapelib] SHPReadObject compile error

Frank Warmerdam warmerdam at pobox.com
Thu Apr 30 05:47:40 PDT 2009

Jamie Lahowetz wrote:
> I get this error when compiling:
> shape_test.c: In function ‘main’:
> shape_test.c:24: error: incompatible types in assignment
> shape_test.c:25: error: ‘SHPObject’ has no member named ‘nShapeid’
> Does this mean that the shapefile does not have an id or am I just doing 
> it wrong?


The field name is "nShapeId" with a capital 'I'.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Shapelib mailing list