Guest User

Untitled

a guest
Jan 16th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. // buildingFootprints represents the buildings that intersect the clicked parcel
  2. var buildingFootprints = Intersects($feature, FeatureSetByName($map, "Building Footprints"));
  3. var totalArea = 0;
  4.  
  5. // since a building may have multiple floors, we must multiply the floor area by the number
  6. // of floors. Also note the building data shows some buildings in dense areas as crossing
  7. // multiple polygons. To avoid miscalculation, we calculate the intersection of the building.
  8. for (var building in buildingFootprints){
  9. var floors = IIF(building.FLOORCOUNT == 0, 1, building.FLOORCOUNT);
  10. totalArea += ( AreaGeodetic( Intersection(building, $feature), 'square-feet') * floors );
  11. }
  12. // Compute the ratio of the gross building area to the parcel area
  13. Round( ( totalArea / AreaGeodetic($feature, 'square-feet') ), 1);
Add Comment
Please, Sign In to add comment