Hi all,
I just looked through php_mapscript.c and I don't think there is a way
to do this in php because the function was never written to access the
hash table. You should probably write a bug on this for PHP/mapscript. I
don't think it is a problem for the swig stuff.
-Steve W.
Steve Lime wrote:
I would thing this might work (perl in swig/mapscript):
$hash = $layer->{metadata};
$layer->{metadata} is a hashtableObj. In PHP there must be a get function to do
this.
Steve
On 9/22/2008 at 6:01 PM, in message <[EMAIL PROTECTED]>, Jeff Hamm
<[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>, Jeff Hamm
<[EMAIL PROTECTED]> 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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users