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

<br>#include <shapefil.h><br><br>int main (void)<br>{<br>    const char * shapefile = "/mnt/share/uas/GRRUVI2_uc/extractor/colorado/fe_2007_08_county";<br>    SHPHandle handle;<br>    SHPObject *shpinforead;<br>

    int entities;<br>    int type;<br>    double minbound[4];<br>    double maxbound[4];<br>    <br>    printf("Location: %s\n", shapefile);<br>    <br>    handle = SHPOpen(shapefile,"rb");<br>    SHPGetInfo( handle,&entities,&type,minbound,maxbound);<br>

    <br>    printf("Entities: %d\n",entities);<br>    printf("Type: %d\n",type);<br>    for(int i=0;i<2;printf("Min Bound: %lf\nMax Bound: %lf\n",minbound[i],maxbound[i]), i++);<br>    <br>

    int a=0;<br>    printf("\nReading Entity %d\n",a);<br>    shpinforead = *SHPReadObject(handle,a);<br>    printf("%d %d\n",shpinforead->nShapeid,shpinforead->nParts);<br>    <br>    SHPClose(handle);<br>

    return 0;<br>}<br clear="all"><br>-- <br>Jamie Ryan Lahowetz<br>University of Nebraska - Lincoln<br>Graduate Student - Geosciences<br>402.304.0766<br><a href="mailto:jlahowetz@gmail.com">jlahowetz@gmail.com</a><br>