[mapserver-dev] Using updateFromString on existing items

Tamas Szekeres szekerest at gmail.com
Sun Oct 8 10:49:55 PDT 2017

Hi Devs,

Is that a supported use case to apply updateFromString on an existing item
or it should only be used only on a newly created item?

For example when I use layerObj.updateFromString on an existing layer I get
the following error

loadProjection(): General error message. Projection is already initialized.
Multiple projection definitions are not allowed in this object. (line 10)

This is because we don't have a proper cleanup code on the existing layer
before calling loadLayer on it. The same applies to the other object types.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20171008/fadc2fde/attachment.html>

More information about the mapserver-dev mailing list