Hi,<br><br>I have a problem with PHP Mapscript.<br><br>When I remove one metadata, two metadata are removed.<br><br>Mapserver : 5.2.1<br><br>Mapfile :<br> LAYER<br> NAME "Layer0"<br> ...<br> METADATA<br> "PPPP" "pppp"<br>
"rrrr" "rrrr"<br> "eeee" "eeee"<br> "description" "mmmm"<br> "type_aa" "dddd"<br> "ayyy_aa" "aaaa"<br>
END<br>...<br> END<br><br>Source code :<br>$oMap = ms_newMapObj($szMapFile);<br>$oLayer = $oMap->getLayerByName('Layer0');<br>$oLayer->removeMetaData('type_aa');<br>$oMap->save($szMapFile);<br>
<br>Expected result in the mapfile :<br> LAYER<br>
...<br>
METADATA<br>
"PPPP" "pppp"<br>
"rrrr" "rrrr"<br>
"eeee" "eeee"<br>
"description" "mmmm"<br>
"ayyy_aa" "aaaa"<br>
END<br>
...<br>
END<br><br>My result :<br> LAYER<br>
...<br>
METADATA<br>
"ayyy_aa" "aaaa"<br> "description" "mmmm"<br> "rrrr" "rrrr"<br> "PPPP" "pppp"<br>
END<br>
...<br>
END<br><br>Any idea ?<br><br>Thanks<br>