Symptom:
When using the MGRP command in a mapplot control file using the syntax shown in the help file the logo fails to plot.
Help file syntax:
AGGR refp,x1,y1,x2,y2,aspect
agg_name
image|agg,zone,method,contour
image,zone,method,contour
Example:
MGRP Logo,0,0
AGGR 3,-3,3,-1,5,1
AGG_logo
logo.bmp(img)
Resolution:
The problem occurs because ONLY first-level commands can begin in the first column, and all arguments need to be indented with spaces. Therefore just adding spaces (highlighted in green below) to the last two lines makes it work just fine:
MGRP Logo,0,0
AGGR 3,-3,3,-1,5,1
AGG_logo
logo.bmp(img)
Root Cause:
This points to an inherent issue with the mapplot file parser which should pick this up as a format error and inform the user saying "There is no "AGG_logo" mapplot command. Mapplot commands must start at the beginning of lines, and arguments must be indented".