"selectShapeVarAsShapeName"
Sets the entries of a selected Field (Column inside the .dbf file) as names for the shapes of a layer.
Synopsis
void selectShapeVarAsShapeName(string strLayer, string strVarName);
Parameters
Parameter | Description |
---|---|
strLayer | The layer whose shape field text should be shown as a text. |
strVarName | The shape field whose text should be shown as a text in the map. |
Description
The function selectShapeVarAsShapeName() sets the entries of a selected Field (Column inside the .dbf file) as names for the shapes of a layer. Only if the shapes are multi polygon objects, the names of the objects will be displayed inside the GIS Viewer.
Example
Selects the field "NAME" of the .dbf file and writes the values shape names of the layer "COUNTRY".
main()
{
GisViewer_ewo1.selectShapeVarAsShapeName("COUNTRY", "NAME");
}
Assignment
GIS Viewer