Opened 22 years ago
Closed 20 years ago
#241 closed enhancement (fixed)
Add support to dynamic symbols.
Reported by: | Owned by: | ||
---|---|---|---|
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:2 by , 22 years ago
Cc: | 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 , 21 years ago
Version: | 3.6 → 4.1 |
---|
comment:5 by , 21 years ago
Cc: | added |
---|
comment:7 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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 , 20 years ago
Cc: | added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
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 , 20 years ago
Milestone: | → 4.2 release |
---|
comment:11 by , 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 , 20 years ago
Milestone: | 4.2 release → 4.4 release |
---|
comment:13 by , 20 years ago
Cc: | added; removed |
---|---|
Owner: | changed from | to
Status: | reopened → new |
I believe this bug was reopened for Sean to update SWIG. Has this been done?
Note:
See TracTickets
for help on using tickets.