|
POST
|
If you would like to do this via the ArcGIS API for Python, then there is some basic info here: Creating new user accounts Unfortunately that doc does not include a complete example for the specific case of creating enterprise logins, however, I've found code like the snippet below works. (If you leave out parameters, like password, which it shouldn't need, you get unexpected errors.) new_enterprise_user = gis.users.create(
username = 'xxxxxxxx_umich',
password = 'None',
firstname = 'First',
lastname = 'Last',
email = 'xxxxxxxx@umich.edu',
role = 'org_publisher',
provider = 'enterprise',
idp_username = 'xxxxxxxx',
level = '2',
user_type = 'creator'
)
... View more
08-29-2019
12:59 PM
|
0
|
5
|
3837
|
|
BLOG
|
I like the idea of substituting a Story Map for the traditionally paper field guide for a field trip! Now I'm wondering if there is an easy way to take a Story Map "offline", to deal with field trips where the points of interest are in locations with no cellular data coverage? Is the a simple way to host a Story Map on one's mobile device? We've been using offline maps in Collector and Explorer to hold our field guide content, which we split up and attach as PDFs, image files, etc. to relevant locations on the map. We also have a master PDF for overview materials, which can be downloaded and read offline in the student's favorite PDF app. A Story Map for that purpose instead, still with links that would open the Collector/Explorer project on the same device to correct location would be great!
... View more
05-28-2019
06:09 AM
|
1
|
0
|
797
|
|
POST
|
I found the documentation and videos in the QuickCapture github repo very helpful for getting started. (You might miss the documentation links on first glance... there is a table of contents in the box on the right with, "Home, 1. Introduction, 2. Basic configuration, ..."
... View more
02-01-2019
11:11 AM
|
1
|
0
|
1861
|
|
POST
|
It is not well documented in any of the various ArcGIS APIs that support the time parameter for queries. You hunch is correct though, the time parameter works only with time-aware layers. Once you make your layer time-aware, then using time parameters with query will filter results based on the field(s) you've specified in defining the time-awareness of layer.
... View more
01-02-2019
05:43 PM
|
1
|
1
|
1142
|
|
POST
|
As noted ArcGIS QuickCapture can be configured to have just a single button. That might be the simplest way to go here. The iPad itself is probably too big to have easily accessible under the conditions you describe, however, you could use QuickCapture in conjunction with an iPhone (or other small mobile device) strapped to the user's forearm. Then as you're doing your task, you can easily reach and click on the button to record your current location. (Note that the device's battery can drain fast with this approach, as you need to leave the device on, so that the button is readily available to press. We carry an extra battery in this case, and charge the device during breaks to make it through the whole day; and we are using Collector or Survey123 directly, rather than QuickCapture.) If you just want a "button" -- AND, you can access WiFi where you are, rather than Bluetooth -- then another approach to consider is using an Amazon IoT Button. (Maybe you have a cellular iPad that can serve as a hotspot? Maybe you are already carrying a separate WiFi hotspot to provide connectivity for your iPad?) When pressed, the button's Lamda function runs, utilizing the ArcGIS API for Python (you could also leverage the ArcGIS REST API) to record information in ArcGIS. Meanwhile, your iPad is running Collector with a Location Tracking layer. (Note that I do not believe Location Tracking layers are supported in the new Collector yet, so we have had to stick with Collector Classic for this specific purpose for now; you can run both side by side on your device.) So when the button is pressed, the code that is run in the cloud grabs the most recent record in the location tracking layer, and appends it to another feature. Your code should also check the the button press timestamp and the most-recent tracking point are from about the same point in time, as the GPS might have lost signal and the location tracking layer isn't being updated at the moment. You can leverage the notification capabilities of the AWS button service to text you that your location wasn't recorded properly; though there is a bit of a delay with notifications, so you may find yourself having to walk back to the previous location to record it again. (One of our main uses for this has been for "I'm here now!" purposes over the course of a day. Think of it as a tracking layer filtered to record your location only when you manually choose to have it do so, and you don't want to fuss with having to pull out your phone and do something directly in Collector. That sounds pretty similar to what you're looking to do? Recoding the button press timestamps makes it easy to join/filter with all sorts of data after the fact too.) The IoT button works best if your need for location accuracy isn't too high. The iPad GPS, as you're already aware, can be off by quite a bit, especially under canopy. The delay of recording the button press and the temporal resolution of the tracking layer can add to the error too, especially if you move a lot during the delay it takes to process. Depending on your use case, however, that error source can be greatly reduced if you click the button at the start, rather than the end, of the task, so that you are "in the area" while things are being recorded, rather than walking or driving away to somewhere else. Hope that helps!
... View more
12-28-2018
10:21 AM
|
2
|
1
|
1861
|
|
POST
|
Hi Kelly, I would like to echo Pat's comments. In particular, the lack of support for automatically assigning a default set of entitlements to a new enterprise login. In other words, the first time an enterprise user logs into a component of the ArcGIS platform, they would get immediate access to a predefined combination of ArcGIS Online, ArcGIS Pro, GeoPlanner, Business Analyst, Insights, etc. They would get the access when they need it, rather than placing a barrier in their way, and generating an extra, per-user administrative burden on the institution. (This is for enterprise logins, not arcgis logins.) Addressing that need (as it sounds like you might in the next release?) will also eliminate a number of related issues; issues which typically only occur as a result of people struggling to deal with that simple piece of missing functionality. Whether an institution implements scripting or manual workarounds for that missing piece, it generates a number of additional failure points and/or extra work. Not what one expects from software sold as an enterprise-class, scalable, Software as a Service (SaaS) system. The introduction of User Types perhaps is a step toward solving the problem, but it doesn't at the moment. I suspect the introduction of user types is setting up some longer-term changes? Otherwise, like Pat, I find it to be confusing, and I am failing to the see the benefit at the moment... If you do not plan to implement a way to specify a default set of entitlements for enterprise logins in the next release, then perhaps the user type capability can be leveraged instead? Since you can specify a default user type for a new enterprise login, will you be adding the ability for administrators to define a custom user typer? That would lead to a relatively simple, yet powerful, workflow for Administrators: they would create a custom user type, set the desired combination of entitlements for that user type (from all available in the instance, not just Pro), and then set that user type as the default for new enterprise logins. Then, when a new enterprise login hits the system the first time -- and automated join is configured -- they can start working right away, without being stuck waiting on an automated script or manual intervention by an admin. On the enterprise login configuration page you can specify that a new user can join automatically, and default values for Role, Group(s), credit quota, Esri Access, etc., but not a default set of entitlements. To get around this oversight, some institutions, including mine, periodically run an automated Python script to provide the missing license auto-provisioning capability. Requiring an institution to have to perform this task using a script is, I believe, the largest, single barrier to broader adoption of the ArcGIS platform in the educational realm. (I suspect it is, or will be soon, a barrier for any large customer, education sector or otherwise, that needs to automate things, after they enable enterprise logins. Having to know scripting to have a scalable system, that provides a basic level of functionality, is not a typical expectation for SaaS. Furthermore, many people tasked with ArcGIS Online Administration, in education or otherwise, are not possessed of the level of scripting expertise required. You cannot have thousands of users dependent on a script hacked together from examples in the ArcGIS API for Python. Such a script needs to be to robust, secure, scalable, provide logging, handle exceptions, etc., if it is to be successful and reliable in an enterprise environment. Additionally, if scripting isn't an option for an institution, then the manual management requirements scale linearly with the number of users. The more users, the more administrative workload; again, not a typical expectation for a SaaS system. If the issue with automated licensing/entitlements were addressed, then the requirement for scripting expertise and/or cumbersome, manual management would be eliminated, or significantly reduced. This change would enable the many institutions with ArcGIS administrators, who don't have the time for manual tasks, nor the scripting expertise, to empower all their members with access to ArcGIS. There will always be the occasional exception of course. This functionality, however, is about setting the majority of the institutions implementing ArcGIS up for success, rather than failure, as they scale-up access across their organizations. Enabling enterprise logins, or Single-Sign-On, is also a barrier for some institutions, however, it is one with a clear solution, once the right people at an institution are involved in the conversation. Simply enabling enterprise logins, however, without also being able to auto-provision entitlements, still leaves one with the significant barrier of manual effort or scripting to support broad adoption. Currently many institutions are trapped by the "more users, more time commitment" issue. That approach does not scale. Rather, it sets up an institution for failure; or, just as bad, forces them to implement a digital divide; creating an environment of haves and have-nots, where, even though they have an institution-wide license, some users get access while others are denied. Thanks for reaching out here for input on this topic. Hope you find the above helpful as you plan the next release! Cheers, -peter
... View more
12-11-2018
05:56 AM
|
4
|
2
|
2543
|
|
POST
|
The main issue is that the time value from which you are starting, time.time(), is in a format that needs an additional conversion. str(int(time_in_seconds*1000))) should be str(int(time_in_seconds*1000000))). As ArcGIS Online stores the "uploaded" time in UTC, you probably also want to set your "now" using UTC as well. Your code is using your local time zone. For instance, you might try something like this: from arcgis import GIS
gis = GIS( ... )
import datetime
input_days = input("how many days back do you want to search? ")
now_dt = datetime.datetime.utcnow()
then_dt = now_dt - datetime.timedelta(days=int(input_days))
now = '000000'+str(int(now_dt.timestamp()*1000000))+'000'
then = '000000'+str(int(then_dt.timestamp()*1000000))+'000'
items = gis.content.search(
query = 'uploaded: [' + then + ' TO ' + now + ']',
max_items=10000
)
print('items found: ', len(items))
Also, the default for max_items with gis.content.search is 10, so if the search finds more than ten items, it will only return the first ten results. If you are expecting more than ten results, then you will want to increase max_items appropriately. Hope that helps!
... View more
11-20-2018
01:09 PM
|
1
|
3
|
2659
|
|
BLOG
|
It is indeed a case of practicality. When someone took their Named User license offline, it often resulted in unexpected complications because they didn't remember to check it back in from say their laptop, and then wanted to use Pro on their office computer or a classroom computer, while their laptop with the license was elsewhere. Or, as in Peter Wiringa's example above, which has happened to our users numerous times as well, they lose access to their license altogether, which means a support request to Esri. It then typically takes several days to get things sorted, meanwhile that use has no access. Instead, we recommend giving access to everyone to a Single-Use license instead, then they can choose to use it if they think they might be using Pro offline. Then they don't have to remember to check something back in; however, they do have to remember to update their Single-Use license once a year when the site license renews.
... View more
09-27-2018
05:49 PM
|
1
|
0
|
2783
|
|
POST
|
I wonder if Esri will provide support for making data hosted in ArcGIS Online or accessed via ArcGIS Hub visible to Google Dataset Search? Perhaps there is already a way to attach the necessary markup oneself to a data set's item detail page in AGOL?
... View more
09-06-2018
01:17 PM
|
0
|
1
|
884
|
|
BLOG
|
Option #2 is certainly a starting point, however, as Geri Miller points out in her last bullet in that section, the approach does not scale well in the long-run. As the number of students and courses using ArcGIS grows, you eventually will be challenged to keep up in an appropriately timely fashion with all the course requests, students dropping and adding courses, etc. Even simple things start to add up when you have to do them over and over... Not to mention all the requests for ArcGIS software and licenses that fall outside of courses! And, as you point out, option #2 unfortunately has the side-effect of erecting a barrier to people easily adopting GIS technology on campus. It creates a (hopefully!) undesired digital divide. (Are there institutions out there who still limit the use of Excel to just Business students and courses, or Word to English classes... 😉 Last semester, more than half of the University of Michigan's user-base came from fields outside of the traditional realms of desktop GIS. While most of those are users of Web GIS (e.g., ArcGIS , StoryMaps, GeoPlanner, Collector, Survey123), there are some who end up moving on to Pro, and even some who are jumping straight in with Pro; both for coursework and research. Option #1 makes it easy for them get started with the software on their own timeline, as they already know how to use our institutional file system. Option #2 works, however, the sooner you can move on to Option #1, the easier you can make it for members of your institution to leverage ArcGIS, and the less time you'll have to spend on trivial system administration tasks.
... View more
08-28-2018
06:46 AM
|
1
|
0
|
10440
|
|
POST
|
We've moved on to use the ArcGIS API for Python for tasks like this (see arcgis.gis.UserManager.create), which wraps the REST API call for you. If I remember correctly, however, from the days before the Python API, the REST API call is Create User. The following works with ArcGIS Online and Shibboleth, so the username format might need some minor tweaking to work with one of the other SAML providers. https://<url_key_for_org>.maps.arcgis.com/gis/portaladmin/security/users/createUser username = 'knooptp_<url_key_for_org>', password = 'None', firstname = 'Peter', lastname = 'Knoop', email = 'knooptp@devumich.edu', role = 'org_publisher', provider = 'enterprise', idp_username = 'knooptp', level = '2' I believe you have to have password set to None, and that you cannot simply leave the parameter off, as some of the documentation suggests.
... View more
03-15-2018
06:26 AM
|
0
|
1
|
2153
|
|
POST
|
It is indeed a limitation of the shapefile format. A "date" type field in a shapefile or a coverage can only store date values, not date and time values. One place you'll find this information is in the ArcMap documentation on the Fundamentals of date fields, "A coverage or shapefile stores dates in a date field with this format: yyyy-mm-dd. A geodatabase formats the date as datetime yyyy-mm-dd hh:mm:ss AM or PM." If you leave your data in the geodatabase format in which it comes from Collector, rather than converting it to a shapefile, then your field won't be truncated to date-only, and no workaround is required. If you have some other need that is forcing you to use the shapefile format, then before you export from the geodatabase, you can split your "date" field into two separate fields, one for the data value and one for the time value. There a lots of ways to do that, one being to use the Field Calculator and its VB Script DatePart() function. For details, plesae see this helpful Esri Technical Article, How To: Extract a portion of the Date field.
... View more
02-17-2018
11:30 AM
|
0
|
1
|
768
|
|
POST
|
I've added an ArcGIS Idea for this: https://community.esri.com/ideas/14565
... View more
02-12-2018
09:23 AM
|
0
|
0
|
477
|
|
POST
|
--no-pin of course does the trick, however, the implication of having to do that, rather than being able to upgrade directly in Pro's Python Package Manager is that 1.3.0 is not compatible with something in Pro 2.1? I need the entitlement calls that were introduced at 1.3.0, so I cannot stick with 1.2.5, but I hope I haven't broken something else now by upgrading... Thanks!
... View more
01-26-2018
06:14 AM
|
0
|
0
|
2437
|
|
POST
|
Tried it, but it didn't seem to actually upgrade arcgis. I'm still at 1.2.5. It did appear to install and update some other packages... PS C:\WINDOWS\system32> conda upgrade -c esri arcgis Fetching package metadata ............... Solving package specifications: . Package plan for installation in environment C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3: The following NEW packages will be INSTALLED: icc_rt: 2017.0.4-h97af966_0 The following packages will be UPDATED: notebook: 5.3.1-py36_0 --> 5.3.1-py36_1 numpy: 1.13.1-py36_0 --> 1.13.3-py36h4a99626_2 Proceed ( /n)? y icc_rt-2017.0. 100% |###############################| Time: 0:00:00 17.36 MB/s numpy-1.13.3-p 100% |###############################| Time: 0:00:00 42.45 MB/s notebook-5.3.1 100% |###############################| Time: 0:00:00 11.76 MB/s DEBUG menuinst_win32:__init__(189): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Program Files\ArcGIS\Pro\bi n\Python\envs\arcgispro-py3', env_name: 'arcgispro-py3', mode: 'user', used_mode: 'user' DEBUG menuinst_win32:create(301): Shortcut cmd is "C:\Program Files\ArcGIS\Pro\bin\Python\cwp.exe", args are ['"C:\\Prog ram Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgisp ro-py3\\python.exe"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\Scripts\\jupyter-notebook-scri pt.py"', '%USERPROFILE%'] DEBUG menuinst_win32:__init__(189): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Program Files\ArcGIS\Pro\bi n\Python\envs\arcgispro-py3', env_name: 'arcgispro-py3', mode: 'user', used_mode: 'user' DEBUG menuinst_win32:create(301): Shortcut cmd is "C:\Program Files\ArcGIS\Pro\bin\Python\cwp.exe", args are ['"C:\\Prog ram Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgisp ro-py3\\python.exe"', '"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\Scripts\\jupyter-notebook-scri pt.py"', '%USERPROFILE%'] PS C:\WINDOWS\system32> conda lisr arcgis usage: conda.exe [-h] [-V] command ... conda.exe: error: argument command: invalid choice: 'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\conda.exe' (c hoose from 'info', 'help', 'list', 'search', 'create', 'install', 'update', 'upgrade', 'remove', 'uninstall', 'config', 'clean', 'package', 'proswap') PS C:\WINDOWS\system32> conda list arcgis # packages in environment at C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3: # arcgis 1.2.5 py36_1 esri arcgispro 2.1 0 esri
... View more
01-25-2018
11:23 AM
|
0
|
0
|
2437
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 10 hours ago | |
| 5 | a week ago | |
| 1 | 10-23-2025 06:38 AM | |
| 2 | 11-03-2025 08:52 AM | |
| 1 | 11-03-2025 08:18 AM |
| Online Status |
Online
|
| Date Last Visited |
2m ago
|