Opened 22 years ago

Closed 20 years ago

#241 closed enhancement (fixed)

Add support to dynamic symbols.

Reported by: v@… Owned by: sgillies@…
Priority: high Milestone: 4.4 release
Component: MapScript-PHP Version: 4.1
Severity: minor Keywords:
Cc: sgillies@…

Description

I'd like to see a SymbolObj in PHP/Mapscript.

I need to create symbology on the fly, and this would be very helpful to avoid 
messing with new symbolfiles, etc.

Change History (15)

comment:1 by dmorissette, 22 years ago

Cc: assefa@… lacroix@… added
This is a very legit request, but unfortunately given our long list of 
priorities I'm not sure we can make this happen for 3.7.  I just wanted to warn 
you in advance... but if we can find time to do it then we will.

comment:2 by dmorissette, 22 years ago

Cc: steve.lime@… added
Steve Lime wrote:
> 
> Symbols have been allowed in map files for several versions. You'd just
> need to write wrapper code for the symbolObj. With the Swig'd version
> all we need is to expose the symbol header file and add a constructor.
> 

comment:3 by dmorissette, 21 years ago

Version: 3.64.1

comment:4 by dmorissette, 21 years ago

No time in 4.0, let's try to do this in 4.1

comment:5 by dmorissette, 21 years ago

Cc: sfournier@… added

comment:6 by dmorissette, 21 years ago

*** Bug 144 has been marked as a duplicate of this bug. ***

comment:7 by assefa, 20 years ago

Resolution: fixed
Status: newclosed
PHP/Mapscript has now a support for createing and setting a symbol object. 
Please refer to the README for details.

Meking this bug as Fixed.



comment:8 by sdlime, 20 years ago

Cc: sgillies@… added
Resolution: fixed
Status: closedreopened
I don't believe SWIG/MapScript has been updated though. Re-opening bug until 
that can be confirmed. The implementations should match as well.

Steve 

comment:9 by dmorissette, 20 years ago

Milestone: 4.2 release

comment:10 by dmorissette, 20 years ago

Nice catch, Steve.  :)

comment:11 by sgillies@…, 20 years ago

I'm working on this in SWIG mapscript under issue 579.

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=579

Steve, you want the implementations to match, and I'm doing my
best, but there is one break that I am making.

PHP-mapscript has setpoints() and getpointsarray() that use
arrays of x, y values.  Now, arrays are problematic for SWIG
since they require a different implementation for every
language.  So we're not using arrays in the SWIG mapscript,
but are instead using lineObj for the POINTS of a vector
symbol.  Makes good syntactic sense as well, IMO.

You can see the API for the new classes and methods as they
develop in mapscript/doc/mapscript.txt or online at

http://users.frii.com/sgillies/projects/mapscript/mapscript.html#symbolobj

comment:12 by dmorissette, 20 years ago

Milestone: 4.2 release4.4 release

comment:13 by dmorissette, 20 years ago

Cc: dmorissette@… added; sfournier@… removed
Owner: changed from dmorissette@… to sgillies@…
Status: reopenednew
I believe this bug was reopened for Sean to update SWIG. Has this been done?

comment:14 by sgillies@…, 20 years ago

Yes, SWIG mapscripts have had dynamic symbols since 4.2.0.

comment:15 by dmorissette, 20 years ago

Resolution: fixed
Status: newclosed
Marking fixed then.
Note: See TracTickets for help on using tickets.