MapServer
MapServer copied to clipboard
Swig mapscript missing php/mapscript functions
Reporter: [email protected] Date: 2006/07/08 - 15:15 Trac URL: http://trac.osgeo.org/mapserver/ticket/1822
Swig mapscript is missing following php/mapscript functions:
array getLayersIndexByGroup(string groupname)
array getAllGroupNames()
array getAllLayerNames()
There may be others I have not had time to check the whole API.
Author: sdlime Date: 2006/07/10 - 22:18
We'll need to get the language specific folks involved with this if (as I fear)
typemaps are necessary to go from char ** to language specific arrays. Perhaps
this could be brought up on mapserver-dev briefly...
Steve
Author: [email protected] Date: 2006/08/10 - 20:11
Steve, can you try and get this fixed on 4.10? At least for Perl, but I think we
should try to get this done for all the languages if we can get the support
because it is really problematic to port mapscript between languages when there
are missing functions.
Author: [email protected] Date: 2006/09/12 - 20:14
a few other missing features:
- the constructor for a new mapobj is missing the second argument (path)
- imageObj savewebimage function
the mapobj constructor quirk is quite important, as I haven't found out how to
circumvent this without patching the swig interface (the other missing functions
can be mimicked in mapscript)
Author: sdlime Date: 2007/08/08 - 08:39 This will require some typemap work so I don't want to putz with this at this late date. Marking for 5.2...
Steve
no updates, no need!
I think this would be a very useful addition for the MapServer 8.0 release: add important missing SWIG MapScript functions:
mapObj: array getLayersIndexByGroup(string groupname)
mapObj: array getAllGroupNames()
mapObj: array getAllLayerNames()
Reopening ticket.
See also #5763 - once an array typemap is added for PHP several of these functions could be added.
@jmckenna and @geographika - is this still relevant?
still relevant, as mentioned through #5763
Do we need multiple open tickets or could we consolidate things? Just trying whittle the number of tickets down.
The "missing" functions were never in the SWIG API, and are more convenience functions for PHP users. From the Python MapScript side I don't see a particular need for the functions mentioned in this ticket. I'd be in favour of closing this and maybe just leaving #5763 open.
Ok, I can live with that and call this old one a duplicate. The references back to this ticket will live on in #5763 anyway.
This is unfortunate. Thanks guys.
This is unfortunate. Thanks guys.
Feel free to re-open if you feel that strongly.