Geographic Information Systems Asked on August 6, 2021
I have a set of census polygons (P1… P4) containing population information, and I’m building a tool using the ArcGIS Server JavaScript API whereby the user can draw an arbitrary shape:
I need to estimate the population of the arbitrary shape, by apportioning the values from the census polygons (no weighting is required, so it’s acceptable to assume an even population distribution across the polygons).
Is this possible using JavaScript in the client, or will I need to perform the calculations on the server using the GeoProcessing framework?
You could probably take advantage of the client-side GeometryEngine. Use the cut
method to cut the census polygons, then use geodesicArea
or planarArea
(depending on your projection) to get the areas of each cut feature.
https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html
Correct answer by Bjorn Svensson on August 6, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP