remove credentials
"import arcpy"
]
},
- {
- "cell_type": "code",
- "execution_count": 3,
- "metadata": {},
- "outputs": [],
- "source": [
- "gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"amazing_arcgis_123\", verify_cert=False)"
- ]
- },
{
"cell_type": "code",
"execution_count": 3,
" - `geodesic` - Use this type if you want to calculate an area or length using only the vertices of the `Polygon` and define the lines between the points as geodesic segments independent of the actual shape of the `Polygon`. A geodesic segment is the shortest path between two points on an ellipsoid.\n",
" - `preserveShape` - This type calculates the area or length of the geometry on the surface of the Earth ellipsoid. The shape of the geometry in its coordinate system is preserved.\n",
" \n",
- "Let's look at two use cases below:"
+ "There are other optional parameters to be specify in the input arguments. For more information, check out the <a href=\"https://developers.arcgis.com/python/api-reference/arcgis.geometry.functions.html?highlight=areas_and_lengths#arcgis.geometry.functions.areas_and_lengths\">API ref</a>. Now let's look at two use cases below:"
]
},
{
"res"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Also note that, when `future` is set to True, the `areas_and_lengths` function will return a `GeometryJob` object which indicates the job is processed asynchronously. When the job is done, querying its result will bring out a `dict` object of `areas`, and `lengths` for the list of polygons."
+ ]
+ },
{
"cell_type": "code",
"execution_count": 29,
