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 &lt;shapefil.h&gt;<br><br>int main (void)<br>{<br>    const char * shapefile = &quot;/mnt/share/uas/GRRUVI2_uc/extractor/colorado/fe_2007_08_county&quot;;<br>    SHPHandle handle;<br>    SHPObject *shpinforead;<br>

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

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

    int a=0;<br>    printf(&quot;\nReading Entity %d\n&quot;,a);<br>    shpinforead = *SHPReadObject(handle,a);<br>    printf(&quot;%d %d\n&quot;,shpinforead-&gt;nShapeid,shpinforead-&gt;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>