Opened 12 years ago

Last modified 12 years ago

#4111 new enhancement

Add layer mask

Reported by: tbonfort Owned by: aboudreault
Priority: normal Milestone: 6.2 release
Component: MapScript Version: unspecified
Severity: normal Keywords:
Cc: aboudreault

Description

Change History (10)

comment:1 by tbonfort, 12 years ago

Component: MapServer C LibraryMapScript
Owner: changed from tbonfort to aboudreault

committed in r12851

off to mapscript for adding getters and setters. These only have to get/set "char* masklayer" on the layerObj.

comment:2 by tbonfort, 12 years ago

tests added in r12852

comment:3 by aboudreault, 12 years ago

Added PHP mapscript getter/setter in r12868.

comment:4 by fake, 12 years ago

i just hit the

TODO: check the png24 format hasn't been tampered with, i.e. it's agg

in mapdraw.c, line 713.

not nice, causes pretty silent segfaults..

comment:5 by fake, 12 years ago

that is, i get segfaults even when my png24 outputformat has not been tampered with, but i choose an outputformat other than png24.

comment:6 by tbonfort, 12 years ago

the autotests use a raster layer and all the possible renderers, so there's something else causing your problem. a backtrace could help.

comment:7 by fake, 12 years ago

here we go:

Starting program: /home/fake/mapserver-trunk/shp2img -m oceans.map -o test.png
[Thread debugging using libthread_db enabled]
msDrawMap(): rendering using outputformat named png (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawMap(): Layer 0 (Oceans-Polygon), 0.040s

Program received signal SIGSEGV, Segmentation fault.
0x000000000043242d in msImageCreate (width=512, height=512, format=0x8a5f50, imagepath=0x8a3ca0 "/data/maps/ms_tmp/", 
    imageurl=0x8a3cc0 "/ms_tmp/", resolution=72, defresolution=72, bg=0x0) at maputil.c:1468
1468	    	image = format->vtable->createImage(width,height,format,bg);
(gdb) bt
#0  0x000000000043242d in msImageCreate (width=512, height=512, format=0x8a5f50, imagepath=0x8a3ca0 "/data/maps/ms_tmp/", 
    imageurl=0x8a3cc0 "/ms_tmp/", resolution=72, defresolution=72, bg=0x0) at maputil.c:1468
#1  0x000000000045e6b8 in msDrawLayer (map=0x80d480, layer=0x81b050, image=0x8a3d50) at mapdraw.c:714
#2  0x000000000045d86c in msDrawMap (map=0x80d480, querymap=0) at mapdraw.c:434
#3  0x0000000000413600 in main (argc=5, argv=0x7fffffffe648) at shp2img.c:299

comment:8 by tbonfort, 12 years ago

output of "print format->vtable->createImage" in gdb ?

comment:9 by fake, 12 years ago

Program received signal SIGSEGV, Segmentation fault.
0x000000000043242d in msImageCreate (width=512, height=512, format=0x928cf0, imagepath=0x8b0bd0 "/data/maps/ms_tmp/", 
    imageurl=0x8b0bf0 "/ms_tmp/", resolution=72, defresolution=72, bg=0x0) at maputil.c:1468
1468	    	image = format->vtable->createImage(width,height,format,bg);
(gdb) print format->vtable->createImage
Cannot access memory at address 0x118
(gdb) print format->vtable
$1 = (rendererVTableObj *) 0x0
(gdb) print format
$2 = (outputFormatObj *) 0x928cf0

*confused*

comment:10 by tbonfort, 12 years ago

fixed in r12899

Note: See TracTickets for help on using tickets.