GridInflection

Description

A GridInflection element defines a style for a grid inflection point. A grid inflection point indicates that a cell with the specified value should be rendered with the specified color.

Context

Table 1 lists the elements that can contain, or be contained by, a GridInflection element.

Table 1. Context
Contained by Element Contains

GridInflectionList

GridInflection

(empty)

Attributes

Table 2 lists the attributes of a GridInflection element.

Table 2. Attributes
Attribute Description

value

Represents a Float value specifying the value of the grid inflection point.

Note: This attribute is required.

color

Represents a String value specifying the color of the grid inflection point.

The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.)

Note: This attribute is required.

Example

This example specifies a grid image style that contains a collection of three grid inflection points.

<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
    version="MXP_WorkSpace_1_5"
    xmlns="http://www.mapinfo.com/mxp">
    <GridStyle
        id="migridstyle"
        name="migridstyle"
        contrast="0.5"
        brightness="0.5"
        opacity="1"
        grayscale="false"
        show-hillshade="false"
        null-color="black"
        null-transparent="true"/>
    <GridInflectionList>
        <GridInflection
		value="0.4"
		color="yellow"/>
        <GridInflection
		value="0.5"
		color="green"/>
        <GridInflection
		value="0.6"
		color="blue"/>
    </GridInflectionList>
</GridStyle>undefinedundefined</NamedStyle>