Opened 21 years ago

Closed 21 years ago

#298 closed defect (worksforme)

point->draw crashes with new styles in map file

Reported by: kafka@… Owned by: assefa
Priority: highest Milestone:
Component: MapScript-PHP Version: 4.0
Severity: normal Keywords:
Cc:

Description

Function 
$P->draw($mymap, $mylyr, $img, 0, "abcd"); 
crashes when using new STYLE syntax in mapfile. With old one it works well.
But labels aren't drawn on the map in both cases.

Change History (4)

comment:1 by dmorissette, 21 years ago

Cc: morissette@… added
Owner: changed from morissette@… to assefa
Priority: highhighest
Assefa, could you please have a look at this.

comment:2 by assefa, 21 years ago

Resolution: fixed
Status: newclosed
I tested this and do not get a crash with both types of mapfile(3.6 and 4.0).

For the label to appear, you should set the label cache on the layer to off :

$oLayer->set("labelcache", MS_OFF);
$oPoint->draw($oMap, $oLayer, $oImage, 0, "abcd");

I am closing this bug. If You can still reporduce it, I will test it with
your mapfile and data.

comment:3 by dmorissette, 21 years ago

Resolution: fixed
Status: closedreopened
Actually, we should not mark the bug fixed since we were not able to 
reproduce... reopening to mark as WORKSFORME.

Stephan, please reopen if you can still reproduce it with the latest MapScript 
and attach a mapfile and full details to reproduce.

comment:4 by dmorissette, 21 years ago

Resolution: worksforme
Status: reopenedclosed
Note: See TracTickets for help on using tickets.