MeasureLineLength_m function
Prototype: |
function MeasureLineLength_m(const ID_ :Integer) : variant; |
|
Description: |
Measure line length from shapefile. |
|
Syntax: |
variable := Layer.MeasureLineLength_m(SearchLineID); |
|
Part |
Description |
|
variable |
A variable declared as a variant |
|
Layer |
A reference to a Field-Map layer as defined in Field-Map Project Manager |
|
SearchLineID |
An identification of a reference lines for which length are to be found |
|
Return value: |
a numeric variant |
|
Example:
var
len_: variant;
begin
Lines.First;
while not Lines.EOF do
begin
len_:=Lines.MeasureLineLength_m(Lines['ID']);
if len_<>NULL then begin
Lines.Edit;
Lines['Length_m']:=RoundTo(double(len_),-3);
Lines.Post;
end;
end;
end.
See also:
GisLayerReference; ShapeRecordCount; GetParentPolygonArea_m2; FindIntersectingPolygons; GetIntersectingPolygonAreas; FindContainedPointsOrCentroids; FindLinesIntersectingPolygon; FindClosestLine; FindPolygonContainingPoint; FindPolygonContainingPointByCoords; AddPoint; AddLine; AddPolygon; AddCentroid; AddPolygonWithCentroid; AddCircularPolygonWithCentroid; SplitMultiPolygon; DeletePoint; DeleteLine; DeletePolygon; DeletePolygonsKeepCentroidsAndAttributes; SaveShapesToBlobs; UpdateSymbolAndLabelInShapefiles; CreatePointsAlongLine; RefreshMap; RefreshMapRectangle; ZoomAndSelect; ZoomAndSelectEntity; SelectEntities; ZoomToLayerExtent; MeasureLineLength_m; MeasurePolygonArea_m2; GetLineCoordinates; GetPolygonCoordinates; GisEntityExists; GetCombinedPolygonsCoordinates; SelectLine
© 2024 IFER-Monitoring and Mapping Solutions