|
1289 | 1289 | "> The ArcGIS API for Python installs on all `macOS` and `Linux` machines, as well as those `Windows` machines not using Python interpreters that have access to `ArcPy` will only be able to write out to shapefile format with the `to_featureclass` method. Writing to file geodatabases requires the `ArcPy` site-package."
|
1290 | 1290 | ]
|
1291 | 1291 | },
|
1292 |
| - { |
1293 |
| - "cell_type": "markdown", |
1294 |
| - "metadata": {}, |
1295 |
| - "source": [ |
1296 |
| - "#### Example: Export dataset to a featureclass in FileGDB:" |
1297 |
| - ] |
1298 |
| - }, |
1299 |
| - { |
1300 |
| - "cell_type": "code", |
1301 |
| - "execution_count": 23, |
1302 |
| - "metadata": {}, |
1303 |
| - "outputs": [], |
1304 |
| - "source": [ |
1305 |
| - "sdf.spatial.to_featureclass(location=r\"c:\\output_examples\\census.gdb\\cities\");" |
1306 |
| - ] |
1307 |
| - }, |
1308 | 1292 | {
|
1309 | 1293 | "cell_type": "markdown",
|
1310 | 1294 | "metadata": {},
|
|
1352 | 1336 | "sdf[columns].head().spatial.to_featureclass(location=r\"/path/to/your/data/directory/sdf_head_output.shp\")"
|
1353 | 1337 | ]
|
1354 | 1338 | },
|
| 1339 | + { |
| 1340 | + "cell_type": "markdown", |
| 1341 | + "metadata": {}, |
| 1342 | + "source": [ |
| 1343 | + "#### Example: Export dataset to a featureclass in FileGDB:" |
| 1344 | + ] |
| 1345 | + }, |
| 1346 | + { |
| 1347 | + "cell_type": "code", |
| 1348 | + "execution_count": 23, |
| 1349 | + "metadata": {}, |
| 1350 | + "outputs": [], |
| 1351 | + "source": [ |
| 1352 | + "sdf.spatial.to_featureclass(location=r\"c:\\output_examples\\census.gdb\\cities\");" |
| 1353 | + ] |
| 1354 | + }, |
1355 | 1355 | {
|
1356 | 1356 | "cell_type": "markdown",
|
1357 | 1357 | "metadata": {},
|
|
1365 | 1365 | },
|
1366 | 1366 | {
|
1367 | 1367 | "cell_type": "code",
|
1368 |
| - "execution_count": 9, |
| 1368 | + "execution_count": 7, |
1369 | 1369 | "metadata": {},
|
1370 | 1370 | "outputs": [
|
1371 | 1371 | {
|
1372 | 1372 | "data": {
|
1373 | 1373 | "text/html": [
|
1374 | 1374 | "<div class=\"item_container\" style=\"height: auto; overflow: hidden; border: 1px solid #cfcfcf; border-radius: 2px; background: #f6fafa; line-height: 1.21429em; padding: 10px;\">\n",
|
1375 | 1375 | " <div class=\"item_left\" style=\"width: 210px; float: left;\">\n",
|
1376 |
| - " <a href='https://deldev.maps.arcgis.com/home/item.html?id=34522a1267904b9c9c5ad1be2e5e97af' target='_blank'>\n", |
| 1376 | + " <a href='https://geosaurus.maps.arcgis.com/home/item.html?id=95455c26d51d4fcaaf4cb88cfe7d5293' target='_blank'>\n", |
1377 | 1377 | " <img src='http://static.arcgis.com/images/desktopapp.png' class=\"itemThumbnail\">\n",
|
1378 | 1378 | " </a>\n",
|
1379 | 1379 | " </div>\n",
|
1380 | 1380 | "\n",
|
1381 | 1381 | " <div class=\"item_right\" style=\"float: none; width: auto; overflow: hidden;\">\n",
|
1382 |
| - " <a href='https://deldev.maps.arcgis.com/home/item.html?id=34522a1267904b9c9c5ad1be2e5e97af' target='_blank'><b>cities</b>\n", |
| 1382 | + " <a href='https://geosaurus.maps.arcgis.com/home/item.html?id=95455c26d51d4fcaaf4cb88cfe7d5293' target='_blank'><b>census_cities</b>\n", |
1383 | 1383 | " </a>\n",
|
1384 |
| - " <br/><img src='https://deldev.maps.arcgis.com/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\">Feature Layer Collection by demos_deldev\n", |
1385 |
| - " <br/>Last Modified: September 05, 2019\n", |
| 1384 | + " <br/><img src='https://geosaurus.maps.arcgis.com/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\">Feature Layer Collection by api_data_owner\n", |
| 1385 | + " <br/>Last Modified: September 11, 2019\n", |
1386 | 1386 | " <br/>0 comments, 0 views\n",
|
1387 | 1387 | " </div>\n",
|
1388 | 1388 | " </div>\n",
|
1389 | 1389 | " "
|
1390 | 1390 | ],
|
1391 | 1391 | "text/plain": [
|
1392 |
| - "<Item title:\"cities\" type:Feature Layer Collection owner:demos_deldev>" |
| 1392 | + "<Item title:\"census_cities\" type:Feature Layer Collection owner:api_data_owner>" |
1393 | 1393 | ]
|
1394 | 1394 | },
|
1395 |
| - "execution_count": 9, |
| 1395 | + "execution_count": 7, |
1396 | 1396 | "metadata": {},
|
1397 | 1397 | "output_type": "execute_result"
|
1398 | 1398 | }
|
1399 | 1399 | ],
|
1400 | 1400 | "source": [
|
1401 |
| - "lyr = sdf.spatial.to_featurelayer('cities', folder='census')\n", |
| 1401 | + "lyr = sdf.spatial.to_featurelayer('census_cities', folder='census')\n", |
1402 | 1402 | "lyr"
|
1403 | 1403 | ]
|
1404 | 1404 | },
|
|
0 commit comments