Syntax Highlighing:
comments, key words, predefined symbols, class members & methods, functions & classes
# ConQry
# Line CartoScript to set different line styles
# for major and minor elevation contours
# where contour interval is in feet.
# Script from Using CartoScripts tutorial.
# Read contour elevation and convert to feet
elevm = Internal.MinZ;
elevft = round(elevm * 3.28084);
# Use modulo operator to identify contour elevations
# that are not evenly divisible by 200 (nonzero remainder)
rem = elevft % 200;
# Define widths for minor and major contours
if (rem <> 0) then width = 2;
else width = 6;
# Set line color and width and draw line
LineStyleSetColor(170,85,0);
LineStyleSetLineWidth(width);
LineStyleDrawLine();