"getShapeXCoordinate"

Returns the X coordinate for the specified shape.

Synopsis

double getShapeXCoordinate(string strLayer, int iIndex);

Parameters

Parameter Description
strLayer The layer whose shape coordinate should be returned.
iIndex The index of the shape whose X coordinate should be returned.

Description

Returns the X coordinate for the specified shape.

Example

Returns the X and Y coordinates for the shape with the index 0 of the layer "EWO".

main()
{
  double x, y;
  DebugN("X: ", x = GisViewer_ewo1.getShapeXCoordinate("EWO", 0));
  DebugN("Y: ", y = GisViewer_ewo1.getShapeYCoordinate("EWO", 0));
}

Assignment

GIS Viewer

See also

"getShapeNameInLayer", "getShapeYCoordinate"