|
POST
|
If you haven't done so already, I suggest you read About joining and relating tables—ArcMap | Documentation (arcgis.com). You mention "my related table," have you set up a table relation in the software between the two tables, or are you just talking about two tables that are related logically but you haven't created a formal relation between them in ArcMap?
... View more
05-26-2021
08:29 AM
|
0
|
1
|
2416
|
|
POST
|
I have no problem changing defaults when there is a compelling reason, but I don't think that is the case here. Having a single ArcSOC running all the time on each machine for publishing has little to no impact on ArcGIS Server on a machine, so I would leave well enough alone.
... View more
05-25-2021
08:06 AM
|
0
|
0
|
3550
|
|
BLOG
|
Given that Esri's own GitHub repository for Resource Proxy states, "We don't recommend using this resource proxy. It is not being maintained and there's been no active development for many years," I don't think it should be included in this blog post.
... View more
05-19-2021
01:11 PM
|
3
|
0
|
37130
|
|
POST
|
Use a ServicesDirectory object as your GIS: >>> import re
>>> import arcgis
>>> arcgis.__version__
'1.8.5'
>>>
>>> from arcgis.features import FeatureLayer
>>> from arcgis.gis.server import ServicesDirectory
>>>
>>> svc_url = r"https://localhost.localdomain/arcgis/rest/services/someMapService/MapServer"
>>> sd = ServicesDirectory(re.search(r"(http.*/rest/services)", svc_url).group(1))
>>> fl = FeatureLayer(svc_url, gis=sd)
>>>
... View more
05-18-2021
10:26 AM
|
0
|
2
|
6558
|
|
POST
|
If the service is unsecured, i.e., no authentication necessary, the following should work: >>> import arcgis
>>> arcgis.__version__
'1.8.5'
>>>
>>> from arcgis.features import FeatureLayer
>>>
>>> svc_url = r"https://localhost.localdomain/arcgis/rest/services/SomeMapService/MapServer"
>>> fl = FeatureLayer(svc_url)
>>> fl.properties
... View more
05-18-2021
09:25 AM
|
0
|
4
|
6567
|
|
POST
|
You say the environment is secured, but is the service secured as well? That is, do you have to authenticate with GIS Server to access the service or can you access it anonymously when inside the environment?
... View more
05-18-2021
08:23 AM
|
0
|
6
|
6582
|
|
POST
|
It helps to share a code snippet that replicates the error and the exact error message. The example above is for connecting to a Portal/AGOL layer, and you are talking about stand-alone ArcGIS Server. It may be the same code works, but it very well may not.
... View more
05-17-2021
07:08 AM
|
0
|
2
|
10715
|
|
POST
|
It is much easier with multi-group ranking to use cursors rather than Field Calculator. Something like this in the interactive Python window should work: lyr = # name of layer or path to feature class or table
sql = "ORDER BY watershed, county, score desc"
flds = ["watershed", "county", "Rank_win_WatershedCounty"]
with arcpy.da.UpdateCursor(lyr, flds, sql_clause=(None,sql)) as cur:
cnt = 1
row = next(cur)
cur.updateRow(row[0:2] + [cnt])
row_prev = row
for row in cur:
if row[0:2]==row_prev[0:2]:
cnt += 1
else:
cnt = 1
cur.updateRow(row[0:2] + [cnt])
row_prev = row
... View more
05-13-2021
04:02 PM
|
1
|
0
|
2402
|
|
POST
|
License compliance with ArcGIS Enterprise is mostly a paper exercise. For example, ArcGIS Server installer and software does not check or enforce number of cores licensed, so a 4-core license can be activated on a machine with more than 4 cores and all the cores will be used. Just because it can be done, i.e., using a 4-core license on a machine with more than 4 cores, it doesn't make it legal. There is no technical way to deauthorize an ArcGIS Server license and return it to Esri. Everything you will find online about deauthorizing licenses will be for ArcGIS Desktop/Pro products or the license managers that serve ArcGIS Desktop/Pro products. An ArcGIS Server license can be backed up and transferred to another deployment or restored to a rebuilt deployment, but I won't provide specifics here since the steps aren't documented publicly. I suggest contacting Esri Support and asking them how to backup and restore your ArcGIS Server license.
... View more
05-13-2021
08:00 AM
|
3
|
0
|
3867
|
|
POST
|
Just use Add Field (Data Management)—ArcMap | Documentation (arcgis.com) upstream of the code snippet I provided, and then adjust the cursor to work with the necessary fields.
... View more
05-11-2021
06:36 PM
|
1
|
1
|
4014
|
|
POST
|
Something like this should work in the interactive Python window: lyr = # name of layer or path to data set
with arcpy.da.UpdateCursor(lyr, "UNIQUEID", sql_clause=(None, "ORDER BY UNIQUEID")) as cur:
cnt = 1
uid, = next(cur)
cur.updateRow(["{}{:02}".format(uid,cnt)])
uid_prev = uid
for uid, in cur:
if uid == uid_prev:
cnt += 1
else:
cnt = 1
cur.updateRow(["{}{:02}".format(uid,cnt)])
uid_prev = uid
... View more
05-11-2021
06:56 AM
|
1
|
1
|
4027
|
|
POST
|
As of this morning, or "tomorrow" relative to yesterday's comment, it still isn't showing up. Maybe tomorrow will be the day.
... View more
05-06-2021
08:06 AM
|
0
|
1
|
2704
|
|
POST
|
Is the error message in err, i.e., do you really have Pro 2.7.x installed and the Pro SDK installer thinks you still have Pro 2.4 installed? If the error message is correct, then either upgrade Pro to 2.7.x or get the Pro 2.4 SDK.
... View more
05-04-2021
07:58 AM
|
0
|
1
|
5485
|
|
POST
|
I am in the same boat as Dan, i.e., using Pro 2.8 beta (beta 1, not beta 2). If I get a chance to test on a 2.7.x machine, I will let you know.
... View more
05-03-2021
07:31 AM
|
1
|
1
|
4561
|
|
POST
|
Seeing there are existing tools to accomplish this task, and yet you want to write it on your own without explaining why, it seems like this may be a question for school/studies. If you can provide a reason why you have to write it in Python yourself, people may be more willing to help or offer additional suggestions.
... View more
05-03-2021
07:29 AM
|
0
|
0
|
2202
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | a month ago | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|