MapServer icon indicating copy to clipboard operation
MapServer copied to clipboard

Swig mapscript missing php/mapscript functions

Open mapserver-bot opened this issue 13 years ago • 7 comments
trafficstars

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.

mapserver-bot avatar Apr 03 '12 21:04 mapserver-bot

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

mapserver-bot avatar Apr 03 '12 21:04 mapserver-bot

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.

mapserver-bot avatar Apr 03 '12 21:04 mapserver-bot

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) 

mapserver-bot avatar Apr 03 '12 21:04 mapserver-bot

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

mapserver-bot avatar Apr 03 '12 21:04 mapserver-bot

no updates, no need!

tbonfort avatar May 23 '12 13:05 tbonfort

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.

jmckenna avatar Feb 01 '21 19:02 jmckenna

See also #5763 - once an array typemap is added for PHP several of these functions could be added.

geographika avatar Feb 01 '21 19:02 geographika

@jmckenna and @geographika - is this still relevant?

sdlime avatar Oct 03 '22 18:10 sdlime

still relevant, as mentioned through #5763

jmckenna avatar Oct 03 '22 18:10 jmckenna

Do we need multiple open tickets or could we consolidate things? Just trying whittle the number of tickets down.

sdlime avatar Oct 03 '22 19:10 sdlime

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.

geographika avatar Oct 03 '22 20:10 geographika

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.

sdlime avatar Oct 04 '22 02:10 sdlime

This is unfortunate. Thanks guys.

jmckenna avatar Oct 04 '22 11:10 jmckenna

This is unfortunate. Thanks guys.

Feel free to re-open if you feel that strongly.

sdlime avatar Oct 04 '22 12:10 sdlime