Skip to content
Permalink
Browse files
Ticket #5917 Dont fail when rendering UTFGrid with outline
  • Loading branch information
Charles Plante authored and dmorissette committed Nov 12, 2019
1 parent 0fcc810 commit e1a3b57b99667fbbf26a4aee53cd0cc2548370c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
@@ -667,7 +667,10 @@ int utfgridRenderLine(imageObj *img, shapeObj *lineshape, strokeStyleObj *linest

/* utfvalue is set to 0 if the shape isn't in the table. */
if(r->utfvalue == 0) {
return MS_FAILURE;
return MS_SUCCESS;
/* If we dont get a caracter to draw we just skip execution
* instead of failing
*/
}

/* Render the line */
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!!! "," !!!!!!!!!!!!!!! "," !!!!!!!!!!!!!!!!!!!!!!!!! "," !!!!!!!!!!!!!!!!!!!!! !!! "," !!!!!!!!!!!! !!! "," !!!! !!! "," !!! !!! "," !! !! "," !! $$$ "," !!! $$$$$$$ "," !!! $$$$ $$$$$ !! "," !! $$$$ $$$$ !! "," !!! $$$$$ $$ !! ### "," !!! $$$$ !! ##### "," !! $$$$$ !! ##### "," !! $$$$$ !!! ###### "," !!! $$$$ !!! ##### "," !!! $$$$$ !!! #### "," !! $$$$ !! ### "," !! $$$$$ !! ### ","!!! $$$$$ !! ### ","!!! $$$$ !! #### ##","!! $$$$$ !! #### ##","!! $$$$ !!!! #### ###","!! $$$ !!!!!!! ### ####","!! $$ !!!!!!!! ###### ### ","!!!! !!!!!!!! ######## ### ","!!!!!!! !!!!!!!! ###### ### "," !!!!!!! !!!!!!!! #### ## "," !!!!!! !!!!!!!! #### ## "," !!!!!!! !!!!!!!! ####### ## "," !!!!!!!!!!!!! ########### ### "," !!!!!!!! ############# "," !!! ####### "," # "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "],"keys":["","1","2","3"],"data":{}}
@@ -1,6 +1,7 @@
# RUN_PARMS: line_label_auto.png [SHP2IMG] -m [MAPFILE] -i png -o [RESULT]
# RUN_PARMS: line_label_auto.pdf [SHP2IMG] -m [MAPFILE] -i pdf -o [RESULT]
# RUN_PARMS: line_label_auto.svg [SHP2IMG] -m [MAPFILE] -i svg -o [RESULT]
# RUN_PARMS: line_label_auto.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
# RUN_PARMS: line_label_auto.cairo.png [SHP2IMG] -m [MAPFILE] -i cairopng -o [RESULT]
#
map
@@ -41,3 +42,4 @@ layer
end

end

0 comments on commit e1a3b57

Please sign in to comment.