[mapserver-users] Metadata Hashtable

jeff at planyukon.ca jeff at planyukon.ca
Wed Sep 24 10:43:40 EDT 2008


Steve,

Ticket #2773
Methods to expose the metadata hashtable in  
mapscript/swiginc/hashtable.i need to be ported to php-mapscript to  
provide for a $hash = $layer->{metadata} hashtableObj.

Thanks for your advice.
Jeff

Quoting Stephen Woodbridge <woodbri at swoodbridge.com>:

> Jeff,
>
> Did you write a bug for this? What bug number?
>
> Thanks,
>   -Steve W
>
> Jeff Hamm wrote:
>> Thanks Steve.
>> Its finding the $hash I haven't got a handle on.
>> $oLayer->getMetaData("") wants a parameter key.
>> $oLayer->{metadata} returns nothing.
>> How do I grab the metadata hashtable itself?
>>
>> Ticket #439 was the only reference I found; but the examples there   
>> are same as above, unsuccessful.
>>
>> Jeff
>>
>>
>> Steve Lime wrote:
>>> It should look something like this I believe (not a PHP guy):
>>>
>>> $key; # should be empty/NULL to start
>>> while($key = $hash->nextKey($key) {
>>>   # do something with $key
>>> }
>>>
>>> Steve
>>>
>>>
>>>>>> On 9/19/2008 at 3:38 PM, in message   
>>>>>> <48D40DB2.3080103 at planyukon.ca>, Jeff Hamm
>>>>>>
>>> <jeff at planyukon.ca> wrote:
>>>
>>>> Mapserver Bugzilla seems to indicate that exposing metadata as a   
>>>> proper object is possible (Tickets #734 and #737).
>>>>
>>>> I also want to print out all of the metadata key->value pairs for  
>>>>  a map layer using php-mapscript without explicitly naming them  
>>>> all.
>>>> Can anyone share a code snippet for this?
>>>>
>>>> TIA
>>>> Jeff Hamm
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org   
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>
>>>
>>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list