Opened 21 years ago
Closed 20 years ago
#439 closed enhancement (fixed)
expose hash tables like metadata and fonts to mapscript
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-SWIG | Version: | 4.1 |
Severity: | minor | Keywords: | |
Cc: | m.spring@… |
Description
We need to overcome the issues between MapServer and SWIG that currently prevent us from exposing hash tables like metadata and fonts to mapscript. Then implement methods that will let us access the hash table objects as though they were dictionaries or associative arrays, and a keys() method to get a list or array of all hash keys. This means in Perl that you could do: $metadata = $layerobj->{metadata}; $layerobj->{metadata}->{'WMS_TITLE'} = 'Foo'; for $key in $metadata->keys() { print $key, $metadata->{$key}; } Or in Python: layerobj.metadata['WMS_TITLE'] = 'Foo' for key in layerobj.metadata.keys(): print key, layerobj.metadata[key]
Change History (1)
comment:1 by , 20 years ago
Cc: | added |
---|---|
Component: | MapScript → MapScript-SWIG |
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.