[Mapserver-dev] New msCloneLayerObj() function

Daniel Morissette morissette at dmsolutions.ca
Mon Feb 17 16:37:40 EST 2003


Sean Gillies wrote:
> 
> In mapscript.i, I was planning to extend layerObj with a copy()
> function which would be used like this Python example:
> 
> map1 = mapObj(mapfile) # contains a layer
> lay1 = map1.getlayer(0)
> lay2 = layerObj(map1)
> lay2 = lay1.copy()
> 

Makes sense.  We would have to apply the same logic in PHP MapScript.


> I'm reluctant to commit my code into mapfile.c since there's ~700 lines
> (including functions to copy other map objects), so I was thinking
> of a new file?  mapcopy.c perhaps?  I could commit this file to CVS if
> you want to take a look.
> 

Perhaps a new mapcopy.c is what would make the most sense.  In our case
we need this feature by Wednesday for something we are working on, so
the sooner you can commit the better.  Assefa will be the first one to
test this from our end as he integrates it in PHP MapScript.

Thanks

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-dev mailing list