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
ticket to track implementation of http://mapserver.org/trunk/development/rfc/ms-rfc-79.html
Change History (10)
comment:1 by , 12 years ago
Component: | MapServer C Library → MapScript |
---|---|
Owner: | changed from | to
comment:4 by , 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 , 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 , 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 , 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:9 by , 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*
Note:
See TracTickets
for help on using tickets.
committed in r12851
off to mapscript for adding getters and setters. These only have to get/set "char* masklayer" on the layerObj.