|
POST
|
And I can use conda to re-create the clone of arcgispro-py3 that is being remembered, add that path to proenv.txt, and the Package Manage will open pointing to that environment, but I still cannot switch to another environment in Pro.
... View more
06-24-2020
04:22 PM
|
1
|
0
|
13461
|
|
POST
|
When the contents of %localappdata%\ESRI\conda\envs\proenv.txt is C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 the Python Command Prompt opens as expected: (arcgispro-py3) C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3> But I can't switch to that in Pro; that's when Pro churns.
... View more
06-24-2020
04:07 PM
|
1
|
1
|
13461
|
|
POST
|
That's right, I don't have admin rights. I would need help from IT to uninstall or do a repair. I can use conda. I deleted the other environments using conda.
... View more
06-24-2020
03:41 PM
|
0
|
1
|
13461
|
|
POST
|
With a new install of Pro 2.5, I have, between trying to manage environments at the command line and through the Package Manager, kludged up my conda. When I open the Package Manager now, the Project Environment window is blank and when I try to activate arcgispro-py3 (the only environment I have remaining at this point), the progress bar at the bottom of the dialog just scrolls and scrolls and the message remains 'Restart ArcGIS Pro for your environment changes to take place'. Of course, closing everything, apparently mid-process, and restarting does nothing. Another thing that happens is that after a computer restart %localappdata%\ESRI\conda\envs\proenv.txt has the path to an environment I have removed and when I open the Python Command Prompt, conda is not available as a program. When I manually change that to arcgispro-py3, I can open the prompt and it's all good but that manual edit to proenv.txt does not stick. Something else writes it after a reboot. What process writes that file and where does it remember the environment? Barring that, because these are all changes that I made as a non-admin user, is there something I can do to just wipe the slate and get me back to the original state of the conda installation?
... View more
06-24-2020
03:10 PM
|
0
|
17
|
16933
|
|
IDEA
|
Yeah, the animation drives me crazy. Thomas's split example is good. I also don't like the way popups, tables, and other elements fade in and out.
... View more
02-18-2020
12:06 PM
|
0
|
0
|
6747
|
|
POST
|
I am labeling points through feature-linked annotation like so, I can make changes to the text symbol of one feature at a time and the results are as expected. When I have one feature selected, the angle box on the Attributes dialog shows the angle by which the feature will be rotated in order for the text to stay horizontal in light of the coordinate system of the map frame: But if I want to make changes to multiple features at one time, the entire set, for example, the value for angle is cleared: so that now, when I make any change to the text symbol, Arc does not know the correct angle for each feature and the text is no longer horizontal to my map frame: How can I make changes so that that angle value, the correct one necessary for horizontal text, does not change?
... View more
11-21-2019
03:11 PM
|
0
|
1
|
855
|
|
POST
|
Those are just a few examples, the domain includes many many more values, including "Kaf". In that case, I could have used $feature.Unit == lith rather than Find. I just found Find under the Text functions and thought it was most appropriate. I still wonder what will happen if you create a new field and populate it with the expression and draw you map on that field. I could try that, but of course that's the first thing listed as a situation you can avoid by using Arcade!
... View more
09-25-2019
12:51 PM
|
0
|
1
|
2146
|
|
POST
|
That works a bit better. If I search on the same lithology term as the one appearing in the edit box, the classes (usually) get assigned to the renderer. But, again, when I search for a different term; that I know exists after querying a nearby polygon, the test fails and the symbology is as first described. I tried searching only one field and the results were the same which suggests the problem has little to do with searching eight. Zooming in or being out at a small scale seems to have no effect. The test only works when I am searching for the lithology in the edit box. Note that, like in my first post, when the style is not updated correctly, the polygons associated with the term for which I am searching are being symbolized differently than the 'not found' class, but they are appearing with the symbol for 'Other' and the count is 0. I had some success yesterday with filters and group filters, so I think will move off this Arcade track for now. From the original question, some Unit value examples are Tmv, PzPxqs, Qs, Kkg.
... View more
09-25-2019
09:09 AM
|
0
|
3
|
2146
|
|
POST
|
Xander, thanks for taking a look. Right, "KAF" appears no where in that field. I know I am looking for text that should be found in the field. Here's a bit more. With another layer, again of geology polygons, I set up the expression below to find lithology terms in any of 8 fields in which they could possibly occur: var lithFlds = [$feature["MAJOR1"], $feature["MAJOR2"],-
$feature["MAJOR3"], $feature["MINOR1"], $feature["MINOR2"], -
$feature["MINOR3"], $feature["MINOR4"], $feature["MINOR5"]]
var lith = 'Sandstone'
for(var k in lithFlds){
if (Find(lith, lithFlds )>-1){
return lith;
} else {
return "not found";
}
} When I put this in to the online AGOL expression builder and run test, it works only when one of the Globals included has the lith value displayed when I click on the pencil icon to the right of it I don't know for sure what those values indicate but my guess is they represent the values that would be returned from the feature that is in the center of the current extent over at the map or at least some kind of sampling of the feature layer? Ah, wait, I see I can edit that value. What's the purpose of this? Despite the fact that the test runs successfully, when I save the expression and back out of the dialog and go back to the map, the class symbology is as I first described. When I search for a lithology term that does not appear in any of those edit boxes, the test fails. And finally, I tried this expression out in Pro on the same feature layer and it basically timed out trying to search all of the records. I had to shut it down. Maybe I am up against some kind of record limit? The feature layer has some 300k rows.
... View more
09-24-2019
08:53 AM
|
0
|
5
|
2146
|
|
POST
|
First Arcade expression here and I can't figure out what I am doing wrong. Using an AGOL-hosted feature layer of geologic unit polygons, I am trying to change the style so that there are two classes; polygons of one particular unit and everything else. Eg., var test = $feature["UNIT"];
if (Find("Kaf", test)>-1) {
return "Kaf";
} else {
return "other";
} and this is what I get: The gray 'Other' polygons are actually 'Kaf' polygons.
... View more
09-19-2019
04:00 PM
|
0
|
7
|
2278
|
|
POST
|
Neil, Thanks, yes, those are similar scenarios. I was starting to think of something like what you suggest. I was imagining a giant dummy polygon that covered my area so that I could have a hosted feature layer just to have access to a popup, but that's as far as got. Might look at this more in a few days.
... View more
09-12-2019
03:40 PM
|
0
|
0
|
1619
|
|
POST
|
Is there a way, ideally in AGOL, to get a popup to show the results from a query to an external api? That is, unrelated to any layer in the map, you click on a map and have the lat and long values sent as parameters in a url (presuming here that a base url can be stored in some kind of configuration for the popup) which then returns content to be displayed in the popup window?
... View more
09-12-2019
09:41 AM
|
0
|
3
|
1700
|
|
POST
|
I was curious about programmatically running Viewshed2 against the ESRI Terrain service so I started writing a jupyter notebook from the arcgispro-py3 environment. For input to the tool, I needed to make an image layer from the url using MakeImageServerLayer which takes a url as an input. What I came up with is: arcpy.SignInToPortal("http://www.arcgis.com", username, password)
token = arcpy.GetSigninToken()['token']
token = token.rstrip(".")
terrain_url = "https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer?token={}".format(token)
arcpy.MakeImageServerLayer_management(terrain_url, "terrain", layer_extent,"","","","","", 12)
This works (at least as far as getting Viewshed2 to start; I've got some other issues with extent and memory, but those are beside the point) but is this the best way? For instance, you can see that I have to strip two trailing period characters off the end of the token string to make it work in the URL. Why would the token be returned with those characters if they are invalid in the url? I also never found a similar example in any question or documentation. The only code in which I ever saw MakeImageServerLayer it was preceded by mapping.CreateGISServerConnectionFile which doesn't appear to exist in AGP Python3. I just recently discovered the viewshed task included in the ESRI Elevation Analysis services and that is a possibility, but the resolution of the World Elevation / Terrain service is a bit better in my area than the elevation data that those analysis services use (why is that?) Suggestions? Comments?
... View more
05-02-2019
11:15 AM
|
0
|
0
|
628
|
|
IDEA
|
Yes! metadata and data are too widely separated. Opening up an "item description" takes a long time and when you get there, it's the full record and a separate window. There should be quickly accessed context-menu / hover tips / popups, for example, that describe the field and the data as described in the metadata.
... View more
01-09-2018
01:16 PM
|
0
|
0
|
3602
|
|
POST
|
Ok, thanks. I figured the only way was through ArcObjects.
... View more
11-30-2016
03:23 PM
|
1
|
0
|
4785
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-29-2025 09:49 AM | |
| 1 | 10-25-2021 01:17 PM | |
| 3 | 05-10-2023 09:21 AM | |
| 1 | 04-06-2023 02:09 PM | |
| 1 | 07-07-2022 03:28 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-26-2025
11:00 AM
|