This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options(scipen=999) | |
tool_exec <- function(in_param, out_param) | |
{ | |
#load feature class into dataset | |
#can use 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\TemplateData\\TemplateData.gdb\\USA\\states' | |
data = arc.open(path = in_param[[1]]) | |
#get subregion name from user | |
sub_region = in_param[[2]] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Script to list data sources (feature classes paths) that are served by a map service | |
as well as map document that was used for publishing a service. | |
The script will report this information for all map services on the ArcGIS Server. | |
It is required to have an Administrator level user account to be able to log in into | |
the ArcGIS Server Administrator Directory. | |
''' | |
import collections |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
import arcpy | |
fc = r'C:\Program Files (x86)\ArcGIS\Desktop10.4\TemplateData\TemplateData.gdb\USA\states' | |
#creating a defintion of a named tuple with fields from feature class | |
fields = [field.name for field in arcpy.ListFields(fc)] | |
state = namedtuple('StateFeature',field_names=fields) | |
#generating named tuples for features in feature class |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import sys | |
print(sys.version) | |
print(sys.executable) | |
import os | |
import sqlite3 | |
import arcpy | |
from time import strftime |