POST
|
My company has a federated single sign on with ArcGIS Online, and I'm unable to authenticate with AGOL and the Python API. gis = GIS(agolUrl, userName, password) This line will throw an exception, "Unable to generate token. Invalid username or password." The values for "userName" and "password" are my normal AGOL logins - these will work when logging into the AGOL homepage in my browser. I'm able to log in using my personal account (this one), and query content with the GIS() module. How do I authenticate via the Python API using my account that is a federated login from my company?
... View more
07-14-2017
10:08 AM
|
0
|
14
|
10436
|
POST
|
I haven't done this specifically for my ArcGIS Server instances, but when I want to monitor services I have running, I like to use Windows Task Scheduler. I usually create a small console app or script that will make a test query to a service, and if there is not a response or the response is not as unexpected, it will send out an alert email. So for example I have an application running on my web server that depends on a few external APIs and database connections to run. I have a scheduled task running every 5 minutes (on a different machine than the server) and it will make sure each of the APIs is responding and the database connections are OK. If everything is OK, the task will end without notification. If anything reported an error, I send an alert email out to the dev team so we are aware of the poor health status of the application right away and can take immediate action.
... View more
07-09-2017
10:44 AM
|
2
|
1
|
2220
|
POST
|
I see the demographic data is available as block group polygons here: https://demographics6.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries_2016/MapServer/2 However, I'm looking for a block group point layer similar to what is used in this sample: https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0 Is such a feature service available? Thanks!
... View more
07-06-2017
03:25 PM
|
0
|
0
|
562
|
POST
|
I can't seem to find any examples or documentation on how to do exactly what I'm trying to accomplish. I'm looking to geoenrich a polygon from a feature service with demographic data when it is selected on my map. I'm hoping someone can point me to some examples that demonstrate how to do this. Thanks!
... View more
07-06-2017
10:29 AM
|
0
|
0
|
417
|
POST
|
I think this might be what you're looking for: https://community.esri.com/thread/158148
... View more
07-06-2017
08:18 AM
|
0
|
0
|
505
|
POST
|
What I'm specifically looking to do is update references to demographic layers I don't own in any/all content within my organization. For example, I would like to search for any users' story maps or web apps that are referencing the 2016 Tapestry Segmentation layer, and update those maps and apps to point to the 2017 Tapestry layer instead. I found some information about how to update my own hosted feature services by creating a service definition file and publishing/overwriting the existing in a Python script here, but I'm wondering if this can be done using layers from the Esri Living Atlas and other sources that I do not own or am not able to otherwise update the feature layer itself.
... View more
07-03-2017
09:34 AM
|
0
|
5
|
1976
|
POST
|
I found 10 sample questions here, but I was hoping Esri has made more than just this available. The certification is pretty vague about what skills are measured. I'd ideally like to pass it the first time, but I have no idea what to expect.
... View more
06-21-2017
04:43 PM
|
2
|
4
|
7848
|
POST
|
I prefer the whitelist approach when cleaning up file names, ID columns, etc. Blacklisting chars you don't want like "$%&*@!" etc still would allow things like æ Ñ █ ╬ all of which are valid ascii characters, but probably not charterers you'd want in a primary key or filename.
... View more
06-19-2017
10:12 AM
|
1
|
0
|
390
|
POST
|
Error messages are useful for devs, but when the errors are occurring in the minified API modules it is extremely difficult to understand or resolve the errors. If my map or the layer in the map is causing the issues, the errors I'm seeing aren't making resolving that issue any easier. The map does not throw any errors when opened by itself, so I'm not sure what settings to tweak to fix the errors in the story map. But it's not just my maps - here's a public facing app I found that throws similar errors. If something in a map is causing these errors, it's not being made clear to the user and they will end up with story maps throwing these errors and warnings like this. the vast majority of people reading story maps don't use their browser with dev tools open, so these messages don't have any impact on their experience. Sorry, I don't mean to be rude but I really have to take issue with this statement. Yes, most people don't look under the hood, but that's not really a great excuse to sweep errors in the client side code under the rug or diminish the importance of resolving them. How do we know for sure these errors aren't having any impact on the user's experience? (The Synchronous XMLHttpRequest warning is literally stating that it has detrimental effects to the end user's experience...) If there are errors being thrown in the console, the application is not working correctly. I'm glad there will be a debug option in future story map revisions. Following best web dev practices, I remove all console output from my applications as there may be situations where console is not defined on the client.
... View more
06-19-2017
09:08 AM
|
0
|
0
|
1816
|
POST
|
Sometimes I do this, and replace and illegal chars or spaces with an underscore: testStringCleaned = "".join([x if x.isalnum() else "_" for x in testString]) # foo_bar_baz_qux_127__9_
... View more
06-16-2017
08:43 AM
|
1
|
0
|
1388
|
POST
|
If by illegal characters you mean all non-alphanumeric characters, you can use a list comprehension with str.isalnum(): testString = 'foo-bar#baz?qux@127/\\9]'
testStringCleaned = "".join(x for x in testString if x.isalnum()) # foobarbazqux1279 Found on Stack Overflow - Turn a string into a valid filename?
... View more
06-16-2017
08:06 AM
|
0
|
4
|
1388
|
POST
|
Thank you for this very comprehensive list of ArcGIS Pro SDK resources!
... View more
06-15-2017
01:17 PM
|
1
|
0
|
2303
|
POST
|
I wasn't referring to the Story Map Builder page in my original post (though it is also littered with console errors and random debug output). I'm receiving these errors when viewing the live application - what my clients will see. Here is a collection of screenshots displaying the browser console for various story map templates: AGOL Story Map Template Console Errors - image gallery I first uploaded a shapefile of sample points to AGOL to create a hosted feature layer, and then I added that layer to a simple web map which would be used in each Story Map Template demo. There is no shared organizational shared content or themes, I'm literally just opening an empty story map template, adding my map, and nothing else. Every story map template I've used continuously throws all these errors and warnings in Chrome 58, Firefox 53, IE 11, and Edge 40. If story maps were working as expected, my console should look like this - no unhandled errors in minified files, no debug output, no warnings about Synchronous XMLHttpRequests (callbacks...use them!!!)
... View more
06-15-2017
11:34 AM
|
0
|
2
|
1816
|
POST
|
I'm currently helping some of the GIS Analysts in my department implement HTTPS in their story maps, and I'm noticing that every ArcGIS Online app/map/story map is continuously throwing all sorts of console errors and warnings and logging all sorts of random debug info. Here's what I see when I open an empty journal story map template: Why is this happening in production code? Are all these errors and random output in the console typical of a default AGOL map/app? Some of the completed story maps I've looked at appear to be functioning normally, yet there's a continuous stream of errors and warnings in the console as I navigate the page which is concerning.
... View more
06-15-2017
07:35 AM
|
0
|
5
|
2661
|
Title | Kudos | Posted |
---|---|---|
1 | 02-21-2023 12:26 PM | |
1 | 11-04-2020 02:31 PM | |
5 | 10-11-2022 03:59 PM | |
1 | 10-08-2019 04:48 PM | |
1 | 12-03-2020 02:50 PM |
Online Status |
Offline
|
Date Last Visited |
01-15-2024
03:01 PM
|