POST
|
Hi Shawn, where does the feature reside, and is this on the same system as the notebook?
... View more
08-22-2018
11:38 AM
|
0
|
0
|
929
|
POST
|
Hi Rohit, it's noteworthy to add that cron ENV settings are often different from ENV at the CLI when the user is developing the automation script.
... View more
08-22-2018
11:36 AM
|
0
|
0
|
577
|
POST
|
Equally important to digest alongside the actual question is the following: whether it can be done and how is 100% system-dependent and context-dependent. As an example of context, environment settings can be different at a command prompt (i.e., via manual entry at CLI) from settings in a scheduled task (especially if one is not necessarily 'logged in' when the task occurs). As classic example of this is env differences on Linux systems when run under someone's crontab vs when run manually at a terminal. I know this is off-topic, but I do this professionally and teach it at a university, and ~90% of folks simply don't remember this small fact which, eventually can inhibit the process of tracking down the cause of a problem when the 'correct answer' is not working.
... View more
08-22-2018
11:34 AM
|
0
|
0
|
929
|
POST
|
Respectfully folks, please be careful when you are discussing the term environment in such a context. A given user has multiple environment contexts in an OS. As a direct comment to the above statement, conda does not know everything about the user's environment; FURTHERMORE, the environment settings that a user is given at a CLI can be quite different from when run as a task.
... View more
08-22-2018
11:24 AM
|
0
|
0
|
2544
|
POST
|
Question: With the ArcGIS API for Python (ver. 1.2.5), how can I turn on items/layers (i.e., toggle visibility or make visible) on my org account ***.maps.arcgis.com (in feature services that I am have sufficient privilege for)? Do I use the something included in the ContentManager or in some other module/package/etc.? It appears this is possible with the Javascript API, possibly with SDKs, and I can not tell if this is already possible with other types of content via the API. Problem: I am using ArcGIS python API (ver. 1.2.5 implies py3) to create feature layers on my arcgis.com org account (from layers of Map Images on hosted one of our own enterprise Arc Servers) and I can not determine how to enable/disable visibility of the feature layers that I am creating. Backstory: Some of the Map Images that I work with on our enterprise Arc Server (from which I am creating feature layers with aforementioned visibility issue) hve sufficient quantity of layers to warrant turning all the (Map Image) layers off by default (done with the arcpy code that created them). The subsequent/derived problem I face is that the feature layers I am creating on our org account on arcgis.com site has each layer/item also turned off (i.e., not visible) (except in mobile browsers, curiously, though not too surprisingly). Preemptive: For the curious few who are wondering why I don't just use similar code to that which created the Map Images, I would state that the code that created the original Map Images used Arcpy (py2) and uses a line of code, as follows: for lyr in arcpy.mapping.ListLayers(mxd, "", df): # Turn off layer (make non-visible) lyr.visible = False I am looking for a Python API solution, not an arcpy solution. Cultural Considerations: I am a programmer who reads API documentation and I tend work with to the sad neglect of my mouse, a GUI and point-and-click methods (though I welcome all comments). Please consider me slightly new to GIS and my knowledge/exposure has tended to be 99.42% code-based and thus slightly illiterate in ArcMap terminology (terminology which is often different in each of this multitude of APIS/languages).
... View more
08-07-2018
12:40 PM
|
1
|
1
|
1548
|
Title | Kudos | Posted |
---|---|---|
1 | 08-07-2018 12:40 PM |
Online Status |
Offline
|
Date Last Visited |
03-02-2021
02:22 AM
|