Zum Hauptinhalt gehen

AreasandLengthsTask - Results Varialbe Type

Kommentare

2 Kommentare

  • Permanently deleted user

    Let me summerize your issue and give my thought.

    1. Given: An attribute of the feature has a value '100', which unit 'square of foot' as the area coverage of the polygon. Say, areaOfFeature = 100.

    2. Given: 'AreasAndLengthsTask' activity returns a Results (say to 'areasGraphics' which should have a type 'ESRI.ArcGIS.Client.Tasks.AreaAndLengths', and you set 'Area Unit' as 'ESRI.ArcGIS.Client.Tasks.LinearUnit.Foot'.

        Then you can assign to a new variable called 'area' whose is Double with 'areasGraphics.Areas.FirstOrDefault()'. So area = areasGraphics.Areas.FirstOrDefault(). Say it set 'area' = 101

    3. So now you can compare with two values: (1) areaOfFeature = 100, (2) area = 101 when those 100 and 101 are the same Unit as square of foot.

    M Gim

    0
  • Permanently deleted user

    Thanks Munwhan,

    Worked like a charm.

    Walter

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.