POST
|
Are there a lot of different substrings you want to replace? I'm thinking maybe you could use a Python dictionary, but that would require explicit definition of substrings and their replacements. Since the substrings aren't always replaced with the same text, you'd also have to have some sort of decision-making in the code.
... View more
04-03-2019
03:44 PM
|
0
|
5
|
1411
|
POST
|
The REPLACE function might work for this: Excel formula: Remove text by position Original text Formula New text NAP NAP 012.039 DH 00.449 LINCOLN AVE OC 21-89 =REPLACE(A1,4,12,"") NAP DH 00.449 LINCOLN AVE OC 21-89
... View more
04-03-2019
12:30 PM
|
0
|
7
|
1411
|
POST
|
I think the issue is that the replacement for 'T' has a 'T' in it, so it creates a sort of endless loop that freezes the page. The 'T' in other values like 'TSS' or 'Total Suspended solids' (depending on the order of the replace statements) will also be replaced, so that's something else to consider. Since Arcade expressions are case sensitive the lower case t's aren't affected. You could do something like this: var impParam = $feature["IMP_PARAM"];
impParam = Replace(impParam, 'T', 'turbidity');
impParam = Replace(impParam, 'FishesBio', 'Fishes bioassessments');
impParam = Replace(impParam, 'Hg-F', 'Mercury in fish tissue');
impParam = Replace(impParam, 'E.coli', 'Escherichia coli');
impParam = Replace(impParam, 'InvertBio', 'Aquatic macroinvertebrate bioassessments');
impParam = Replace(impParam, 'turbiditySS', 'Total Suspended solids');
impParam = Replace(impParam, 'turbidity', 'Turbidity');
return impParam;
... View more
03-29-2019
11:27 AM
|
3
|
6
|
902
|
POST
|
Try putting true in the "Values" field. Note that it will create an Any Value variable pointing to the If Value Is tool, so it'll look a little different from the diagram.
... View more
03-28-2019
04:00 PM
|
0
|
0
|
3032
|
POST
|
If you're using unique symbols to draw the layer, you can change the labels in the legend by going to Change Style -> Options.
... View more
03-28-2019
11:58 AM
|
0
|
1
|
270
|
POST
|
I think the proper syntax is to access the fields using their indexes, as ordered in your fields list. For example: cursorD = arcpy.da.UpdateCursor(featureclass,["month", "day", "dayoftheyear"])
for updateRowD in cursorD:
if updateRowD[0] == 1:
updateRowD[2] = updateRowD[1]
elif updateRowD[0] == 2:
updateRowD[2] = updateRowD[1] + 31
elif updateRowD[0] == 3:
updateRowD[2] = updateRowD[1] + 59
cursorD.updateRow(updateRowD)
del updateRowD
del cursorD The del statements are used to clear potential locks on the targeted feature class. You might consider creating the cursor using a with statement so that locks are cleared automatically: with arcpy.da.UpdateCursor(featureclass,["month", "day", "dayoftheyear"]) as cursorD:
for updateRowD in cursorD:
if updateRowD[0] == 1:
updateRowD[2] = updateRowD[1]
elif updateRowD[0] == 2:
updateRowD[2] = updateRowD[1] + 31
elif updateRowD[0] == 3:
updateRowD[2] = updateRowD[1] + 59
cursorD.updateRow(updateRowD) You may also want to revise your print statements, since they'll print at every row.
... View more
03-28-2019
11:07 AM
|
1
|
0
|
464
|
POST
|
If you use the Python parser you can use "\n" for new lines, like: [Field1] + "\n" + [Field2]
... View more
03-26-2019
04:25 PM
|
1
|
0
|
7240
|
POST
|
Try adjusting the "Categories" spacing in the legend properties.
... View more
03-26-2019
02:12 PM
|
1
|
0
|
1210
|
POST
|
Hm, maybe the credentials can't be modified in the way the other values can. I do notice that there aren't examples in the documentation that show changing users in the connection properties. I had some success changing a connection from an OS authentication connection to a DBMS connection, but I don't have multiple named DB users to test changing credentials.
... View more
03-25-2019
06:11 PM
|
0
|
0
|
5094
|
POST
|
Ah, right. I forgot that you're using SDE connections. To switch users I'd try modifying ['connection_info]['user'] and ['connection_info']['password']. for lyr in layers:
old_conn = lyr.connectionProperties
new_conn = old_conn
new_conn['connection_info']['user'] = new_user
new_conn['connection_info']['password'] = new_pw
lyr.updateConnectionProperties(old_conn, new_conn)
... View more
03-25-2019
01:33 PM
|
1
|
2
|
5095
|
POST
|
The issue you're having is that lyr.connectionProperties returns a dictionary but your new connection is a workspace path. You just need to access the right key in the dictionary: for lyr in grouplayers:
old = lyr.connectionProperties['connection_info']['database']
lyr.updateConnectionProperties(old, new_sdeConn)
... View more
03-25-2019
10:13 AM
|
0
|
0
|
5094
|
POST
|
You might have to come up with some kind of workaround (like an additional field where you concatenate the values with the unit abbreviations you want).
... View more
03-21-2019
09:45 AM
|
0
|
0
|
366
|
POST
|
Ah, version is likely why that setting isn't available. The link I posted is for the web-based Operations Dashboard for ArcGIS Online and Enterprise 10.6+. The number prefixes setting was introduced last year: Number Prefixes The Indicator, Gauge, and Charting Dashboard elements support unit prefixing. Prefixing can be quite useful when indicating a multiple or fraction of a unit, such as “kilo” for thousand. Until now, Dashboard would simply apply the standard metric prefix symbol. However, with this update, when you access the Dashboard Settings, and click on the General tab, you can set the symbol used for the prefix. In the example below, you will see that the standard metric prefix for billion is G, for “giga”, but can be overridden to B for “billion”. What’s New in Dashboard for ArcGIS (June 2018) The blog post from when the new version of Operations Dashboard was introduced: https://community.esri.com/community/gis/applications/operations-dashboard-for-arcgis/blog/2018/01/24/operations-dashboard-and-arcgis-enterprise-106 The support page for the earlier version of Operations Dashboard: Esri Support Operations Dashboard for ArcGIS 10.3.4
... View more
03-18-2019
10:31 AM
|
0
|
2
|
2024
|
POST
|
The Cut Polygons or Split Polygons tool in ArcMap, or the Split tool in ArcGIS Pro might be what you're looking for: Splitting a polygon—Help | ArcGIS Desktop Splitting a polygon by an overlapping feature—Help | ArcGIS Desktop Split a feature—ArcGIS Pro | ArcGIS Desktop
... View more
03-01-2019
03:53 PM
|
0
|
1
|
690
|
Title | Kudos | Posted |
---|---|---|
1 | 11-02-2018 05:55 PM | |
1 | 10-30-2018 01:58 PM | |
1 | 01-07-2019 11:49 AM | |
1 | 01-07-2019 12:27 PM | |
1 | 03-25-2019 01:33 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|