Hi friends, i writte from Argentina.<div><br></div><div>I'd like read attributes from a shapefile but i get "nothing", however i can read very good the geometries.</div><div>My code:</div><div><div><br></div>
<div>$shpFile = ms_newShapeFileObj( $_SERVER["DOCUMENT_ROOT"]."/zonas", -1); //my shapefile in disc</div><div>echo $shpFile->numshapes; //8 -> it's right!!</div><div><br></div><div>$oShape = $shpFile->getShape(0); //get first object</div>
<div><br></div><div>//..but....:</div><div>echo $oShape->numvalues; //0, however it has 2 values: "CODIGO" and "NOMBRE"</div><div>echo $oShape->values["CODIGO"]; //Here get empty (value is 4)</div>
<div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "> Thanks in advance!!!!.</span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Pedro.</span></font></div><div><br></div></div>