"showShapesWildcard"

Shows shapes by wildcard.

Synopsis

void showShapesWildcard( string strLayer, string strField, string strVarValue, double dMinRange, double dMaxRange, bool bVisible);

Parameters

Parameter Description
strLayer The layer whose shapes should be displayed
strField The name of the shape field. The 'strVarValue' will be compared to the value of this specified field.
strVarValue The shape meaning the 'strVarValue' will be compared to the value of the specified field.
dMinRange Minimum range for the numerical comparison.
dMaxRange Maximum range for the numerical comparison
bVisible

TRUE = shapes will be displayed

FALSE = shapes will not be displayed

Description

Shows shapes by wildcard.

The wildcard works in one of two ways.

  1. When (strVarValue != "") the 'strStringValue' will be compared to the value of the specified field

  2. When (strVarValue == "") then a numerical comparison is executed. Match is found when the numerical value of the field is within this range.

Example

Hides the shape Helsinki and then shows it again.

Hides the shape Helsinki:

main()
{
  GisViewer_ewo1.showShapesWildcard("cities", "NAME", "Helsink*", 0, 0, FALSE );
}

Shows the shape Helsinki:

main()
{
  GisViewer_ewo1.showShapesWildcard("cities", "NAME", "Helsink*", 0, 0, TRUE );
}

Assignment

GIS Viewer