|
POST
|
@x_d Are these image attachment or rasters from an image service you're trying to download?
... View more
01-04-2021
07:45 PM
|
0
|
4
|
1323
|
|
POST
|
@LeahLobsiger No, you cannot rollback or downgrade ArcGIS Pro without uninstalling/reinstalling.
... View more
01-04-2021
07:38 PM
|
3
|
0
|
8145
|
|
POST
|
@lightpro I reckon the following script can help. This is from @JakeSkinner which sends email when a feature is added to a hosted feature service. import urllib2, json, urllib, datetime, time, smtplib
from datetime import timedelta
# Variables
username = 'jskinner_CountySandbox' # AGOL Username
password = '******' # AGOL Password
URL = 'https://services1.arcgis.com/vdNDkVykv9vEWFX4/arcgis/rest/services/address_errors/FeatureServer/0/qu...' # Feature Service URL
uniqueID = 'OBJECTID' # i.e. OBJECTID
dateField = 'CreationDate' # Date field to query
hoursValue = 1 # Number of hours to check when a feature was added
fromEmail = 'test@esri.com' # Email sender
toEmail = 'test@esri.com' # Email receiver
smtpServer = 'smtp.gis.com' # SMPT Server Name
portNumber = 25 # SMTP Server port
# Create empty list for uniqueIDs
oidList = []
# Generate AGOL token
try:
print('Generating Token')
tokenURL = 'https://www.arcgis.com/sharing/rest/generateToken'
params = {'f': 'pjson', 'username': username, 'password': password, 'referer': 'http://www.arcgis.com'}
req = urllib2.Request(tokenURL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
token = data['token']
except:
token = ''
# Query service and check if created_date time is within the last hour
params = {'f': 'pjson', 'where': "1=1", 'outfields' : '{0}, {1}'.format(uniqueID, dateField), 'returnGeometry' : 'false', 'token' : token}
req = urllib2.Request(URL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
for feat in data['features']:
createDate = feat['attributes'][dateField]
createDate = int(str(createDate)[0:-3])
t = datetime.datetime.now() - timedelta(hours=hoursValue)
t = time.mktime(t.timetuple())
if createDate > t:
oidList.append(feat['attributes'][uniqueID])
print(oidList)
# Email Info
FROM = fromEmail
TO = [toEmail]
SUBJECT = 'New Features Added'
TEXT = "Features with {0}s {1} were added.".format(uniqueID, oidList)
message = """\
From: %s
To: %s
Subject: %s
%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
# If new features exist, send email
if len(oidList) > 0:
smtpObj = smtplib.SMTP(host=smtpServer, port=portNumber)
smtpObj.sendmail(FROM, TO, message)
print "Successfully sent email"
smtpObj.quit() The other option is using webhooks. You can use a webhook for feature service view (tile, scene, etc.), to receive notification for updates. https://www.esri.com/arcgis-blog/products/arcgis-online/sharing-collaboration/how-to-create-a-hosted-feature-service-webhook/ I hope these give you some ideas. Cheers Mehdi ====================================================================== Please give a like if helpful and Accept as Solution if it's answered your query.
... View more
01-04-2021
06:56 PM
|
3
|
1
|
1194
|
|
POST
|
@Alex_Gole No it doesn't. These are the steps required for items to be cloned properly: Items Copying items consists of multiple steps as explained in the following section of the sample: For each user create a mapping of itemId to the Item Prepare sharing information for each item Print a mapping of item and its group membership Copy items one by one Establish relationship between items
... View more
01-04-2021
05:40 PM
|
1
|
1
|
3121
|
|
POST
|
@glewi3 , Unfortunately, you can't create / add data stores for an Image Server with ArcGIS Pro. You can only edit and manage the registered ones though.
... View more
01-04-2021
05:27 PM
|
1
|
0
|
581
|
|
POST
|
@glewi3 If you have ArcGIS Image Server installed, go to ArcGIS Server Manager > Site > Data Stores > Database and create / register Raster Store. The path can be a shared folder.
... View more
01-03-2021
09:31 PM
|
1
|
2
|
6111
|
|
POST
|
Hi @glewi3 What version of API are you using? I'm getting the same error in 1.8.1 however I tested it in 1.8.3 and it's working. I can recommend to upgrade your ArcGIS API for Python version to 1.8.3 and it should work.
... View more
01-03-2021
07:23 PM
|
0
|
7
|
6132
|
|
POST
|
Hi @Alex_Gole , One of the requirements of cloning is establishing the same relationship between source and target items. The following link provides a useful step by step process of establishing relationships when cloning (section: Establish relationship between items); https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/#establish-relationship-between-items
... View more
01-03-2021
05:16 PM
|
2
|
0
|
3131
|
|
POST
|
@DavidColey The documentation was released 3 days ago. https://github.com/Esri/arcgis-python-api and as @Anonymous User said, you can access V1.8.3 once you upgrade to ArcGIS Pro 2.7.
... View more
12-17-2020
05:13 PM
|
2
|
0
|
2239
|
|
POST
|
Glad to hear that, @JoseSanchez . Please mark as helpful if you find it helpful. If it answered your question please mark it as answered. Thanks
... View more
12-17-2020
04:36 PM
|
0
|
0
|
980
|
|
POST
|
Hi @JoseSanchez , The link below provides an example that shows how to map fields with different names: https://community.esri.com/t5/python-questions/append-tool-and-field-mapping-help-examples/td-p/427282
... View more
12-15-2020
04:41 PM
|
0
|
2
|
990
|
|
POST
|
@Jay_Gregory You can also input shapefiles in sdf = pd.DataFrame.spatial.from_featureclass("shapefiles or gdb fc"). If you use the following line, it publishes the spatially enabled dataframe to AGOL or Portal to a folder you specify. hosted_feature_lyr = sdf.spatial.to_featurelayer('feature_layer_name', folder='folder_name')
... View more
12-14-2020
05:01 PM
|
0
|
0
|
4137
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-16-2021 09:38 PM | |
| 1 | 03-17-2024 06:09 PM | |
| 1 | 11-10-2020 04:59 PM | |
| 1 | 02-08-2021 09:29 PM | |
| 1 | 02-17-2021 04:47 PM |