TransWikia.com

Calculating apportionment on the client-side in JavaScript map?

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:

copied from https://developers.arcgis.com/rest/geoenrichment/api-reference/data-apportionment.htm

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?

One Answer

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

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP