[mapserver-dev] Problem with removeMetaData
Robert Pivalone
robert.pivalone at gmail.com
Fri Oct 2 09:40:15 EDT 2009
Hi,
I have a problem with PHP Mapscript.
When I remove one metadata, two metadata are removed.
Mapserver : 5.2.1
Mapfile :
LAYER
NAME "Layer0"
...
METADATA
"PPPP" "pppp"
"rrrr" "rrrr"
"eeee" "eeee"
"description" "mmmm"
"type_aa" "dddd"
"ayyy_aa" "aaaa"
END
...
END
Source code :
$oMap = ms_newMapObj($szMapFile);
$oLayer = $oMap->getLayerByName('Layer0');
$oLayer->removeMetaData('type_aa');
$oMap->save($szMapFile);
Expected result in the mapfile :
LAYER
...
METADATA
"PPPP" "pppp"
"rrrr" "rrrr"
"eeee" "eeee"
"description" "mmmm"
"ayyy_aa" "aaaa"
END
...
END
My result :
LAYER
...
METADATA
"ayyy_aa" "aaaa"
"description" "mmmm"
"rrrr" "rrrr"
"PPPP" "pppp"
END
...
END
Any idea ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20091002/6cef86d7/attachment.html
More information about the mapserver-dev
mailing list