POST
|
Where do you want to edit the layer? In a desktop tool, or online through AGOL / Portal? What did you download process look like? A downloaded dataset might retain editor tracking settings, but there's nowhere in a file-based dataset to manage or enforce security rules that I'm aware of. It sounds like maybe you saved a reference to the county's parcel service? A legitimate copy shouldn't have any constraints on it.
... View more
yesterday
|
0
|
0
|
31
|
POST
|
It's a bit more HTML, but you can totally add that same (or similar) icon to your No Data message. It's just an SVG, and you can add SVG code to your message and have it render. <div style="align-items:center; border-color:#dfdfdf; box-sizing:border-box; color:4a4a4a; display:flex; flex-shrink:1; flex:1 1 auto; font-size:72px; font-weight:600; height:100%; justify-content:center; line-height:normal; margin-bottom:1.5rem; margin-left:1.5rem; margin-right:1.5rem; margin-top:1.5rem; overflow:hidden; stroke-width:2; text-align:center">
<svg fill="#448844" style="margin-right:1.5rem" viewbox="0 0 24 24" width="40%" xmlns="http://www.w3.org/2000/svg">pine-tree-fire
<path d="M22.14 14.84L22.12 14.85C22.35 15.13 22.55 15.44 22.7 15.77L22.79 15.96C23.5 17.65 23 19.6 21.69 20.82C20.5 21.91 18.84 22.2 17.3 22C15.84 21.82 14.5 20.9 13.73 19.63C13.5 19.24 13.3 18.8 13.2 18.35C13.07 18 13.03 17.62 13 17.25C12.91 15.65 13.55 13.95 14.76 12.95C14.21 14.16 14.34 15.67 15.15 16.72L15.26 16.85C15.4 16.97 15.57 17 15.73 16.94C15.88 16.88 16 16.73 16 16.57L15.93 16.33C15.05 14 15.79 11.3 17.66 9.77C18.17 9.35 18.8 8.97 19.46 8.8C18.78 10.16 19 11.94 20.09 13C20.55 13.5 21.11 13.79 21.58 14.23L22.14 14.84M19.86 19.5L19.85 19.47C20.3 19.08 20.55 18.41 20.53 17.81L20.5 17.5C20.3 16.5 19.43 16.16 18.87 15.43C18.7 15.21 18.55 14.93 18.44 14.65C18.22 15.15 18.2 15.62 18.29 16.16C18.39 16.73 18.61 17.22 18.5 17.81C18.34 18.46 17.83 19.11 16.94 19.32C17.44 19.81 18.25 20.2 19.06 19.92C19.32 19.85 19.65 19.66 19.86 19.5M9 21V18H2L7 13H4L9 8H6L11 3L16 8H13L14.82 9.82C12.55 11.06 11 13.59 11 16.5C11 18.19 11.5 19.75 12.4 21H9Z">
</path>
</svg>
No Data
</div> Better than nothing!
... View more
yesterday
|
0
|
0
|
5
|
POST
|
Yes, you've pretty much nailed it. Once the map is published, you can get rid of the original map from Pro and work exclusively with the web map.
... View more
yesterday
|
0
|
0
|
12
|
POST
|
Once a web map is published, you need to find it in the Catalog. Right-click your map and select "add and open". This map maintains its link to the web map, and the sharing tab will give you the option to "save web map".
... View more
yesterday
|
0
|
0
|
37
|
POST
|
It's very common for people to "update" a layer by overwriting it, going through the entire sharing / publishing process over again. That's what I mean by "republish". Did that happen? What's the layer URL?
... View more
yesterday
|
0
|
1
|
17
|
POST
|
Some are multi-widget with a single expression, others are using multiple expressions, but derived from a single source. The trick is to make sure that your data expression includes a GlobalID or ObjectID that you can use to filter other things, even if they don't use the same expression.
... View more
Tuesday
|
1
|
1
|
6
|
POST
|
GroupBy is meant to give you numeric statistics, but your Contest_ID field is a string. Also your grouping field and the calculated field are the same name. Try changing the field name for the "max" to something else. It's not really clear to me what this data expression is for. You're replacing specific strings with letter codes, but then you're grouping them. What is the grouping for? Are you trying to find the number of occurrences of each? You'd need COUNT instead of MAX. Also, if you're just recoding your strings, you can get rid of the entire intermediate featureset completely. GroupBy allows you to use a SQL expression for the grouping field, too! And you can use SQL wildcards with LIKE to shorten up your conditions, too. Getting rid of a for-loop and using a SQL-based function like GroupBy will improve your expression's execution time, too. var fs = FeatureSetByPortalItem(
Portal("https://.maps.arcgis.com"),
// portal item id
"178eb292ce436450b85dc249bd3069741",
0,
['Contest_title'],
false
);
var sql = `CASE
WHEN Contest_title LIKE 'President%REP%' THEN 'A'
WHEN Contest_title LIKE 'President%DEM%' THEN 'B'
WHEN Contest_title LIKE 'Attorney%REP%' THEN 'C'
-- and so on --
ELSE 'Unsatisfactory'
END`
return GroupBy(
fs,
{name: 'Contest_ID', expression: sql},
{name: 'Contest_ID_Count', expression: '1', statistic: 'COUNT'}
)
... View more
Tuesday
|
0
|
0
|
18
|
POST
|
At the very least, you can manually set the style to match the indicator. If you inspect the indicator styles and copy them all, you can get pretty close. The text size won't be responsive, but you can set it to something pretty big. <p style="display:flex; flex-direction:column; flex-shrink:1; flex:1 1 auto; font-size:72px; justify-content:center; margin-bottom:1.5rem; margin-left:1.5rem; margin-right:1.5rem; margin-top:1.5rem; overflow:hidden; text-align:center; border-color:#dfdfdf; box-sizing:border-box; color:4a4a4a; font-weight:600; line-height:normal; stroke-width:2">No Data</p> Just copy and past that HTML into your No Data formatting (be sure to click "source" first), and you'll be pretty close. On the left, an indicator, on the right, formatted "no data" text with the above HTML.
... View more
Tuesday
|
1
|
2
|
21
|
POST
|
Has the layer been republished / overwritten lately? That seems like an odd error message to suddenly appear. Any chance the layer is public?
... View more
Tuesday
|
0
|
3
|
32
|
POST
|
return Iif(
DateDiff(Now(), $feature['deploy_date'], 'days') > 8,
'Older',
'Deployed Recently'
) Using DateDiff together with Now and the deployment date field, you can get your features categorized the way you want. Arcade can't control the color directly, but you can configure your symbology categories to achieve the effect.
... View more
Monday
|
1
|
0
|
59
|
POST
|
Building on @SteveCole , once you have an array of items, use the function Concatenate to turn the array into a single string. This avoids having an extra line break at the end. return Concatenate(
Split($feature['hazards'], ','),
'\n'
) Then again, if your items are broken up by commas, you could just use Replace. return Replace($feature['hazards'], ',', '\n') You could also use Replace to swap the underscores for spaces. var spaced = Replace($feature['hazards'], '_', ' ')
return Replace(spaced, ',', '\n')
... View more
Monday
|
1
|
0
|
48
|
POST
|
For me, absolutely, but that's because I'm using python for lots of other things, and I've got half a dozen different python envs. If I don't specify which, it just uses the base env, which won't have the modules I need. It's worth nothing that I primarily use the ArcGIS Python API, not ArcPy, so it's a little easier to use in Linux. Been a while since I tried ArcPy in Linux, but you can download arcpy through the Esri conda channel. Authentication is different w/o Pro installed. EarthData has a neat approach using Wine: https://www.earthdata.nasa.gov/learn/gis/gis-how-tos/run-arcpy-on-arcgis-linux
... View more
Monday
|
0
|
0
|
40
|
POST
|
Curious! So, are you certain they're being skipped, as opposed to erroring out? And the script(s) being skipped aren't consistent? I have had scripts that worked fine as a bat file and separate python files, but would fail in the Task Scheduler. Sometimes the Task Scheduler showed an error, sometimes it claimed the script exited successfully. It wasn't always clear why, unfortunately. The data involved in our scripts changed daily, and sometimes it was an unexpected datatype conflict between source and destination databases, or the ArcGIS Python API and Pandas implementing datetime values in conflicting ways. May not be the case for your scripts, though. Do you have any logging going on? I would try starting each script with something like import logging
logging.basicConfig(
filename = 'some-log-file.log',
level = logging.DEBUG
)
logging.debug('Starting some script') That would at least confirm if the scripts are starting at all. To answer your other question about alternatives: I got really tired of issues like these, and reworked my scripts so that they would run on a lightweight Linux machine, then added the scripts to the machine's crontab to run at set times. I don't know what your scripts look like and how feasible such a thing would be, but it was absolutely worth the effort. Haven't had a problem since.
... View more
Monday
|
0
|
2
|
61
|
POST
|
What does the bat file look like? I never used ArcMap, but with Pro, you need to activate the conda environment first, then call the python file, so your bat file should include another line for that. Esri's docs suggest using a built-in propy.bat script rather than calling python directly. https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/using-conda-with-arcgis-pro.htm
... View more
Monday
|
0
|
5
|
92
|
POST
|
More information about the task would be helpful. You can automate all sorts of things, but not everything. It sounds like you're trying to set the map extent, but wanting it to replicate human interaction?
... View more
Monday
|
0
|
1
|
51
|
Title | Kudos | Posted |
---|---|---|
1 | a month ago | |
1 | Tuesday | |
1 | Tuesday | |
1 | 3 weeks ago | |
1 | Thursday |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|