Opened 20 years ago

Closed 20 years ago

#585 closed defect (fixed)

Many structure members unnecessarily exposed to SWIG mapscript

Reported by: sgillies@… Owned by: sdlime
Priority: high Milestone: 4.2 release
Component: MapScript-SWIG Version: 4.1
Severity: normal Keywords:
Cc:

Description

While documenting the SWIG mapscript I am realizing that there are many
structure members unnecessarily exposed to mapscript.

For example, imageObj.size ... I can't even find what this is used for.
Or outputFormatObj.refcount ... nobody should be messing with this.
There are more that I don't have the time to list.

What if we were to make structure members invisible to mapscript by
default, or at least immutable by default?  And require developers to
turn them on explicitly?

Change History (4)

comment:1 by sdlime, 20 years ago

Milestone: 4.2 release
I don't know that we can trust non-SWIG developers. I think this is best handled
by a very small group of people. We just need to train everyone to alert you and
I when new parameters are added. Either that or this becomes an exercise before
each release to get map.h in order. The 4.2 release (DMS would like to have one
in a couple of weeks) would be our first shot at it.

Steve

comment:2 by sdlime, 20 years ago

Component: MapScriptMapScript-SWIG
Sean: I've added a MapScript-SWIG product, leaving MapScript itself for cross
PHP/Swig issues. I'm the owner at the moment but you could take it if you wanted to.

Steve

comment:3 by sgillies@…, 20 years ago

Status: newassigned
Sure, you could make me the owner of the mapscript-SWIG component.

Is it possible to get this page

http://mapserver.gis.umn.edu/bugs/describecomponents.cgi?product=MapServer

to link back to the Wiki?  So each component would have a home page of
sorts?

comment:4 by sgillies@…, 20 years ago

Resolution: fixed
Status: assignedclosed
I'm going to close this down.  It's more of a continuing issue that
a specific bug.  Will add to the wiki.

Note: See TracTickets for help on using tickets.