<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Erik,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>They are stored in an associative array. This is
what I do to obtain attribute names:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>-----------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>
$tmpshp = $oLayer->getShape(-1,
0);<BR> $fieldnames =
array_keys ($tmpshp->values);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> for
($w=0; $w < count($fieldnames);
$w++)
<BR>
{<BR> print
array $fieldnames[$w];</FONT></DIV>
<DIV><FONT face=Arial
size=2>
}</FONT></DIV>
<DIV><FONT face=Arial
size=2>-----------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>» -----Original Message-----<BR>» From: UMN
MapServer Users List <BR>» [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of
Erik Konijnenburg<BR>» Sent: 2 October 2005 03:39<BR>» To: <A
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>»
Subject: [UMN_MAPSERVER-USERS] Obtaining attribute names<BR>» <BR>» Is it
possible to obtain the attribute names from a shapeObj <BR>» returned by<BR>»
the layer->getShape. I am able to obtain the attribute values <BR>» but I
want<BR>» the attribute names. Is there a solution?<BR>» </FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>